[Insight-users] SpatialObjects and Images

Emiliano Beronich emiliano at veccsa.com
Fri May 27 15:51:45 EDT 2005


Hi everybody!

I have a 2D SpatialObject and an ItkImage. I want to calculate the sum 
of the intensities of the pixels belonging to the image inside the 
SpatialObject and the count of pixels inside the SpatialObject. The last 
value is related to the area of the SpatialObject but it is not the 
same, because I want to consider whole pixels. A pixel must be counted 
only if the function IsInside() of the SpatialObject is true for it.

I think this is a very common task. How can it be accomplished?

Regards
Emiliano


More information about the Insight-users mailing list