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.
"but here the image is all black." -- wait, you'll have to explain that.
is it a problem of importing / visualizing those images ?
could you add an example image, and the code you're using ?