Matching Test Cases

To facilitate testing, we have provided a suite of canonical examples that cover the basic scenarios that can occur in matching. Here we describe them and show visualizations of each case.

Matchers should test all the matching cases, either by matching the segmentations or using points extracted from them. The segmentation examples are generated by functions in the tests/examples/ directory, and there is a function provided to extract centroid nodes from the segmentations for testing point-based matchers.

Note: for visualization purposes, the center node locations only show one decimal place of precision.

Each example that is illustrated here in 2D is also implemented in 3d.

plot_pair(*ex_segs.good_segmentation_2d(), "Good Segmentation")
../_images/a556d1a0f4ab7c6256d3da48840949cdb7703a5d259f023808c3b4702e889dd7.png
plot_pair(*ex_segs.false_positive_segmentation_2d(), "False Positive")
../_images/f8379707f8806c7c6fdbbbb3591e0d887821efaf5bb0b387cca30ab7289a4432.png
plot_pair(*ex_segs.false_negative_segmentation_2d(), "False Negative")
../_images/88694185e94284d48c5017a25218cc5cef299cd26ea18f24d2b3553b36afeb4d.png
plot_pair(*ex_segs.oversegmentation_2d(), "Oversegmentation")
../_images/9f89fb019d475936a60641f86fb130309ccb04e2163358428f978b601164d9ef.png
plot_pair(*ex_segs.undersegmentation_2d(), "Undersegmentation")
../_images/c3e3ad5d49872603af721b3b846c6e181f7f05f3a638f376be920e29a7444f1a.png
plot_pair(*ex_segs.no_overlap_2d(), "No Overlap")
../_images/bd35bfbeb186b94f53b72d8351bf37ab2a9a8bc9f9eac49819907e5ac852b65a.png
plot_pair(*ex_segs.multicell_2d(), "Multiple cells")
../_images/0e21d585e1b372328e0a9252092ec90ea7fc06e112f536192cd0ee69699cf419.png