DOUBLEMASK *im_measure(in, box, h, v, sel, nsel, name)
IMAGE *in;
IMAGE_BOX *box;
int h, v;
int *sel;
int nsel;
char *name;
Example:
6 band image of 4x2 block of colour patches.
+---+---+---+---+
| 1 | 2 | 3 | 4 |
+---+---+---+---+
| 5 | 6 | 7 | 8 |
+---+---+---+---+
Then call im_measure( im, box, 4, 2, { 2, 4 }, 2, "fred" ) makes a mask "fred" which has 6 columns, two rows. The first row contains the averages for patch 2, the second for patch 4.
Output warnings: a warning is issued if the standard deviation of any patch is greater than 20% of the mean of that patch.