Commit 72653f6c authored by saubatn's avatar saubatn
Browse files

FIXED VS build errors.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2162 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 19623126
......@@ -147,7 +147,7 @@ bool VtkImageComponentExtension::save(Component* component) const {
double scalarTypeMin = imgRange[0];
double scalarTypeMax = imgRange[1];
double shift = (scalarTypeMax - scalarTypeMin) / 2;
double scale = 255.0d / (scalarTypeMax - scalarTypeMin);
double scale = (double) 255.0 / (scalarTypeMax - scalarTypeMin);
castFilter->SetShift(shift);
castFilter->SetScale(scale);
castFilter->SetOutputScalarTypeToUnsignedChar();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment