[ITK-users] Get RescaleIntercept

Matias Montroull matimontg at gmail.com
Mon Nov 24 19:31:33 EST 2014


Hi,

I'm struggling with code I did to get the RescaleIntercept of an image.

It's simple as this:

typedef itk::GDCMImageIO ImageIOTypeGDCM;
ImageIOTypeGDCM::Pointer gdcmImageIO = ImageIOTypeGDCM::New();
reader->SetImageIO( gdcmImageIO );

double intercept = gdcmImageIO->GetRescaleIntercept();
std::cout << "Rescale Intercept value: " << intercept << std::endl;

Now, the last line returns "0" and actually the tag (0028|1052) reads
"-1000"

Is there any issues with the code or something I missed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20141124/332699d8/attachment.html>


More information about the Insight-users mailing list