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

Method RescaledImageDataIsFloat

Utilities/DICOMParser/DICOMAppHelper.cxx:998–1010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996}
997
998bool DICOMAppHelper::RescaledImageDataIsFloat()
999{
1000 int s = int(this->RescaleSlope);
1001 int o = int(this->RescaleOffset);
1002
1003 float sf = float(s);
1004 float of = float(o);
1005
1006 double d1 = fabs(sf - this->RescaleSlope);
1007 double d2 = fabs(of - this->RescaleOffset);
1008
1009 return d1 > 0.0 || d2 > 0.0;
1010}
1011
1012void DICOMAppHelper::GetImageData(void*& data, DICOMParser::VRTypes& dataType, unsigned long& len)
1013{

Callers 2

PixelDataCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected