<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.8">
<TITLE>from gray image to RGB image</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>Hello<BR>
Is there someone that can explain me how can I convert a gray scale image in a RGB image?<BR>
for example if I define:<BR>
<BR>
const unsigned int Dimension = 2;<BR>
typedef unsigned char PixelType; <BR>
typedef itk::Image< PixelType, Dimension > ImageType;<BR>
typedef itk::RGBPixel< unsigned char > ColorPixelType;<BR>
typedef itk::Image< ColorPixelType, Dimension > ColorImageType;<BR>
ImageType::Pointer input = reader->GetOutput();<BR>
// (...) some operations with image<BR>
ColorImageType::Pointer image_c;<BR>
<BR>
now how can I copy image in image_c?<BR>
<BR>
Thank you very much<BR>
Edoardo</FONT>
</P>
</BODY>
</HTML>