English (English) - Change language

Functions which limit the search area

The functions listed in the table below can only be used in the Advanced pre-search relations section. Each function specifies a fuzzy rectangle for the search area or adds rectangles to an array of excluded rectangles.

Function Description
Void Leftof( XInterval x, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the vertical half-plane located to the left of the point x.End - offset.
Void Leftof( FuzzyRect fuzzyRect, Distance offset = 0 ) Limits the search area by the vertical half-plane to the left of the point fuzzyRect.Left.End – offset.
Void Leftof( Hypothesis hyp, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the vertical half-plane located to the left of the point hyp.Left.End - offset.
Void LeftOf( HypothesisInstances hyps, Distance offset = 0 ) Limits the search area by the vertical half-plane to the left of the point hyps.Left.End – offset. Global coordinates are used.
Void Rightof( XInterval x, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the vertical half-plane located to the right of the point x.Start + offset.
Void Rightof( FuzzyRect fuzzyRect, Distance offset = 0 )

Limits the search area by the vertical half-plane to the right of the point hyp.Right.Start + offset.

E.g.

Void Rightof( Hypothesis hyp, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the vertical half-plane located to the right of the point hyp.Right.Start + offset.
Void RightOf( HypothesisInstances hyps, Distance offset = 0 ) Limits the search area by the vertical half-plane to the right of the point hyp.Right.Start + offset. Global coordinates are used.
Void Above( YInterval y, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the horizontal half-plane located above of the point y.End - offset.
Void Above( FuzzyRect fuzzyRect, Distance offset = 0 ) Limits the search area by the horizontal half-plane above the point hyp.top.End – offset.
Void Above( Hypothesis hyp, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the horizontal half-plane located above of the point hyp.top.End - offset.
Void Above( HypothesisInstances hyps, Distance offset = 0 ) Limits the search area by the horizontal half-plane above the point hyp.top.End – offset. Global coordinates are used.
Void Below( YInterval y, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the horizontal half-plane located below of the point y.Start + offset.
Void Below( FuzzyRect fuzzyRect, Distance offset = 0 ) Limits the search area by the horizontal half-plane below the point hyp.Bottom.Start + offset.
Void Below( Hypothesis hyp, Distance offset = 0 ) Limits the search area to a rectangle which is the result of intersecting the rectangle of the page with the horizontal half-plane located below of the point hyp.Bottom.Start + offset.
Void Below( HypothesisInstances hyps, Distance offset = 0 ) Limits the search area by the horizontal half-plane below the point hyp.Bottom.Start + offset. Global coordinates are used.
Void Exclude( Hypothesis hyp ) Excludes the region of the hyp hypothesis from the search area. If the hyp hypothesis is not found, excludes the internal rectangle of the search area of the hyp hypothesis.
Void Exclude( Rect rect ) Excludes the rect rectangle from the search area.
Void Exclude( RectArray rectArray ) Excludes the rectArray array of rectangles from the search area.
Void ExcludeRect( XInterval left, YInterval top, XInterval right, YInterval bottom ) Excludes the fuzzy rectangle described by the ranges left, top, right, and bottom from the search area.
Void ExcludeSet( ImageObjectSet set ) Excludes from the search area the array of rectangles of the set set of objects.
Void Exclude( HypothesisInstances ) Excludes from the search area the region of the instances of the hypothesis.
Void RestrictSearchArea( FuzzyRect fuzzyRect ) Limits the search area to the fussy rectangle fuzzyRect. Global coordinates are used.
Void RestrictSearchArea( FuzzyRect, IntArray pages ) Limits the search area by the fuzzy rectangle fuzzyRect. Specify the local coordinates and page range pages.
Void RestrictSearchArea( FuzzyRect, SearchAreaPageSetType ) Limits the search area by the fuzzy rectangle fuzzyRect. Specify the local coordinates and page range of the type SearchAreaPageSetType.
Void RestrictSearchArea( RectArray rectArray )

Limits the search area to the array of rectangles rectArray. Global coordinates are used.

E.g.

Void RestrictSearchArea( RectArray, IntArray pages ) Limits the search area by the array of rectangles rectArray. Specify the local coordinates and page range pages.
Void RestrictSearchArea( RectArray, SearchAreaPageSetType ) Limits the search area by the array of rectangles rectArray. Specify the local coordinates and page range of the type SearchAreaPageSetType.
Void RestrictSearchArea( Region region )

Limits the search area to the region region. Global coordinates are used.

E.g.

Void RestrictSearchArea( Region, IntArray pages ) Limits the search area by the region. Specify the local coordinates and page range pages.
Void RestrictSearchArea( Region, SearchAreaPageSetType )

Limits the search area by the region. Specify the local coordinates and page range of the type SearchAreaPageSetType.

E.g.

Void RestrictSearchArea( SearchAreaPageRestriction pageRestriction, IntArray pages )

Limits the page range on which to search without limiting the search area on the pages themselves. The pageRestriction parameter acquires the only value: WholePage.

E.g.

Void RestrictSearchArea( SearchAreaPageRestriction pageRestriction, SearchAreaPageSetType )

Limits the page range on which to search without limiting the search area on the pages themselves. The pageRestriction parameter acquires the only value: WholePage.

E.g.

Note.You can use RSA alias instead of full name RestrictSearchArea.

Note.Different constraints for the same page are used jointly, and for different pages independently. (The search is carried out on the pages for which at least one constraint has been specified.)

Auxiliary functions that define the search area

Rect PageRect()

The rectangle of the current page in global coordinates used to specify a search area that depends on the page.

The PageRect can only be used to specify a search area.

E.g.

Int PageNumber()

The number of the current page. Specifies a search area that depends on the page.

E.g.

25.09.2020 9:24:45


Please leave your feedback about this article