<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Bipul,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">the way I understood that is this:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">watershed->SetInput(inImage);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">watershed->SetLevel(0.8);</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">watershed->Update(); //the initial segmentation, slow</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">seg8=watershed->GetOutput();</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">seg8->DisconnectPipeline(); //might not be needed</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">watershed->SetLevel(0.6);<br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">watershed->Update(); //simple relabeling, quick<br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">seg6=watershed->GetOutput();</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">seg6->DisconnectPipeline(); //might not be needed<br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" style=""><font face="monospace, monospace">watershed->SetLevel(0.55);<br></font></div><div class="gmail_default" style=""><font face="monospace, monospace">watershed->Update(); //simple relabeling, quick<br></font></div><div class="gmail_default" style=""><font face="monospace, monospace">seg55=watershed->GetOutput();</font></div><div class="gmail_default" style=""><font face="monospace, monospace">seg55->DisconnectPipeline(); //might not be needed</font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Give it a try, and if you run into issues ask for help on the new <a href="https://discourse.itk.org/">forum</a>, to which we are transitioning.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif">Dženan</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 10, 2017 at 2:05 AM, bipul <span dir="ltr"><<a href="mailto:bxt161230@utdallas.edu" target="_blank">bxt161230@utdallas.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The documentation for the watershed filter says that<br>
<br>
/"The Level parameter can be used to create a hierarchy of output images in<br>
constant time once an initial segmentation is done. A typical scenario might<br>
go like this: For the initial execution of the filter, set the Level to the<br>
maximum saliency value that you anticipate might be of interest. Once the<br>
initial Update() of this process object has finished, the Level can be<br>
manipulated anywhere below the initial setting without triggering a full<br>
update of the segmentation mini-pipeline. All that is now be required to<br>
produce the new output is a simple relabeling of the output image."/<br>
<br>
I was interested in knowing how to access these hierarchy of output images,<br>
once the update has been performed.<br>
<br>
Thank you.<br>
<br>
Best,<br>
Bipul Tarafdar<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://itk-insight-users.2283740.n2.nabble.com/" rel="noreferrer" target="_blank">http://itk-insight-users.<wbr>2283740.n2.nabble.com/</a><br>
The ITK community is transitioning from this mailing list to <a href="http://discourse.itk.org" rel="noreferrer" target="_blank">discourse.itk.org</a>. Please join us there!<br>
______________________________<wbr>__<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>