Skip to content

test_region_pointsTestRegionPointsTestRegionPointstest_region_pointstest_region_points🔗

Short description🔗

test_region_pointsTestRegionPointsTestRegionPointstest_region_pointstest_region_points — Test if points are contained in regions.

Signature🔗

test_region_points( region Regions, point.y Row, point.x Column, out integer IsInside )void TestRegionPoints( const HObject& Regions, const HTuple& Row, const HTuple& Column, HTuple* IsInside )static void HOperatorSet.TestRegionPoints( HObject regions, HTuple row, HTuple column, out HTuple isInside )def test_region_points( regions: HObject, row: MaybeSequence[Union[int, float]], column: MaybeSequence[Union[int, float]] ) -> Sequence[int]

def test_region_points_s( regions: HObject, row: MaybeSequence[Union[int, float]], column: MaybeSequence[Union[int, float]] ) -> intHerror test_region_points( const Hobject Regions, const Hlong Row, const Hlong Column, Hlong* IsInside )

Herror T_test_region_points( const Hobject Regions, const Htuple Row, const Htuple Column, Htuple* IsInside )

HTuple HRegion::TestRegionPoints( const HTuple& Row, const HTuple& Column ) const

Hlong HRegion::TestRegionPoints( Hlong Row, Hlong Column ) const

HTuple HRegion.TestRegionPoints( HTuple row, HTuple column )

int HRegion.TestRegionPoints( int row, int column )

Description🔗

test_region_pointsTestRegionPoints tests if points (Rowrowrow,Columncolumncolumn) are contained in the regions Regionsregionsregions.

This operator supports parameter broadcasting. This means that each parameter can be given as a tuple or object array of length 1 or N. Parameters with length 1 will be repeated internally such that the number of computed tests is always N.

In all cases, for each performed test, IsInsideisInsideis_inside is set to TRUE (11) if the point is contained in the region and to FALSE (00) otherwise.

If (Rowrowrow,Columncolumncolumn) are real-valued, rounding is performed internally since regions are pixel precise.

Attention🔗

Test pixels are not contained in an empty region.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on internal data level.

Parameters🔗

Regionsregionsregions (input_object) region(-array) → objectHObjectHRegionHObjectHobject

Region(s) to be examined.

Rowrowrow (input_control) point.y(-array) → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)MaybeSequence[Union[int, float]]Htuple (Hlong / double)

Row index of the test pixel(s).

Default: 100100

Columncolumncolumn (input_control) point.x(-array) → (integer / real)HTuple (Hlong / double)HTuple (int / long / double)MaybeSequence[Union[int, float]]Htuple (Hlong / double)

Column index of the test pixel(s).

Number of elements: Row == Column
Default: 100100

IsInsideisInsideis_inside (output_control) integer(-array) → (integer)HTuple (Hlong)HTuple (int / long)Sequence[int]Htuple (Hlong)

Boolean result value.

Result🔗

The operator test_region_pointsTestRegionPoints returns the value 2 (H_MSG_TRUE) if the parameters are correct. The behavior in case of an empty object is set via the operator set_system('no_object_result',<Result>). If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

thresholdThreshold, regiongrowingRegiongrowing, connectionConnection

Alternatives

intersectionIntersection, area_centerAreaCenter, test_region_pointTestRegionPoint

See also

select_region_pointSelectRegionPoint, test_region_pointTestRegionPoint

Module🔗

Foundation