PANDORE Version 6 | GREYC-IMAGE |
paddval builds the new output im_out by adding constants stored in the collection col_in to each band of the input image im_in. The first constant in the collection is added to the first band, the second constant to the second, etc.
The values are clipped if they are greater than the maximum allowed value or lower than the minimum:
val = pixel(im_in) + col_in; if (val > MAX) pixel(im_out) = MAX; else if (val < MIN) pixel(im_out) = MIN; else pixel(im_out) = val;
The output file is of the same type as the input file.
Returns SUCCESS or FAILURE.
Adds the mean value of tangram.pan image to tangram.pan:
pmeanvalue tangram.pan col.pan paddval col.pan tangram.pan a.panMore examples
Addition d'une image avec des constantes stockées dans une collection.
Author: Régis Clouard