[Insight-users] reproducible bug in CannyEdgeDetectionImageFilter
Charl Botha
c.p.botha at tudelft.nl
Mon Aug 10 12:33:29 EDT 2009
Dear all,
Running the attached Python script on
Insight/Testing/Data/Input/cthead1.png yields 4 images on disc, of
which canny_t0.png and canny_t0_after.png should be identical, as they
are using the same thresholds, and otherwise identical parameters.
However, they are wildly different, see the attached images.
In short, the canny filter's behaviour changes depending on whether it
has been freshly instantiated or whether it has been used with a
different parameter setting before. Setting the threshold back to a
previous value after having executed the filter with different values
will yield incorrect results.
Is this a bug, or am I expecting too much from this filter? :)
Thanks,
Charl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CannyEdgeDetectionImageFilter_repeat_bug.py
Type: text/x-python
Size: 1101 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090810/7aca9ce1/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: canny_t0.png
Type: image/png
Size: 10986 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090810/7aca9ce1/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: canny_t0_after.png
Type: image/png
Size: 15670 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090810/7aca9ce1/attachment-0003.png>
More information about the Insight-users
mailing list