For the calculation of metachromasia indices, the user has to pick two colors in the metachromatic images (see the figure on the left):
The first index is defined according to the following equation:
Since the main diagonal of the cube is
and the distance between the color of a pixel of interest and the most purple pixel in the RGB cube is d , index1 characterizes how close the color of a certain pixel is to the most metachromatic color relative to the largest possible distance in the RGB cube.
The second index is defined according to the following equation:
where dmax is the distance between the gray background and the most metachromatic color in the RGB cube. Therefore, this index expresses how close the color of a certain pixel is to the most purple color normalized to the distance between the most gray and the most purple pixels in the RGB cube.
The third index is calculated according to the following equation:
This parameter characterizes the distance between the color of the most purple area and the projection of the color of the pixel of interest on the line connecting the most gray and the most purple colors (d1). In other words, the thick blue line in the figure on the left represents a continuous transition between the most gray and the most purple colors in a certain experiment in the RGB space. The third index characterizes how much the color of a certain pixel resembles the color of the most purple area in the continuum of colors between the most gray and the most purple.
There are two options for running the program:
Use of the program is demonstrated in figure A above: