[Insight-users] division and rescaling
Luis Ibanez
luis.ibanez at kitware.com
Fri Mar 23 13:34:47 EST 2007
Hi Xavier,
You could be a bit more generous in your posting and share
with us the Type of the "rescaleFilter" variable.
I would assume that you are using the itkRescaleIntensityImageFilter.
Is that right ?
Regards,
Luis
------------------------
Xavier Penya wrote:
> Hi everybody,
>
> I'm doing a program in which I divide two similar images (pixel type =
> double). The values of those images goes from 0 to 255.
> When I divide them into an other image which is also 'double' pixel
> type, as they are similar the pixel values goes from 0 to 1,1.
> I've tried to reescale it with the code below in orther to obtain values
> from 0 to 255 in the output image, but nothing happens (it remains from
> 0 to 1,1).
> Does anybody know why is it not working?
> Thanks!
>
> Xavier
>
>
> //rescaling the image from (0,1) to (0,255)
>
> rescaleFilter->SetInput( image );
>
> rescaleFilter->SetOutputMinimum( 0 );
>
> rescaleFilter->SetOutputMaximum( 255 );
>
> rescaleFilter->Update();
>
> (...)
>
> writer->SetInput( rescaleFilter->GetOutput() );
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list