Re: how to calculate min and max of images
Posted by Robert Dougherty on Oct 20, 2008; 2:58pm
URL: http://imagej.273.s1.nabble.com/how-to-calculate-min-and-max-of-images-tp3694676p3694678.html
Prashant,
If you are asking an algebra question, the answer is
Min = WindowCenter - WindowWidth/2;
Max = WindowCenter + WindowWidth/2;
You can derive this graphically or by solving the simultaneous equations you
gave.
(In the example, should it read (Max - Min) = 32883 - (-32733) = 65616 ?)
Bob
Robert P. Dougherty, Ph.D.
President, OptiNav, Inc.
Phone (425) 990-5912
Fax (425) 467-1119
www.optinav.com
> 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.
>
>