[Insight-users] GetGradientImage() ?
motes motes
mort.motes at gmail.com
Wed Sep 16 09:38:09 EDT 2009
Ah yes the black magic macros, I am constantly getting confused about those.
But when using that macro how is it decided which image (fixed or
moving) the gradient is returned from? In the metric something like
this is written:
const GradientPixelType gradient =
this->GetGradientImage()->GetPixel( mappedIndex );
But its that from the moving or fixed image?
On Wed, Sep 16, 2009 at 1:30 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> The method is defined by the macro:
> /** Get Gradient Image. */
> itkGetConstObjectMacro( GradientImage, GradientImageType );
> defined in itkImageToImageMetric.h which is a superclass of
> itkMeanSquaresImageToImageMetric.
>
> Bill
>
> On Tue, Sep 15, 2009 at 5:12 PM, motes motes <mort.motes at gmail.com> wrote:
>> Where is the GetGradientImage() function defined? I the file:
>>
>> itkMeanSquaresImageToImageMetric.txx
>>
>> it is used like this:
>>
>>
>> const GradientPixelType gradient =
>> this->GetGradientImage()->GetPixel( mappedIndex );
>>
>> But when I try to go to the definition I just get an error that it
>> does not exists. I have also tried looking at:
>>
>>
>> http://www.itk.org/Doxygen/html/classes.html
>>
>> But its not possible to search for member functions only classes.
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>
More information about the Insight-users
mailing list