Skip to content
Snippets Groups Projects
Commit 79f07f32 authored by Julien Michel's avatar Julien Michel
Browse files

Mise à jour Viewer.

parent 9c6e80d0
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,7 @@ ImageWidgetBase<TPixel> ...@@ -275,7 +275,7 @@ ImageWidgetBase<TPixel>
} }
else else
{ {
return static_cast<unsigned char>(256*static_cast<double>(value-m_MinComponentValues[channelIndex]) return static_cast<unsigned char>(255*static_cast<double>(value-m_MinComponentValues[channelIndex])
/static_cast<double>(m_MaxComponentValues[channelIndex]-m_MinComponentValues[channelIndex])); /static_cast<double>(m_MaxComponentValues[channelIndex]-m_MinComponentValues[channelIndex]));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment