Hi all,<br><br>I want to perform a morphological operation in which I want to remove all the pixels that match a pattern in a kernel.<br><br>For example, if my image is<br><br>0 0 0 0 0 0<br>0 1 1 1 1 0<br>0 1 1 1 1 0<br>0 1 1 1 1 0<br>
0 0 1 0 0 0<br>0 0 1 0 0 0<br>0 0 1 0 0 0<br>0 0 0 0 0 0<br><br>and my kernel is:<br><br>1 1<br>1 1<br><br>I want the output to be<br><br>0 0 0 0 0 0<br>
0 0 0 0 0 0<br>
0 0 0 0 0 0<br>
0 0 0 0 0 0<br>
0 0 1 0 0 0<br>
0 0 1 0 0 0<br>
0 0 1 0 0 0<br>
0 0 0 0 0 0<br><br>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?<br>
<br>Thanks a lot,<br><br>Michael.<br>