[ITK] [ITK-users] Pixel operations on subsets of label objects
Arnaud Gelas
arnaudgelas at gmail.com
Mon Apr 20 04:46:03 EDT 2015
Hi,
One LabelObject is a collection of lines aligned in the first dimension (X axis aligned). It is not really straightforward to get the 2nd slice of one…
One possibility:
You can first make use of ShapeLabelMap to get the bounding box of LabelObjects, from this one you can then deduce the slice of interest for each LabelObjects.
For all LabelObject lo
extract lo into one LabelMap
convert this LabelMap into BinaryImage
make the input image with this binary mask
extract the slice of interest based on its bounding box
compute threshold
HTH
Arnaud
> On 18 Apr 2015, at 20:43, <cervellone at gmail.com> <cervellone at gmail.com> wrote:
>
> Thanks for the reply
>
> I am handling 3d voxel data. Starting from gray levels I want to run a connected components but keep the gray level data and iterate over the label map,
> The property I am interested in is not in the shape label map, nor in the statistics label map.
>
> I would like to compute the threshold for every 2d slice of the 3d label object separately. For this I would need to extract the pixels of the label object and use the extract slice image filter on it. Any idea how this can be done ?
>
>
> Thanks jp
>
> On Friday, April 17, 2015, Pol Monsó Purtí <lluna.nova at gmail.com <mailto:lluna.nova at gmail.com>> wrote:
> Hello jp,
>
> How do you distinguish which objects are you interested in and what operations do you want to perform?
>
> Maybe this example is helpful to you: http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter <http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter>
>
> HTH,
>
> Pol
>
> 2015-04-17 20:08 GMT+02:00 jp <cervellone at gmail.com <javascript:_e(%7B%7D,'cvml','cervellone at gmail.com');>>:
> Dear all,
> I would like to iterate over the label object and perform pixel operations
> of a subset of a label object.
> Currently fail to see how i can set up the label manipulation tools of itk
> to achieve this
>
> Thank you
>
> jp
>
>
>
>
>
> --
> View this message in context: http://itk-users.7.n7.nabble.com/Pixel-operations-on-subsets-of-label-objects-tp35543.html <http://itk-users.7.n7.nabble.com/Pixel-operations-on-subsets-of-label-objects-tp35543.html>
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com <http://www.kitware.com/>
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html <http://www.kitware.com/opensource/opensource.html>
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php <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 <http://www.itk.org/Wiki/ITK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users <http://public.kitware.com/mailman/listinfo/insight-users>
>
> _____________________________________
> 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/20150420/9a5bc734/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