immean -- Compute image mean.
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.
- input [file name]
- Input image. This may be of any dimension.
- (verbose = yes) [boolean]
- Print the result?
The mean value will be saved in mean regardless of the value of verbose.
- (mean) [real]
- This is an output parameter containing the computed mean.
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")