Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Trimap image use in OpenCV

Hello, I found The Oxford-IIIT Pet Dataset, which contains images of dogs and cats. For each image has a pixel level foreground-background segmentation (trimap) image. Searching the internet, I saw that trimap is an image with three colors (one for the background, one for the foreground and one for the not-classified region), but here the image is all black. It's a mistake or is correct so too? But above all I want to know if and how you can use it to get, given a normal image, a new image with the cat or dog on a black background. Thanks.