The segmentation result could be either pixel or grid Binary Mask (BM) or a (multipolygonal) Shape (S).
The ground truth can be either a shape file or sometimes - pixel mask. In this issue consider comparison between different types segmentation result and ground truth: BM <-> S.
This can be achieved by conversion from BM to S and then comparing 2 Shape files or S to BM and comparing 2 BM.
[x] Source notebook- toy example BM2S + saving multipolygon to shapefile
[x] Source notebook- toy example S2BM
[x] Function for saving a multipolygon to shapefile
[x] Function for conversion S -> BM
[x] Function for saving binary mask to tiff file
[x] Function for conversion BM -> S
[x] Demo notebook- toy example BM2S and S2BM, saving multipolygon to shapefile and saving binary mask to tiff file.
[x] Source notebook BM2S
[x] Demo notebook using for computing a JI using the function for S <-> BM comparison
The segmentation result could be either pixel or grid Binary Mask (BM) or a (multipolygonal) Shape (S). The ground truth can be either a shape file or sometimes - pixel mask. In this issue consider comparison between different types segmentation result and ground truth: BM <-> S.
This can be achieved by conversion from BM to S and then comparing 2 Shape files or S to BM and comparing 2 BM.
[x] Source notebook- toy example BM2S + saving multipolygon to shapefile
[x] Source notebook- toy example S2BM
[x] Function for saving a multipolygon to shapefile
[x] Function for conversion S -> BM
[x] Function for saving binary mask to tiff file
[x] Function for conversion BM -> S
[x] Demo notebook- toy example BM2S and S2BM, saving multipolygon to shapefile and saving binary mask to tiff file.
[x] Source notebook BM2S
[x] Demo notebook using for computing a JI using the function for S <-> BM comparison