PANDORE Version 6 | GREYC-IMAGE |
prvb2ast converts color image from the color space RGB (Red, Green, Blue) to the color space AST.
AST is the color space defined by Chassery. It is a simplified model based on the components:
log(R) + log(V) + log(B) A = ------------------------ 3 C1 = sqrt(3)/2 * (log(R)-log(G)) C2 = log(B) - 1/2*(log(R)+log(G))
A is an achromatic component and C1 and C2 is two chromatic components. From the model, it is possible to compute the hue h and the saturation s:
s = sqrt(C12+C22) h = acos(C1/s)
Returns SUCCESS or FAILURE.
prgb2ast parrot.pan a.pan
Changement d'espace couleur de RGB vers AST.
Reference: J.M. Chassery, "An iterative segmentation method based on a contextual color and shape criterion", IEEE Trans. Pattern Analysis and Machine Intelligence, Vol. 6, No. 6, pp 794-800, 1984.
Author: Olivier Lezoray