MCPcopy Create free account
hub / github.com/Kitware/VTK / PixelRepresentationCallback

Method PixelRepresentationCallback

Utilities/DICOMParser/DICOMAppHelper.cxx:786–795  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784}
785
786void DICOMAppHelper::PixelRepresentationCallback(
787 DICOMParser* parser, doublebyte, doublebyte, DICOMParser::VRTypes, unsigned char* val, quadbyte)
788{
789 unsigned short uival =
790 DICOMFile::ReturnAsUnsignedShort(val, parser->GetDICOMFile()->GetPlatformIsBigEndian());
791#ifdef DEBUG_DICOM_APP_HELPER
792 std::cout << "Pixel Representation: " << (uival ? "Signed" : "Unsigned") << std::endl;
793#endif
794 this->PixelRepresentation = uival;
795}
796
797void DICOMAppHelper::PhotometricInterpretationCallback(
798 DICOMParser*, doublebyte, doublebyte, DICOMParser::VRTypes, unsigned char* val, quadbyte)

Callers

nothing calls this directly

Calls 1

ReturnAsUnsignedShortFunction · 0.85

Tested by

no test coverage detected