[Insight-developers] question about CovarianceSampleFilter
Arnaud Gelas
arnaud_gelas at hms.harvard.edu
Fri Dec 3 15:57:27 EST 2010
Hi all,
In itk::CovarianceSampleFilter, the mean is computed as the same type
as the TSample type. So if inputs are vector of unsigned char, the
mean is a vector of unsigned char...
While the mean is assumed to be as the same type as TSample, the
covariance matrix coefficients are in double, not in the same type as
the input.
Shouldn't the mean' components in double (to be consistent with what
has been done for the covariance matrix)?
Thanks,
Arnaud
More information about the Insight-developers
mailing list