Commit fe92edc0 authored by saubatn's avatar saubatn
Browse files

FIXED Get back volumic images color support.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@1992 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 24942fcd
......@@ -372,6 +372,7 @@ void ImageComponent::postSaving(){
// -------------------- initLookupTable --------------------
void ImageComponent::initLookupTable() {
// TODO set in a betterway information about the lut thanks to image data
if (this->originalImageData->GetNumberOfScalarComponents() == 1) {
// Default values for grey level lut
......@@ -387,10 +388,9 @@ void ImageComponent::initLookupTable() {
} else {
// For colored image, we need to extract the information from the image
// but a classic lut is not really easy to use.
// delete default LUT
//lut = NULL;
lut->ForceBuild();
// but a classic lut is useless (if there is one, it displays wrong information)
// do not consider a lut for colored images
lut = NULL;
}
}
......
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