An image analysis tool to retrieve the percentages of colors in a linear section of an image