PANDORE Version 6 | GREYC-IMAGE |
The operator pinverse performs an inversion of the values of the input im_in.
For byte images, inversion is applied from the minimum and maximum values of the related type (0-255):
pixel = (max(type) + min(type)) - pixel.
For integer and float images, inversion is applied from the minimum and maximum values in the image:
pixel = (max(image) + min(image)) - pixel.
For color or multispectral image, the "inversion" operator is computed separately on each band.
For graph, inversion is applied on each node value:
val = (max(graph) - min(graph)) - val.
For region map, inversion is applied on each label different from 0:
label 0 -> 0; label 1 -> higher label value; label 2 -> higher label value-1; ... label higher label value -> 1;
Returns SUCCESS or FAILURE.