[Insight-users] Compute metric for subregion of image?

Luis Ibanez luis.ibanez at kitware.com
Thu Sep 24 12:45:25 EDT 2009


motes,



Yes,
That's indeed the purpose of that method.


  metric->SetFixedImageRegion(UserSpecifiedRegion);


You can define any subregion of the BufferedRegion,
as the portion of the image in which the Metric
will be computed. Only pixels inside this region
will participate on the metric computation.


     Regards,


         Luis


--------------------------------------------------------------
motes motes wrote:
> I have two 512*512 images (fixed, moving). Now I would like to compute
> the metric for a subregion between those two images, something like:
> 
>     metric->SetFixedImage(imageF);
>     metric->SetMovingImage(imageM);
> //    metric->SetFixedImageRegion(imageF->GetBufferedRegion());
>     metric->SetFixedImageRegion(UserSpecifiedRegion);
> 
> Is this possible somehow using a UserSpecifiedRegion?
> _____________________________________
> 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