Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 188d8549 authored by saubatn's avatar saubatn
Browse files

FIXED Initial lut level set to mean value.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2025 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 2e27e079
......@@ -164,13 +164,12 @@ void DicomComponent::updateLUT() {
double range[2] = {0.0, 0.0};
imageReader->GetOutput()->GetScalarRange(range);
getLut()->SetRange(range); // we need to set up range and table values
getLut()->SetLevel((abs(range[0]) + abs(range[1])) / 2);
getLut()->SetLevel((range[1] + range[0]) / 2);
getLut()->SetNumberOfTableValues(abs(range[0]) + abs(range[1]));
/// DEBUG
// std::cout << "updateLut >> Range = ( " << range[0] << ", " << range[1] << ")" << std::endl;
getLut()->SetNumberOfTableValues(abs(range[0]) + abs(range[1]));
// std::cout << "UPDATE DONE" << std::endl;
// std::cout << "updateLut >> Range = ( " << range[0] << ", " << range[1] << ")" << std::endl;
// std::cout << "UPDATE DONE" << std::endl;
}
// --------------- readDirectCosinesAngle -------------------
......
Markdown is supported
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