Posted by
Prashant-2-3 on
Oct 11, 2008; 11:54am
URL: http://imagej.273.s1.nabble.com/setting-WindowWidth-and-WindowCenter-values-tp3694797.html
Hi everyOne,
I want to change the window width and window center of the image.
I am opening my dicom images through ij.jar.
Actually i want to change window Level values through mouseDragged event.
Then which method i have to call.
I am currently using ip.setMinAndMax() method.
But i am not getting it sets which min and min.
If our image is Signed then
min max
Window Width range = 1 to 2^(High Bit value)
Window Center range = 1 to 2^(High Bit value)
If our image is UnSigned then
min max
Window Width range = 1 to 2^(High Bit value)
Window Center range = - 2^(High Bit value)/2 to +2^(High Bit value)/2
So if i using ip.setMinAndMax(min,max) then is it WindowWidth or WindowCenter min and Max?
Please clarify if i wrong about their range.
So please help me how i set Window Width and Window Center values of image.
It is same as you are setting slider min and max in W&L window.
With Warm Regards
--------------------------------------------------------------------
Prashant Chandrakar
Software Developer
MedSynaptic Pvt Ltd
9270710943
[hidden email]
"If the facts don't fit the theory, change the facts."