[Insight-users] Is there an image filter that can compute an mean image (mean pixel values) of several images with different sizes?
Seth Gilchrist
seth at mech.ubc.ca
Mon Dec 20 12:53:40 EST 2010
Hi Haiyong,
itk::ImageRegion has a crop function that will return the intersecting area
of two regions:
itk::ImageRegion regionOne = imageOne->GetLargestPossibleRegion();
itk::ImageRegion regionTwo = imageTwo->GetLargestPossibleRegion();
regionOne.Crop(regionTwo);
If you feed the regions progressively into this pseudo-code you will end up
with the common region. Use image iterators to access this common region
and create a new image of the average.
I also found this
http://www.vtk.org/Wiki/ITK/Examples/SimpleOperations/RegionOverlap
which may help.
Cheer,
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101220/3945465f/attachment.htm>
More information about the Insight-users
mailing list