how to calculate min and max of images
Posted by
Prashant-2-3 on
Oct 20, 2008; 4:02am
URL: http://imagej.273.s1.nabble.com/how-to-calculate-min-and-max-of-images-tp3694676.html
Hello EveryOne,
I am using imagej tools for opening my images.
for changing the image window width and center imagej provides setMinAndMax()
So according to that min and max window level is set.
But my purpose is to by changing the Window width and window center i have to set min and max
Example:-
Suppose
Min = -32733 , Max = 32883
then
WindowCenter = (Max + Min)/2 = (32883 -32733)/2 = 150/2 = 75
WindowWidth = (Max - Min) = 32
But How to calculate min and max from Window Width and window center.
With Warm Regards
--------------------------------------------------------------------
Prashant Chandrakar
Software Developer
MedSynaptic Pvt Ltd
9270710943
[hidden email]
"If the facts don't fit the theory, change the facts."