<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">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…</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">One possibility:</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">For all LabelObject lo</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>extract lo into one LabelMap <span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>convert this LabelMap into BinaryImage<span class="Apple-tab-span" style="white-space:pre"> </span></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>make the input image with this binary mask</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>extract the slice of interest based on its bounding box</div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>compute threshold</div><div class=""><br class=""></div><div class="">HTH</div><div class="">Arnaud</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 18 Apr 2015, at 20:43, <<a href="mailto:cervellone@gmail.com" class="">cervellone@gmail.com</a>> <<a href="mailto:cervellone@gmail.com" class="">cervellone@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">Thanks for the reply<div class=""><br class=""></div><div class="">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,</div><div class="">The property I am interested in is not in the shape label map, nor in the statistics label map. </div><div class=""><br class=""></div><div class="">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 ? </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks jp<br class=""><br class="">On Friday, April 17, 2015, Pol Monsó Purtí <<a href="mailto:lluna.nova@gmail.com" class="">lluna.nova@gmail.com</a>> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class="">Hello jp,<br class=""><br class="">How do you distinguish which objects are you interested in and what operations do you want to perform?<br class=""><br class=""></div>Maybe this example is helpful to you: <a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter" target="_blank" class="">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/BinaryImageToShapeLabelMapFilter</a><br class=""><br class=""></div>HTH,<br class=""><br class=""></div>Pol<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2015-04-17 20:08 GMT+02:00 jp <span dir="ltr" class=""><<a href="javascript:_e(%7B%7D,'cvml','cervellone@gmail.com');" target="_blank" class="">cervellone@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all,<br class="">
I would like to iterate over the label object and perform pixel operations<br class="">
of a subset of a label object.<br class="">
Currently fail to see how i can set up the label manipulation tools of itk<br class="">
to achieve this<br class="">
<br class="">
Thank you<br class="">
<br class="">
jp<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
--<br class="">
View this message in context: <a href="http://itk-users.7.n7.nabble.com/Pixel-operations-on-subsets-of-label-objects-tp35543.html" target="_blank" class="">http://itk-users.7.n7.nabble.com/Pixel-operations-on-subsets-of-label-objects-tp35543.html</a><br class="">
Sent from the ITK - Users mailing list archive at <a href="http://Nabble.com" class="">Nabble.com</a>.<br class="">
_____________________________________<br class="">
Powered by <a href="http://www.kitware.com/" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<br class="">
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Kitware offers ITK Training Courses, for more information visit:<br class="">
<a href="http://www.kitware.com/products/protraining.php" target="_blank" class="">http://www.kitware.com/products/protraining.php</a><br class="">
<br class="">
Please keep messages on-topic and check the ITK FAQ at:<br class="">
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank" class="">http://www.itk.org/Wiki/ITK_FAQ</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" target="_blank" class="">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="">
</blockquote></div><br class=""></div>
</blockquote></div>
_____________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at<br class=""><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Kitware offers ITK Training Courses, for more information visit:<br class="">http://www.kitware.com/products/protraining.php<br class=""><br class="">Please keep messages on-topic and check the ITK FAQ at:<br class="">http://www.itk.org/Wiki/ITK_FAQ<br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class="">http://public.kitware.com/mailman/listinfo/insight-users<br class=""></div></blockquote></div><br class=""></div></body></html>