- The search area can be limited to a rectangle (
Rectvariable), to a region (i.e. a continuous array of rectangles –Regionvariable), or to an array of rectangles which, in the general case, need not be continuous (RectArrayvariable). This type of constraint is set using theRestrictSearchAreafunction and by specifying a parameter of the corresponding type. Any expressions which return values of the required type can be specified as parameters. - The search area can be limited to a half-plane located to the left of, to the right of, above, or below a particular point. Such constraints are set using the Leftof, Rightof, Above, and Below functions.
- Sometimes you may wish to set constraints for an element boundary. For example, it may be known beforehand that the left boundary of an element is always located in the left-hand part of the image, whereas the right boundary may stretch indefinitely to the right. The FlexiLayout language allows you to set such constraints at the stage of calculating the search area, thereby narrowing the range of possible hypotheses for an element. Such constraints are set using the
LeftBound,RightBound,topBound, andBottomBoundfunctions and the operators>and<. TheLeftBoundandRightBoundfunctions are used to access the left and right boundaries of the search area, and thetopBoundandBottomBoundfunctions are used to access the top and bottom boundaries respectively. - You can set search constraints by excluding a rectangle, an array of rectangles, a hypothesis etc. from the search area. This can be done by using the
Exclude,ExcludeRect, andExcludeSetfunctions.
