[Insight-users] Local MI value
Karthik Krishnan
karthik.krishnan at kitware.com
Mon Nov 23 23:14:36 EST 2009
Nothing prevents you from instantiating a separate metric and setting
the fixed and moving images on it and calling GetValue() yourself. You
don't need to always drive it from an optimizer (although that is the
typical use case).
You could place this code in your observer. Your instantiated Mattes
metric would use all samples (see the option on the metric). Also set
the transform at the current iteration on the metric.
You may prefer to use itkMutualInformationHistogramImageToImageMetric
. There is no sampling, smoothing with a kernel function etc, if you
plan to use every single voxel.
On Mon, Nov 23, 2009 at 7:34 PM, Serena Fabbri <fabbri at u.washington.edu> wrote:
>
>
>
> Hi All,
>
> I am registering CT image and MRI image with Mattes-MI and BSpline
> Transformation (Non Rigid Registration).
> I want use all images for metric calculation but I'd like to know the value
> of the MI in a particular region of the my fixed image.
> I think that SetFixedRegion and SetFixedImageMask are not useful for my task
> because they restrict the MI calculation to the specified region. am I
> wrong?
> any suggestion?
>
> Thank you.
> Serena.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.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
>
--
_________________________________
Karthik Krishnan
R&D Engineer,
Kitware Inc.
More information about the Insight-users
mailing list