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

Method RescaleOffsetCallback

Utilities/DICOMParser/DICOMAppHelper.cxx:931–939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

929}
930
931void DICOMAppHelper::RescaleOffsetCallback(
932 DICOMParser* parser, doublebyte, doublebyte, DICOMParser::VRTypes, unsigned char* val, quadbyte)
933{
934 float fval = DICOMFile::ReturnAsFloat(val, parser->GetDICOMFile()->GetPlatformIsBigEndian());
935 this->RescaleOffset = fval;
936#ifdef DEBUG_DICOM_APP_HELPER
937 std::cout << "Pixel offset: " << this->RescaleOffset << std::endl;
938#endif
939}
940
941const char* DICOMAppHelper::TransferSyntaxUIDDescription(const char* uid)
942{

Callers

nothing calls this directly

Calls 1

ReturnAsFloatFunction · 0.85

Tested by

no test coverage detected