[Insight-users] Extract a line from a vector in a volume

Dženan Zukić dzenanz at gmail.com
Tue Jul 20 09:11:20 EDT 2010


Hi Paul,

the closest thing is itk::LineConstIterator, for which you have to provide
starting and ending image index.

ofstream f("ValuesAlongLine.txt");
f<<"Value\tIndex\n";
itk::LineConstIterator<VisualizingImageType> it(image, startIndex,
endIndex);
while (!it.IsAtEnd())
{
f<<int(it.Get())<<'\t'<<it.GetIndex()<<'\n';
++it;
}
f.close();

Regards,
Dženan

On Mon, Jul 19, 2010 at 16:46, Urvoas, Paul <paul.urvoas at philips.com> wrote:

>  Hi,
>
> To implement a Curved Planar Reformation Method, I would like to know if
> there is an itk function to extract a line from a volume using  a vector
> (direction of the line I want to extract).
>
> Thanks in advance.
>
>
>
> Paul Urvoas
>
>
>
> ------------------------------
> The information contained in this message may be confidential and legally
> protected under applicable law. The message is intended solely for the
> addressee(s). If you are not the intended recipient, you are hereby notified
> that any use, forwarding, dissemination, or reproduction of this message is
> strictly prohibited and may be unlawful. If you are not the intended
> recipient, please contact the sender by return e-mail and destroy all copies
> of the original message.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100720/fe7a0b45/attachment.htm>


More information about the Insight-users mailing list