Discussion:
[ITK-users] Watershed filter: vary level parameter without running update
bipul
2017-11-10 07:05:36 UTC
Permalink
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
Dženan Zukić
2017-11-10 14:43:01 UTC
Permalink
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
Post by bipul
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
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...