<br>Hi Mohamed,<br><br>For this image that you want to create,<br><br>Would you know the number of components per pixel:<br><br><br>                 A) At compilation time ?<br><br>or <br><br>                 B) Only at run time ?<br>
<br><br><br>If (A) you can create the image by using<br><br>typedef itk::FixedArray&lt; ComponentType, NC &gt; PixelType;<br>typedef itk::Image&lt; PixelType, ImageDimension &gt; ImageType;<br><br>ImageType::Pointer image = ImageType::New();<br>
<br>// Set origin<br>// Set direction<br>// Set size and index of regions<br><br>This is described in detail in the ITK Software Guide<br><br>   <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br>
<br>in the &quot;Data Representation&quot; chapter.<br><br>You will find the corresponding source code examples under<br><br>    Insight/Examples/DataRepresentation/Image<br><br><br>If your case is (B), then you want to use the itk::VectorImage.<br>
<br><br>Regards,<br><br><br>      Luis<br><br><br><br>--------------------------------------------------------------------------------<br><div class="gmail_quote">On Mon, Apr 26, 2010 at 12:01 AM, mohammed abdel samea <span dir="ltr">&lt;<a href="mailto:mohammed_abdel_samea@yahoo.com">mohammed_abdel_samea@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2">Hi,<br>
<br>I&#39;d like to inquire, if applicable, how can I use ITK iterator to create 3-D multiple channel image form multidimensional array contained all image information required !!. assuming that we don&#39;t have an image similar to which we would like to read to copy information...<br>
<br>Best Regards,<br> Mohammed<br></font><div><font size="2"> </font></div><font size="2">Mohammed M. Abdelsamea<br>Assistant Lecturer of Computer Science<br>Mathematics&amp; Computer Science Department<br>Faculty of Science-Assiut university<br>
Assiut University-Assiut-Egypt<br>Tel. +20108581041 Postal Code: 71516</font><div><font size="2"><br></font></div>
</div><br>







      </div><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>