| immean | stsdas.playpen | immean |
immean -- Compute image mean.
immean input
This task computes the mean of an image and saves the mean to the parameter mean. This is useful in scripts that need mean values, as neither imstatistics nor wstatistics saves computed values as task parameters. This task gets the values and does the arithmetic in double precision.
The mean value will be saved in mean regardless of the value of verbose.
1. Compute the mean of image file1.hhh over the image section [30:72,41:46]. Then subtract that value from the entire image, putting the result in diff.hhh.
pl> immean file1.hhh[30:72,41:46] pl> imarith.operand2 = immean.mean pl> imarith "file1.hhh" - result="diff" mode=h
In a script, this would be written as follows:
pl> immean ("file1.hhh[30:72,41:46]", verbose=no)
pl> imarith ("file1.hhh", "-", immean.mean, "diff")