PANDORE Version 6 GREYC-IMAGE

passessboundaryprecision



Assesses regio nboundary precision of a segmentation result by comparison with a reference segmentation.



Synopsis

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

Description

The operator passessboundaryprecision calculates 2 errors to assess region boundary precision of a segmentation result by comparison with a reference segmentation.

The two errors are:

Error values are between 0..1, where 0 means no error and 1 the worst result. A deficit error of x means that x * 100 percent of the region pixels are not detected in average by region. An excess error of x means that x * 100 percent of the segments pixels are outside the related region boundary in average by segment. 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 boundary precision of the segmentation result stored in 'tangram.pan' considering a minimum overlapping area of 50%:

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

See also

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

Prototype C++

Errc PAssessBoundaryPrecision( 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