retreiving with getStatistics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

retreiving with getStatistics

donny008
hello

i am faced with a small hiccup while writing this macro so that i can
possibly retreive the mean value and then use this to calculate the mean and
max values. this is my macro

run("Brightness/Contrast...");
    getStatistics(mean, min, max, std, histogram);

    setMinAndMax(mean*0.6666,201);

can someone tell me wats the mistake with this. i wanted getStatistics to
get the values from the image and then with setMinAndMax i could calculate
and set the values.

thanku for the help in advance

cheers


--
Donny George
Reply | Threaded
Open this post in threaded view
|

Re: retreiving with getStatistics

Gluender-2
>hello
>
>i am faced with a small hiccup while writing this macro so that i can
>possibly retreive the mean value and then use this to calculate the mean and
>max values. this is my macro
>
>run("Brightness/Contrast...");
>     getStatistics(mean, min, max, std, histogram);
>
>     setMinAndMax(mean*0.6666,201);
>
>can someone tell me wats the mistake with this. i wanted getStatistics to
>get the values from the image and then with setMinAndMax i could calculate
>and set the values.
>
>thanku for the help in advance
>cheers
>--
>Donny George

The macro functions manual says:
getStatistics(area, mean, min, max, std, histogram)

so

getStatistics(area, mean);
print(mean);

should do the trick.

HTH
--

                   Herbie

          ------------------------
          <http://www.gluender.de>