Skip to content
Snippets Groups Projects
Commit 0419c1f4 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: fix colormapping with support image

parent 011922a2
Branches
Tags
No related merge requests found
......@@ -482,7 +482,7 @@ private:
// image normalisation of the sampling
FloatVectorImageType::Pointer supportImage = this->GetParameterImage("method.image.in");
supportImage->UpdateOutputInformation();
//supportImage->UpdateOutputInformation();
//normalisation
//first of all resampling
......@@ -584,7 +584,7 @@ private:
minVal.SetElement(index, static_cast<FloatVectorImageType::PixelType::ValueType> (histogramList->GetNthElement(index)->Quantile(0, static_cast<float> (this->GetParameterInt("method.image.low"))/ 100.0)));
maxVal.SetElement(index, static_cast<FloatVectorImageType::PixelType::ValueType> (histogramList->GetNthElement(index)->Quantile(0, (100.0- static_cast<float> (this->GetParameterInt("method.image.up")))/ 100.0)));
}
m_CasterToLabelImage = CasterToLabelImageType::New();
m_CasterToLabelImage->SetInput(GetParameterFloatImage("in"));
m_CasterToLabelImage->InPlaceOn();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment