[Insight-users] Morphology - pattern matching

Oliver Trebbe otrebbe at uni-muenster.de
Fri Apr 4 09:43:24 EDT 2008


Hi Michael,

try to find something about a 'Hit-or-miss' operator...
maybe this is what u want.
I hope that can help u.
(i thing it would look like to opeartors:
first:
11
11
then this:
1111
1  1
1  1
1111
but right now im not that sure how they exactly look...


Greatings

Oliver


Michael Baltaxe schrieb:
> Hi all,
>
> I want to perform a morphological operation in which I want to remove 
> all the pixels that match a pattern in a kernel.
>
> For example, if my image is
>
> 0 0 0 0 0 0
> 0 1 1 1 1 0
> 0 1 1 1 1 0
> 0 1 1 1 1 0
> 0 0 1 0 0 0
> 0 0 1 0 0 0
> 0 0 1 0 0 0
> 0 0 0 0 0 0
>
> and my kernel is:
>
> 1 1
> 1 1
>
> I want the output to be
>
> 0 0 0 0 0 0
> 0 0 0 0 0 0
> 0 0 0 0 0 0
> 0 0 0 0 0 0
> 0 0 1 0 0 0
> 0 0 1 0 0 0
> 0 0 1 0 0 0
> 0 0 0 0 0 0
>
> Is there something in ITK that performs this operation? I found the 
> NormalizedCorrelationImageFilter, but I am not sure how to use it, 
> could someone give me some hints on this filter if it the one I should 
> be using?
>
> Thanks a lot,
>
> Michael.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>   



More information about the Insight-users mailing list