PANDORE Version 6 GREYC-IMAGE

passesstopologypreservation



Assesses region topology preservation of a segmentation result by comparison with a reference segmentation.



Synopsis

passesstopologypreservation matching_algorithm_id matching_threshold [segmentation_result_in|-] [reference_segmentation_in|-] [col_out|-]

Description

The operator passesstopologypreservation calculates 2 errors to assess region topology preservation of a segmentation result by comparison with a reference segmentation.

Topology preservation in 2D simply consists in inner holes analysis. Thus, the two errors are:

Error values are between 0..1, where 0 means no error and 1 the worst result. A hole addition error value of x means that x * 100 percent of detected holes are added holes. A hole deletion error value of x means that x * 100 percent of true positive region holes are missed holes. The result is stored in the output collection col_out which contains the two error values.

Discrepancy measures are computed using a matching graph between segments in the segmentation result and regions in the reference segmentation. Two types of graph matching algorithm can used depending on the parameter matching_algorithm_id: the first one allows for over and under-segmentation, and the second one is restricted to unique region-segment matching. In this graph, a segment S detects a region R if the overlapping area | R * S | is such that:

  | R * S |                                   | R * S |    
  --------- >= matching_threshold and  --------- >= matching_threshold
    | R |                                       | S |

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Assesses region topology preservation of the segmentation result stored in 'tangram.pan' considering a minimum overlapping area of 50%:

passesstopologypreservation 0 0.5 resultimages/algo001/tangram.pan groundtruths/expert001/tangram.pan errors.pan
pvisu errors.pan

See also

Evaluation, passessdetectionaccuracy, passessfragmentationconsistency, passessboundaryprecision, passessshapefidelity, passesssegmentationalgorithm, pranksegmentationalgorithms, pranksegmentationalgorithmsfromfolders

Prototype C++

Errc PAssessTopologyPreservation( const Reg2d &segmentation_result_in, const Reg2d &reference_segmentation_in, Collection &cold, const int matching_algorithm_id, const float matching_threshold );

Author: Régis Clouard