height_width_ratioheight_width_ratioHeightWidthRatioHeightWidthRatioheight_width_ratio — Compute the width, height, and aspect ratio of the surrounding
rectangle parallel to the coordinate axes.
The operator height_width_ratioheight_width_ratioHeightWidthRatioHeightWidthRatioheight_width_ratio calculates the surrounding
rectangle of all input regions (parallel to the coordinate axes).
The surrounding rectangle is described by the coordinates of the
corner pixels
(Row1Row1Row1row1row_1,Column1Column1Column1column1column_1,Row2Row2Row2row2row_2,Column2Column2Column2column2column_2)
(see smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1). Based on these values,
height_width_ratioheight_width_ratioHeightWidthRatioHeightWidthRatioheight_width_ratio computes the width, height, and aspect
ratio of the smallest surrounding rectangle as follows:
Aspect ratio of the surrounding rectangle of the region.
Complexity
If F is the area of the region the mean runtime complexity is
O(sqrt(F)).
Result
The operator height_width_ratioheight_width_ratioHeightWidthRatioHeightWidthRatioheight_width_ratio returns the value 2 (
H_MSG_TRUE)
if
the input is not empty. The behavior in case of empty input (no
input regions available) is set via the operator
set_system('no_object_result',<Result>). The behavior in
case of empty region (the region is the empty set) is set via
set_system('empty_region_result',<Result>). If necessary an
exception is raised.