Herror ::zoom_region (
    Hobject Region,
    Hobject *RegionZoom,
    const HTuple &ScaleWidth,
    const HTuple &ScaleHeight
)
HRegion HRegion::ZoomRegion (
    const HTuple &ScaleWidth,
    const HTuple &ScaleHeight
) const
HRegionArray HRegionArray::ZoomRegion (
    const HTuple &ScaleWidth,
    const HTuple &ScaleHeight
) const

Zoom a region.

::zoom_region enlarges or reduces the regions given in Region in the x- and y-direction by the given scale factors ScaleWidth and ScaleHeight.


Parameters

Region (input_object)
region(-array) -> Hobject: HRegion(Array)
Region(s) to be zoomed.

RegionZoom (output_object)
region(-array) -> Hobject * : HRegion(Array)
Zoomed region(s).
Number of elements: RegionZoom == Region

ScaleWidth (input_control)
extent.x -> HTuple.double
Scale factor in x-direction.
Default value: 2.0
Suggested values: 0.25, 0.5, 1.0, 2.0, 3.0
Typical range of values: 0.0 <= ScaleWidth <= 100.0 (lin)
Minimum increment: 0.01
Recommended increment: 0.5

ScaleHeight (input_control)
extent.y -> HTuple.double
Scale factor in y-direction.
Default value: 2.0
Suggested values: 0.25, 0.5, 1.0, 2.0, 3.0
Typical range of values: 0.0 <= ScaleHeight <= 100.0 (lin)
Minimum increment: 0.01
Recommended increment: 0.5


Possible Predecessors

::threshold, ::connection, ::regiongrowing, ::pouring


Possible Successors

::select_shape, ::disp_region


See also

::zoom_image_size, ::zoom_image_factor


Module

Region processing



Copyright © 1996-2002 MVTec Software GmbH