find_neighbors — 搜索直接邻居。
find_neighbors(Regions1, Regions2 : : MaxDistance : RegionIndex1, RegionIndex2)
算子 find_neighbors determines neighboring regions with
Regions1 and Regions2 containing the regions to be
examined.
Regions1 can have three different states:
Regions1 is empty:
In this case all regions in Regions2
are permutatively checked for neighborhood.
Regions1 consists of one region:
The regions of Regions1 are compared to all regions
in Regions2。
Regions1 consists of the same number of regions
as Regions2:
Here all regions at the n-th position
in Regions1 and Regions2 are
checked for the neighboring relation.
算子 find_neighbors uses the chessboard distance
between neighboring regions. It can be specified by the
parameter MaxDistance.
Neighboring regions are located at the n-th position in
RegionIndex1 and RegionIndex2, i.e.,
the region with index RegionIndex1[n] from Regions1 is
the neighbor of the region with index RegionIndex2[n] from
Regions2。
Covered regions are not found!
Regions1 (输入对象) region(-array) → object
Starting regions.
Regions2 (输入对象) region(-array) → object
Comparative regions.
MaxDistance (输入控制) integer → (integer)
Maximal distance of regions.
默认值: 1
建议值: 1, 2, 3, 4, 5, 6, 7, 8, 10, 15, 20, 50
值范围:
1
≤
MaxDistance
≤
255
最小增量: 1
建议增量: 1
RegionIndex1 (输出控制) integer-array → (integer)
Indices of the found regions from Regions1。
RegionIndex2 (输出控制) integer-array → (integer)
Indices of the found regions from Regions2。
算子 find_neighbors 在输入不为空时返回值 2 ( H_MSG_TRUE )。当输入为空(无可用输入区域)时,可设置行为通过算子 set_system('no_object_result',<Result>)。空区域(区域是空集)的情况下的可设置行为通过
set_system('empty_region_result',<Result>)。如有必要,则抛出异常。
threshold,
regiongrowing,
connection
spatial_relation,
select_region_spatial,
expand_region,
distance_transform,
interjacent,
boundary
基础