No subject
Tue Jan 15 14:41:49 EST 2013
t closer to the C++ ITK proper code.<br>
<div><div class=3D"h5"><br>
<br>
<br>
On Apr 7, 2013, at 2:42 AM, Phillip Ward <<a href=3D"mailto:pgwar1 at stude=
nt.monash.edu">pgwar1 at student.monash.edu</a>> wrote:<br>
<br>
> Hey ITK community,<br>
><br>
> I've got a problem I've been struggling with for a few weeks n=
ow and would like some assistance.<br>
><br>
> I have a volume and I would like to rearrange the slices in it, i.e., =
remap the third dimension of the volume. The volume is read from a single f=
ile, so renaming image files or reading in a different order is not suitabl=
e.<br>
><br>
> Right now, the even slices are first (1,15) and the odd slices are sec=
ond (16,30). So the map f(z) =3D (z%2 ? z/2 : Nz/2 + z/2), where Nz is the =
length of the third dimension, interleaves the even and odd into their corr=
ect order (for even Nz).<br>
><br>
> I've attempted using a paste image filter in a loop to paste each =
slice one at a time<br>
> size=3D(Nx,Ny,1), destinationIndex=3D(0,0,f(z));<br>
> This produced a black image, which I suspect was a pipeline error on m=
y behalf, but I haven't been able to work out how to implement this cor=
rectly.<br>
><br>
> I've attempted using a resample image filter, but my knowledge of =
transformations was lacking and that failed also.<br>
><br>
> I feel like there is an easier way to do this that I am perhaps overlo=
oking, but either way I cannot implement it and would appreciate some advic=
e.<br>
><br>
> Cheers,<br>
> Phil<br>
</div></div>> _____________________________________<br>
> Powered by <a href=3D"http://www.kitware.com" target=3D"_blank">www.ki=
tware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href=3D"http://www.kitware.com/opensource/opensource.html" target=
=3D"_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href=3D"http://www.kitware.com/products/protraining.php" target=3D"=
_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href=3D"http://www.itk.org/Wiki/ITK_FAQ" target=3D"_blank">http://w=
ww.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href=3D"http://www.itk.org/mailman/listinfo/insight-users" target=
=3D"_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
</blockquote></div><br></div>
--e0cb4efe305022f2a704d9ccc9d9--
More information about the Insight-users
mailing list