<div dir="ltr">Dear all,<div><br></div><div style>I&#39;m sending this issue to both <span class="" style="background-color:yellow">GDCM</span> and <span class="" style="background-color:yellow">VTK</span> mailing list because even though we are currently using the <span class="" style="background-color:yellow">GDCM</span> implementation of <span class="" style="background-color:yellow">vtkImageMapToWindowLevelColors</span>, it has the same behavior than <span class="" style="background-color:yellow">VTK</span> implementation.</div>

<div style><br></div><div style>My question is related to how the window and level are applied when a <span class="" style="background-color:yellow">lookup</span> table is assigned. I prepared a video to illustrate it: <a href="http://www">http://www</a>.<span class="" style="background-color:yellow">youtube</span>.com/watch?v=<span class="" style="background-color:yellow">PbQnWCBhpmw</span></div>

<div style><br></div><div style>Currently, when a <span class="" style="background-color:yellow">lookup</span> table is given, the scalars are mapped through the table and then each output component is multiplied by (<span class="" style="background-color:yellow">inputValue</span> + shift)*scale. Thus, a scalar value always has the same hue and only the brightness changes depending on window and level values.</div>

<div style><br></div><div style>Our expected behavior is obtained by changing the range of the <span class="" style="background-color:yellow">lookup</span> table taking into account the window and level values, and then mapping the scalars through the table to obtain the output colors. </div>

<div style><br></div><div style>I think that the video clearly shows the difference.</div><div style><br></div><div style>I would like to know your opinion and I am also wondering what are the cases where the current behavior is the desired behavior.</div>

<div style><br></div><div style>Many thanks!</div><div style><br></div><div style>Roger</div></div>