inside_region2 ( Regions : : Row, Column : )

Test, ob eine Region einen gegebenen Punkt enthält.

inside_region2 prüft, ob mindestens eine Eingaberegion aus Regions den Testpunkt (Row,Column) enthält.


Attention

In case of empty input (= no region) and set_system(::'no_object_result','true':) FALSE is returned (no region contains the pixel). The test pixel is not contained in an empty region (no pixel of the region corresponds to the pixel). If all regions are empty FALSE is also returned, i.e. an empty region behaves as if it did not exist.


Parameters

Regions (input_object)
region(-array) -> object
Region(s) to be examined.

Row (input_control)
point.y -> integer
Line index of the test pixel.
Default value: 100
Range of values: 0 <= Row <= 512 (lin)
Minimum increment: 1
Recommended increment: 1

Column (input_control)
point.x -> integer
Column index of the test pixel.
Default value: 100
Range of values: 0 <= Column <= 512 (lin)
Minimum increment: 1
Recommended increment: 1


Complexity

Sei F die Fläche einer Region und N die Anzahl der Regionen, dann beträgt die mittlere Laufzeitkomplexität O(F) * N).


Result

The operator inside_region2 returns the value TRUE if a region contains the test pixel. If this is not the case inside_region2 returns FALSE. The behavior in case of empty input (no input regions available) is set via the operator set_system(::'no_object_result',<Result>:). If necessary an exception is raised.


Possible Predecessors

threshold__, regiongrowing__, connection


Alternatives

union1, intersection, area_center


See also

inside_region1


Return Value

bool



Copyright © 1996-1997 MVTec Software GmbH