[vtkusers] Median of a ROI
Sergi Dote
sergidt at gmail.com
Tue Mar 27 11:23:45 EDT 2007
But, if I do this:
char * scalars = image->GetScalarPointer();
int sum = 0;
for(int i=0;i<image->GetNumberOfPoints();i++)
{
sum = sum + scalars[i];
}
double mean = sum/i;
----
all image will be computed, when I only want work with ROI values. What can
I do this?
--
.: Sergi Dote Teixidor :.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070327/909314db/attachment.htm>
More information about the vtkusers
mailing list