I have an image that looks like this:
And I want to figure out a couple of things:
- What are the predominant colours of the tattoo?
- What is the predominant colour of the skin?
- What is the area (in pixels) of the tattoo - in the tattoo above, specifically?
I'm new to image processing but my plan of attack is something like:
- Run edge detection
- Fill in the contours
- Take an alpha of that image to just have an alpha of the tattoo
width * height * % of white in alpha = area of tattoo ink- Apply the alpha to the original image and take the colour distribution, to somehow give an answer like "this tattoo has black and red in it"
- Invert the alpha and apply it to the original image to get just the skin colour and find the average hue
Does this seem like a sensible approach to get the end result? Is there something easier / more reliable that I might not know, being a novice to this?
I ran some edge analysis code against it using skimage and got a contour like this:
But I'm having trouble from here to fill in the contour with a colour to create an alpha. The problem is that I only want to know the area of the ink, not of the entire tattoo, so this seems harder to fill in the contour

