[ITK-users] Watershed filter: vary level parameter without running update
Dženan Zukić
dzenanz at gmail.com
Fri Nov 10 09:43:01 EST 2017
Hi Bipul,
the way I understood that is this:
watershed->SetInput(inImage);
watershed->SetLevel(0.8);
watershed->Update(); //the initial segmentation, slow
seg8=watershed->GetOutput();
seg8->DisconnectPipeline(); //might not be needed
watershed->SetLevel(0.6);
watershed->Update(); //simple relabeling, quick
seg6=watershed->GetOutput();
seg6->DisconnectPipeline(); //might not be needed
watershed->SetLevel(0.55);
watershed->Update(); //simple relabeling, quick
seg55=watershed->GetOutput();
seg55->DisconnectPipeline(); //might not be needed
Give it a try, and if you run into issues ask for help on the new forum
<https://discourse.itk.org/>, to which we are transitioning.
Regards,
Dženan
On Fri, Nov 10, 2017 at 2:05 AM, bipul <bxt161230 at utdallas.edu> wrote:
> Hi,
>
> The documentation for the watershed filter says that
>
> /"The Level parameter can be used to create a hierarchy of output images in
> constant time once an initial segmentation is done. A typical scenario
> might
> go like this: For the initial execution of the filter, set the Level to the
> maximum saliency value that you anticipate might be of interest. Once the
> initial Update() of this process object has finished, the Level can be
> manipulated anywhere below the initial setting without triggering a full
> update of the segmentation mini-pipeline. All that is now be required to
> produce the new output is a simple relabeling of the output image."/
>
> I was interested in knowing how to access these hierarchy of output images,
> once the update has been performed.
>
> Thank you.
>
> Best,
> Bipul Tarafdar
>
>
>
> --
> Sent from: http://itk-insight-users.2283740.n2.nabble.com/
> The ITK community is transitioning from this mailing list to
> discourse.itk.org. Please join us there!
> ________________________________
> 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/insight-users/attachments/20171110/c1f10921/attachment.html>
More information about the Insight-users
mailing list