[vtkusers] Calculation of Window/Level

Wagner Sales wsales at gmail.com
Sat Jul 11 13:56:39 EDT 2009


Hi,

Getting some images that's have a scalar range with negative and
positive values, I'm in doubt newly about level calculation, but to no
more doubts:
1 - Window
min-window = always 1
max-window = (range[1] - range[0]) +1

2 - Level
min-level = range[0]
max-level = range[1]

Or
2 - Level
min-level = always 0
max-level = (range[1] - range[0])

Window calculation are correct? ( I think yes )
What's are correct, the first or the second level calculation?

Regards,

Wagner Sales

2009/6/26 John Drescher <drescherjm at gmail.com>:
> On Fri, Jun 26, 2009 at 10:34 AM, John Drescher<drescherjm at gmail.com> wrote:
>> On Fri, Jun 26, 2009 at 10:31 AM, Wagner Sales<wsales at gmail.com> wrote:
>>> Thks John,
>>> Sorry, but the ScalarRange are valid for both ( window and level )?
>>
>> Window is min range[0]+ 1 max range[1]+1
>>
>
> Correction:
> Window should be at minimum 1
> At max. (range[1] - range[0]) + 1
>
> John
>



More information about the vtkusers mailing list