[Insight-developers] function to compare image information?
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Jul 19 16:37:33 EDT 2011
Hello,
The recent addition you are likely thinking of is the ImageToImageFilter::VerifyInputInformation method.
It implements its own version of comparing Spacing Origin and Direction. It utilizes some vnl methods for tolerant comparisons. Jim Miller implemented it used those as I have never seen them before myself.
I would very much be in favor have having a method ( some place ), which performs this comparison. It would be very beneficial to have this done in a central location too. And when it's implemented VerifyInputInformation should use it as well.
ImageBase seems like a sensible location for the method to me. What method name and parameters are you thinking about?
Brad
On Jul 19, 2011, at 3:12 PM, M Stauffer (V) wrote:
> Hi,
>
> I'm looking for a method or class to test whether the image information
> (buffered region, spacing, direction, origin) is the same between two
> image, within some epsilon. Is there something already?
>
> If I need to make my own, should I put it in ImageBase, where I see
> CopyInformation?
>
> And is there an ITK-way I should do a comparison within epsilon? I
> remember seeing some discussion about this on the list recently, but it
> didn't seem settled.
>
> Our goal is to be able to compare the domains of a deformation field and
> an image to decide when we can do some optimized transformations. That
> is, when the domains are the same, we can perform transformation over an
> input domain more quickly.
>
> Thanks.
>
> -M
>
> _______________________________________________
> 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://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-developers
More information about the Insight-developers
mailing list