Ask Your Question

Revision history [back]

Apply a mask to an image and test is a color is inside the grid in the mask

I have an image and a binary mask (two sperate files), in the link below, how do I test if the purple color in the image is inside one of the grid cells in the binary mask? Also, I need to name or number the cell using a unique ID and extract the ID of all the cells that have any pixels that are purple.

I'm new to OpenCV but have good python skills, and I was wondering if this can be done using OpenCV and python? and how? Thanks!

C:\fakepath\Untitled-1.jpg