[Insight-developers] Const-Correctness problem in
itk::ImageToImageMetric?
Henning Meyer
tutmann at gmail.com
Wed Jul 26 08:33:58 EDT 2006
Many of the filters take nonconst input even though most of them
shouldn't modify their input.
I also dislike, that there is no automatic non const to const cast avialable.
I think const correctness is really an issue in ITK.
Henning
2006/7/25, Kent Williams <kent at psychiatry.uiowa.edu>:
> This came up when I was working on setting masks for image registration.
>
> Is there a reason that itk::ImageToImageMetric::SetFixedImageMask takes
> a non-const pointer to an Image mask type? Given that the class is
> never going to modify the Mask, shouldn't it be const?
>
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
>
More information about the Insight-developers
mailing list