# Search Region

Use the Search Region tab to define how the tool applies the search region to the input image. It may be easier to specify the search region graphically, then use this tab to fine tune the search region parameters:

Use the following parameters to define a search region:

Region Parameter | Description
--- | ---
Region Mode | Defines the bounding box for the region. Pixel Aligned Bounding Box encloses the defined region within a rectangle. Portions of the image that are outside the defined region but within the bounding rectangle are included in the pattern search. Pixel Aligned Bounding Box Adjust Mask encloses the defined region within a rectangle, but masks out the image portions that are outside the region but inside the enclosing rectangle. The result is that the defined region is closer to what you specify.
Region Shape | Defines the shape of the search region. Selecting None=Use entire image searches the entire Current.InputImage for the trained pattern. Otherwise the region-defining parameters depends on the selected shape. Use Selected Space Name to define the coordinate space where the search region is interpreted. When you select Rectangle or RectangleAffine, use Select Mode to define the rectangle. If you choose RectangleAffine, be aware the angles of Rotation and Skew can be specified in degrees or radians, although the underlying tool keeps the measurements in radians. Use Fit In Image to center the search region within the Current.InputImage.