After segmenting my image with watershed method, I should use performance evaluation methods. There is IoU, rand index etc .. and therefore I need the following information: false positives, false negatives, true positives, true, negatives. So I decided to calculate pixel by pixel if it matches shapefile. But I didn't understand how to transform the shapefile into tiff to be able to do this. Do you know how to do it?