Forums Register Login

WindowWidth WindowLevel ImageJ

+Pie Number of slices to send: Send
Is anyone familiar with calculating minimum and maximum values of image data (I'm guessing this somehow maps to pixel values)? If I open an image in ImageJ and adjust it's window width/window level, I get a different brightness/contrast for the image. I am reading in images from raw data and there are headers that tell me what each images window width and window level should be set at.
I copied out the ImageJ setWindowLevel method from the ImageJ ContrastAdjuster class and tried using that. It really screws up my image - and I am thinking that the code posted online (http://rsb.info.nih.gov/ij/developer/source/index.html) is incorrect. I know for a fact that their calculation of levelValue is incorrect, so I'm thinking the values taken from the dialog are not used correctly.
If anyone is familair with getting min/max values from windowwidth/windowlevel, please PLEASE take a look at the code and let me know what might be wrong!
Thanks,
Chris
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1186 times.
Similar Threads
Javascript/HTML - parsing image files
Java Advanced Imaging
Image Processing Help
Slider Woes
Create BufferedImage
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 22:42:12.