Herror ::reduce_domain (
    Hobject Image,
    Hobject Region,
    Hobject *ImageReduced
)
HImage HImage::ReduceDomain (
    const HRegion &Region
) const
HImageArray HImageArray::ReduceDomain (
    const HRegion &Region
) const

Reduce the domain of an image.

The operator ::reduce_domain reduces the definition domain of the given image to the indicated region. The new definition domain is calculated as the intersection of the old definition domain with the region. Thus, the new definition domain can be a subset of the region. The size of the matrix is not changed.


Parameters

Image (input_object)
image(-array) -> Hobject: HImage(Array)
Input image.

Region (input_object)
region -> Hobject: HRegion
New definition domain.

ImageReduced (output_object)
image(-array) -> Hobject * : HImage(Array)
Image with reduced definition domain.


Possible Predecessors

::get_domain


Alternatives

::change_domain, ::rectangle1_domain, ::add_channels


See also

::full_domain, ::get_domain, ::intersection


Module

Image / region / XLD management



Copyright © 1996-2002 MVTec Software GmbH