[Insight-users] Rescale Dicom images
Mohamed Louizi
m_louizi at yahoo.de
Sat Jul 29 07:02:24 EDT 2006
Hello Mathieu,
you are right: GDCMImageIO function do the rescale of
the images. Thus all i had to do is to call the
programm itkDicomSeriesReadSeriesWrite to rescale the
images of the given series and finish!!! The bright
images were rescaled and they have now the same
intensity values as the other ones.
Thanks for the help. I´m struggling with this problem
since 2 weeks.
Have a nice week end
--- Mathieu Malaterre <mathieu.malaterre at kitware.com>
schrieb:
> Mohamed,
>
> No you don't need to use any kind of filter. The
> ImageIO (GDCMImageIO
> in this case) is doing the rescaling for you. So you
> do not need to (and
> should not!). You can grep the code and look for a
> function in
> itkGDCMImageIO.cxx:
>
>
> // Internal function to rescale pixel according to
> Rescale Slope/Intercept
> template<class TBuffer, class TSource>
> void RescaleFunction(TBuffer* buffer, TSource
> *source,
> double slope, double
> intercept, size_t size)
>
> This function is being called on any 2d frame,
> therefore even if you
> rescale and slope are changing within the same
> series, the GDCMImageIO
> will do the work for you to rescale properly.
>
> Please specify the release version of ITK you are
> using. If possible
> send me a slice that demonstrate the the issue you
> are having so that I
> can reproduce here on my computer.
>
> Thanks,
> Mathieu
> Ps: When using ITK, you should really send your
> question here instead of
> the general dicom newsgroup.
>
> Sylvain Jaume wrote:
> > Hi Mohamed,
> >
> > You may use itkMinimumMaximumImageCalculator
> >
> > Sylvain
> >
> > Mohamed Louizi wrote:
> >> Hello,
> >>
> >> thanks for the response.
> >>
> >> With itkRescaleIntensityImageFilter i have to set
> the
> >> min and max value.
> >>
> >> Which values should these params have?
> >>
> >> (sorry for the stupid question, but i´m newbie in
> >> image processing fied)
> >>
> >> Thanks
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
___________________________________________________________
> Telefonate
> >> ohne weitere Kosten vom PC zum PC:
> http://messenger.yahoo.de
> >> _______________________________________________
> >> Insight-users mailing list
> >> Insight-users at itk.org
> >> http://www.itk.org/mailman/listinfo/insight-users
> >>
> >>
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
> >
>
>
___________________________________________________________
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
More information about the Insight-users
mailing list