[Insight-users] RGB Image multiplication
Sahan Ranasinghe
sahancr at gmail.com
Thu Jun 6 23:46:14 EDT 2013
Thank you.
Actually itk::ImageFileReader works well for RGB image. I used it
successfully in earlier part of my research. I think the problem is in the
itk::MultiplyImageFilter. RGB image has 3 planes and binary image has only
single plane. Then itk::MultiplyImageFilter works for single plane. If we
can separate 3 planes of RGB image and multiply that 3 planes with binary
image separately and then make RGB image again is the one method. But I
couldn't find any library or header file for plane separation and combine.
Could you please let me know if you find out anything about this problem.
Thanks.
Sahan
On Thu, Jun 6, 2013 at 8:55 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Jun 6, 2013 at 10:28 AM, Sahan Ranasinghe <sahancr at gmail.com>
> wrote:
> > Hi,
> >
> > I used to itk::ImageFileReader to read RGB and binary images. image
> > extensions are .mhd (Meta Image file format)
> > then used to itk::MultiplyImageFilter to multiply these images. Then
> used
> > to itk::ImageFileWriter to write the output image. It also in Meta Image
> > format
> >
> > Thank you.
> >
> > Regards,
> > Sahan
>
>
> Brad is looking for the template parameters you used in the classes
> that you mentioned. E.g. ImageFileReader<float>, etc.
>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130607/1afcc1a9/attachment.htm>
More information about the Insight-users
mailing list