[Insight-users] Morphology filters
Richard Beare
richard.beare at gmail.com
Wed Nov 3 19:58:36 EDT 2010
If there was a standard definition of what was binary then maybe. I
try to stick to 1 and 0, but plenty of people use 255 and 0. The
filter is set up to erode a mask defined by the foreground value you
set and treat everything else as background. This is handy in some
situations, but obviously causes problems in others.
On Thu, Nov 4, 2010 at 10:52 AM, David Doria <daviddoria at gmail.com> wrote:
> On Wed, Nov 3, 2010 at 7:40 PM, Richard Beare <richard.beare at gmail.com>
> wrote:
>>
>> That image isn't a "pure" binary one (at least plotting profiles
>> across the edge suggests that there are other values), so there is
>> probably some antialiasing going on around the edges. You could verify
>> this by thresholding.
>>
>> You could do a greyscale erosion instead - it should look more natural.
>>
>> At the moment the values that are close to 255 are being left
>> untouched, leaving the speckle.
>
> Ah, I see it now. I thought (assumed) it was actually a binary image.
> Another case of "you know what happens when you assume...". Should the
> filter report an error (or at least a warning) if the input image is not
> binary?
More information about the Insight-users
mailing list