PANDORE Version 6 GREYC-IMAGE

passesssegmentationalgorithm



Evaluation of segmentation algorithm performances based on discrepancy measures between segmentation results and reference segmentations.



Synopsis

passesssegmentationalgorithm [-v] matching_algorithm_id matching_threshold segmentation_result_path reference_segmentation_path [col_out1|-] [col_out2|-]

Description

The operator passesssegmentationalgorithm calculates discrepancy measures between segmentation results yielded by an algorithm and reference segmentations made on the same images. Five discrepancy indicators are evaluated and for each indicator two measures are calculated with value between 0 and 1:

Discrepancy measures are computed using a matching graph between segments in the segmentation results and regions in the reference segmentations. 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 restricted to unique 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 |

Reference segmentation and segmentation results are region maps.

Several reference segmentations may exist for each test image. The folder reference_segmentations_path should be organized in subforders each one related to one expertise, for instance expert001, expert002, etc.

The folder segmentation_result_path and each subfolder of reference_segmentation_path should be organized in the same way, with the same subfolders and the same image names.

The output collection col_out1 contains the detail of the 10 segmentation errors for each segmentation result (described with numerator / denominator). When several reference segmentations exist, the error is the minimum value. The output collection col_out2 contains the average values considering all segmentation results.

Parameters

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Assesses performances of algorithm 'algo001' from its result images stored in folder 'images/resultimages/algo001':

passesssegmentationalgorithm -v 0 0.5 images/resultimages/algo001 images/groundtruths detail_errors.pan total_errors.pan
pdisplayperformancevalues detail_errors.pan total_errors.pan

See also

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

Prototype C++

Errc PAssessSegmentationAlgorithm( int matching_algorithm_id, float matching_threshold, std::string segmentation_result_path, std::string reference_segmentation_path, Collection & col_out1, Collection & col_out2 );

Author: Régis Clouard