[Insight-users] Re: metrics and image masks
Christoph Niedermayr
niedermayr at trium.de
Thu Aug 17 09:13:31 EDT 2006
Am Donnerstag, den 17.08.2006, 08:39 -0400 schrieb Luis Ibanez:
> Hi Chirs,
>
> What version of ITK are you using ?
2.6
> There are no calls to GetPixel() inside the file
> Insight/Code/Algorithms/
> itkMattesMutualInformationImageToImageMetric.txx
> What the metric calls is the method "IsInside" in lines
> 457 and 526.
you're right, i got that confused. But "IsInside" then calls "GetPixel",
if the sample is considered inside the SpacialObject, in my case with an
invald index.
> BTW if you want to use an binary image as a mask,
> the class that you should use is the
> itkImageMaskSpatialObject.h
again, you're right. actually, i'm using itkImageMaskSpatialObject, i
had the wrong name on my mind...
sorry for the confusion,
Chris
More information about the Insight-users
mailing list