<div dir="ltr">Dear All,<div><br></div><div style>Thank you for your time. I solved the problem. Sorry. I did following mistakes.</div><div style>I used to read RGB image without insert itk::RGBPixel. I used PixelType for both binary and RGB images.</div>
<div style>Then I changed the PixelType for RGB image and run it. It works well.</div><div style>Sorry for bothering you.</div><div style>Thank you again.</div><div style><br></div><div style>Regards,</div><div style>Sahan</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 7, 2013 at 9:16 AM, Sahan Ranasinghe <span dir="ltr"><<a href="mailto:sahancr@gmail.com" target="_blank">sahancr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you.<div><br><div>Actually <span style="font-family:arial,sans-serif;font-size:13px"> itk::ImageFileReader works well for RGB image. I used it successfully in earlier part of my research. I think the problem is in the </span><span style="font-family:arial,sans-serif;font-size:13px"> itk::MultiplyImageFilter. </span><span style="font-family:arial,sans-serif;font-size:13px">RGB image has 3 planes and binary image has only single plane.</span><span style="font-family:arial,sans-serif;font-size:13px"> Then </span><span style="font-family:arial,sans-serif;font-size:13px"> itk::MultiplyImageFilter works for single plane.</span><span style="font-size:13px;font-family:arial,sans-serif"> </span><span style="font-size:13px;font-family:arial,sans-serif">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.</span></div>
<div><div>Could you please<span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"> </span><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">let me know if you find out anything about this problem.</span><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"> </span></div>
<span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Thanks. </span><span class="HOEnZb"><font color="#888888"><div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif"><br>
</span></div><div><span style="font-size:13px;font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">Sahan</span></div></font></span></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, Jun 6, 2013 at 8:55 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Thu, Jun 6, 2013 at 10:28 AM, Sahan Ranasinghe <<a href="mailto:sahancr@gmail.com" target="_blank">sahancr@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I used to itk::ImageFileReader to read RGB and binary images. image<br>
> extensions are .mhd (Meta Image file format)<br>
> then used to itk::MultiplyImageFilter to multiply these images. Then used<br>
> to itk::ImageFileWriter to write the output image. It also in Meta Image<br>
> format<br>
><br>
> Thank you.<br>
><br>
> Regards,<br>
> Sahan<br>
<br>
<br>
</div>Brad is looking for the template parameters you used in the classes<br>
that you mentioned. E.g. ImageFileReader<float>, etc.<br>
<span><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>