Original Post
Hi all, Has anyone here had any experience with 'window and leveling'? It's basically the ability to specify a range of scalar values to be displayed in an image. (I think this may be synonymous with brightness/contrast). So if your image has grey scale values of 0 to 3000, you can specify your 'window' to be 200, and 'level' to be 1000. Therefore, the scalar values between 900 and 1100 would be mapped to the minimum and maximum values for your display. Any values under recevie black, any values over receive white. I've implemented this so the user of my app can change the window/level in real time by shifting the mouse around, and it works well for images up to about 400 x 400 pixels with 3 color channels. Once I get to 512x512 it starts getting a little choppy. Just wondering if anyone has any experience with this, and if there is some way I can fake this effect, for instance overlaying a transparent quad over my image and just changing its transparency to *look* like I'm doing a per pixel multiplication etc etc. I'm doing this all with just windows bitmaps, no opengl or anything. Thanks!