Skip to content

partition_rectanglePartitionRectanglePartitionRectanglepartition_rectanglepartition_rectangle🔗

説明🔗

partition_rectanglePartitionRectanglePartitionRectanglepartition_rectanglepartition_rectangle — 領域をほぼ同じサイズの矩形に分割する。

書式🔗

partition_rectangle( region Region, out region Partitioned, extent.x Width, extent.y Height )void PartitionRectangle( const HObject& Region, HObject* Partitioned, const HTuple& Width, const HTuple& Height )static void HOperatorSet.PartitionRectangle( HObject region, out HObject partitioned, HTuple width, HTuple height )def partition_rectangle( region: HObject, width: float, height: float ) -> HObject

Herror partition_rectangle( const Hobject Region, Hobject* Partitioned, double Width, double Height )

Herror T_partition_rectangle( const Hobject Region, Hobject* Partitioned, const Htuple Width, const Htuple Height )

HRegion HRegion::PartitionRectangle( double Width, double Height ) const

HRegion HRegion.PartitionRectangle( double width, double height )

説明🔗

partition_rectanglePartitionRectangle は、入力領域を Widthwidthwidth × Heightheightheight をもつ矩形に分割します。矩形は Partitionedpartitionedpartitioned に返されます。領域は、常にほぼ等しいサイズの矩形に分割されます。 もし指定された矩形サイズでの分割ができない場合、Widthwidthwidth および Heightheightheight は結果として得られる矩形がほぼ同じサイズになるように 適合されます。もし指定されたサイズよりも領域が小さい場合、結果として 得られる領域は変更させれません。分割は領域の大きさが少なくともパラメーター として与えれらた矩形サイズよりも1.5倍でなければ実行されません。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • tupleレベルで自動的に並列演算処理を実施

パラメーター🔗

Regionregionregion (input_object) region(-array) → objectHObjectHRegionHObjectHobject

分割される領域

Partitionedpartitionedpartitioned (output_object) region(-array) → objectHObjectHRegionHObjectHobject *

分割された領域

Widthwidthwidth (input_control) extent.x → (real)HTuple (double)HTuple (double)floatHtuple (double)

個々の矩形の幅

Heightheightheight (input_control) extent.y → (real)HTuple (double)HTuple (double)floatHtuple (double)

個々の矩形の高さ

結果🔗

partition_rectanglePartitionRectangle は、すべてのパラメーターが正しい場合 に 2 (H_MSG_TRUE) を返します。空入力(領域が存在しない)の場合は、 set_system('no_object_result',<Result>) から設定することが できます。空の入力領域である場合は、 set_system('empty_region_result',<Result>) から設定するこ とができます。また、空の結果領域である場合は、 set_system('store_empty_region',<'true'/'false'>) から設定する ことができます。 必要に応じて、例外が発生します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

thresholdThreshold, connectionConnection

他の選択候補

partition_dynamicPartitionDynamic

関連項目

intersectionIntersection, smallest_rectangle1SmallestRectangle1, shape_transShapeTrans, clip_regionClipRegion

モジュール🔗

Foundation