[Insight-users] use RGB pointer for greyscale
David Doria
daviddoria at gmail.com
Sun Jul 3 15:53:12 EDT 2011
On Sun, Jul 3, 2011 at 9:27 AM, Dawood Al Masslawi <masslawi at gmail.com> wrote:
> Hi John,
> Readers are templated over the image type, so unless two images
> are of same type you can't use the same reader (or writer).
> If you want to do RGB operations on a grayscale image you can use the
> ScalarToRGBColormapImageFilter to convert the greyscale image to RGB.
> HTH,
> Dawood
John,
Did you try it? As far as I remember, you can read a single channel
image using an RGBPixel reader and it will just duplicate the channel
so that all three channels are identical.
More information about the Insight-users
mailing list