[Insight-users] Read Image - extract region - use median filter - write image

John Drescher drescherjm at gmail.com
Thu Feb 17 10:02:19 EST 2011


> I use visualstudio2010 and I am trying to read an image, then extract a
> region from the image and finally apply a median filter on the image's
> extracted area, getting the final image using a writer object. I created the
> four needed objects (reader, region, median filter, writer) as it is shown
> in the code bellow. But when I built my project, I get the following
> failure:( 'FilterType' : redefinition; different basic types). I can
> understand that my wrong was that I used the same FilterType for both
> itk::RegionOfInterestImageFilter and  itk::MedianImageFilter, but I don't
> know how to solve it. Any ideas?
>

Don't define FilterType twice. Call them something different and
adjust the code to use the new names..

John


More information about the Insight-users mailing list