Ask Your Question
0

how to change window/level of displayed image

asked Mar 12 '13

joker gravatar image

Hi,

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.

Thanks.

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Mar 12 '13

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

http://docs.opencv.org/modules/imgproc/doc/miscellaneous_transformations.html

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

Preview: (hide)

Comments

Could you explain how to do it?

Artem.s gravatar imageArtem.s (Apr 23 '15)edit

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

StevenPuttemans gravatar imageStevenPuttemans (Apr 24 '15)edit

Question Tools

Stats

Asked: Mar 12 '13

Seen: 2,598 times

Last updated: Mar 12 '13