inner_rectangle1 — Largest inner rectangle of a region.
The operator inner_rectangle1 determines the largest axis-parallel rectangle that fits into a region. The rectangle is described by the coordinates of the corner pixels (Row1, Column1, Row2, Column2).
If more than one region is passed in Regions the results are stored in tuples, the index of a value in the tuple corresponding to the index of the input region. For empty regions all parameters have the value 0 if no other behavior was set (see set_system).
Region to be examined.
Row coordinate of the upper left corner point.
Column coordinate of the upper left corner point.
Row coordinate of the lower right corner point.
Column coordinate of the lower right corner point.
The operator inner_rectangle1 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('no_object_result',<Result>). If necessary an exception is raised.
threshold, regiongrowing, connection