[Insight-users] Watershed error
Conrad Bielski
conrad_bielski at yahoo.com
Sun Jun 26 15:47:32 EDT 2011
Dear David,
try using 0 and 255 for your binary image instead of 0 and 1.
Good luck,
Conrad :)
Date: Sun, 26 Jun 2011 11:22:51 -0400
From: David Doria <daviddoria at gmail.com>
Subject: [Insight-users] Watershed error
To: ITK <insight-users at itk.org>
Message-ID: <BANLkTikf-GqET4x-+dV1_4swbBqPJBjeug at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
I am trying to make a very simple example of the WatershedImageFilter
class. I created a binary image (two white squares on a black
background) and then attempted to do this:
http://www.itk.org/Wiki/ITK/Examples/WishList/Segmentation/WatershedImageFilter
but I get:
itk::ERROR: itk::watershed::SegmentTreeGenerator::MergeSegments:: An
unexpected and fatal error has occurred. This is probably the result
of overthresholding of the input image.
I tried with many combinations of 'threshold' and 'level', both
between 0 and 1. I realize that there are certainly better methods to
segment these squares, but I'm trying to start with a very simple
case. Does anyone see the problem with what I've done?
Thanks,
David
More information about the Insight-users
mailing list