Select the color in the image pixel and calculate the (R) value according to the straight line equation.