test_equal_region — Test whether the regions of two objects are identical.
The operator test_equal_region compares the regions of the two input parameters. The n-th element in Regions1 is compared to the n-th object in Regions2 (for all n). If all regions are equal and the number of regions is identical the operator IsEqual is set to TRUE, otherwise FALSE.
For a short description of the iconic objects that are available in HALCON see the introduction of chapter Object.
Number of elements: Regions1 == Regions2
boolean result value.
If F is the area of a region the runtime complexity is O(1) or O(sqrt(F)) if the result is TRUE, O(sqrt(F)) if the result is FALSE.
The operator test_equal_region returns the value 2 (H_MSG_TRUE) if the parameters are correct. The behavior in case of empty input (no input objects available) is set via the operator set_system(::'no_object_result',<Result>:). If the number of objects differs an exception is raised. Else test_equal_region returns the value 2 (H_MSG_TRUE)
intersection, complement, area_center