After that, all I need to do is to call the SetInput for each slice and, at the end, call the Update method?<br><br>Thanks,<br>Luis<br><br><div class="gmail_quote">On Tue, Apr 21, 2009 at 10:06 AM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></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;"><br>
Hi Luis,<br>
<br>
You should instantiate the Paste filter in 3D.<br>
<br>
Since you are going to paste 2D slices into a 3D image,<br>
you need to set up the filter in such a way that a 2D<br>
image is seen as a 3D image of a single slice.<div class="im"><br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
-----------------------------<br>
Luis Roberto P. Paula wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi Luis,<br>
<br>
I'm a little confused on how to use the itkPasteImageFilter.<br>
<br>
At first, I created the typedef:<br>
<br>
typedef itk::PasteImageFilter< ImageType2D > PasteFilter2D;<br>
<br>
<br>
Then:<br>
<br>
PasteFilter2D::Pointer paste2D = PasteFilter2D::New();<br>
<br>
// I'm lost in this part<br>
<br>
for (int i; i < VECTOR_SIZE; i++) {<br>
paste2D->SetInput( IMAGE2D_VECTOR[i] );<br>
}<br>
<br>
How do I make the output of the paste2D be a 3D image?<br>
<br>
Do I need to set to the destination image a 3D blank image?<br>
<br>
The destination index affects the output?<br>
<br>
I thought it would work like the add method of the std:vector class with an output as a 3D image, but it seems that it can return an image with the same dimension.<br>
<br>
Thanks,<br>
Luis<br>
<br></div><div><div></div><div class="h5">
On Fri, Apr 17, 2009 at 3:36 PM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a> <mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>> wrote:<br>
<br>
<br>
Hi Luis,<br>
<br>
Yes,<br>
the same should work for pasting 3D images into to 4D images.<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
---------------------------<br>
Luis Roberto P. Paula wrote:<br>
<br>
Thanks Luis!! This is a much better approach (itkPasteImageFilter).<br>
<br>
I guess it works the same way from 3D to 4D, right?<br>
<br>
Regards,<br>
Luis<br>
<br>
On Thu, Apr 16, 2009 at 1:59 PM, Luis Ibanez<br>
<<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a> <mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a><br>
<mailto:<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>>>> wrote:<br>
<br>
<br>
Hi Luis,<br>
<br>
If your images are in individual 2D files, then<br>
you could simply use the ImageSeriesReader.<br>
<br>
If your images are in an array of 2D images in<br>
memory, then you may want to use the Paste<br>
filter:<br>
<br>
<a href="http://itk.org/Doxygen/html/itkPasteImageFilter_8h.html" target="_blank">http://itk.org/Doxygen/html/itkPasteImageFilter_8h.html</a><br>
<br>
You will have to call it multiple times...<br>
once per input slice.<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
---------------------------<br>
<br>
Luis Roberto P. Paula wrote:<br>
<br>
Hi All,<br>
<br>
I have a set of 2D images in axial orientation and I want to<br>
create a 3D volume with this images.<br>
<br>
It would be de reverse operation of the class<br>
ExtractImageFilter.<br>
<br>
Does anybody knows how to do it?<br>
<br>
Thanks in advance,<br>
Luis<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<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>
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>
<br>
<br>
</div></div></blockquote>
</blockquote></div><br>