[ITK] [ITK-users] Vectorize/Linearize itk::Image

Dženan Zukić dzenanz at gmail.com
Tue May 24 09:54:22 EDT 2016


Hi Sarthak,

use iterators to go through all the pixels, and add each of them to a
vector of your choice.

HTH

On Tue, May 24, 2016 at 9:48 AM, Scapegoat Sarthak <
scapegoat.sarthak at gmail.com> wrote:

> Hello All,
>
> What would be the fastest way to convert an itk::Image< DataType,
> Dimensions > to a single vector of intensities? Ideally, I would like to
> concatenate multiple such vectors and pass them to machine learning
> algorithms.
>
> Thanks,
> Sarthak
>
> _____________________________________
> 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160524/49c6a609/attachment.html>
-------------- next part --------------
_____________________________________
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.php

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://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list