Ask Your Question

how to change window/level of displayed image

asked 2013-03-12 05:30:08 -0600

joker gravatar image


Default display of an arbitrary image is not always a best fit, as all grey levels are automatically displayed, image may appear as dark grey. Therefore before display, image should be "filtered" by setting to 0 all values below min val of that window, setting to max all values above that window, and re-sampling/re-interpolating all the values inside the window.

Is there any built-in function to change windowing of displayed image? If not - what function could be used prior display to apply the windowing filter above.


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-03-12 05:48:23 -0600

I guess the threshold algorithms proposed here could help you out:

The threshold function applied twice could do exactly what you want. Just convert your 2D image structure to a single row vector first.

edit flag offensive delete link more


Could you explain how to do it?

Artem.s gravatar imageArtem.s ( 2015-04-23 11:01:38 -0600 )edit

There are tutorials to explain how to do it. For thresholding it is this one!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-04-24 02:31:30 -0600 )edit

Question Tools


Asked: 2013-03-12 05:30:08 -0600

Seen: 2,405 times

Last updated: Mar 12 '13