Herror ::add_channels (
    Hobject Regions,
    Hobject Image,
    Hobject *GrayRegions
)
HImage HRegion::AddChannels (
    const HImage &Image
) const
HImageArray HRegionArray::AddChannels (
    const HImage &Image
) const

Add gray values to regions.

The operator ::add_channels adds the gray values from Image to the regions in Regions. All channels of Image are adopted. The definition domain is calculated as the average of the definition domain of the image with the region. Thus the new definition domain can be a subset of the input region. The size of the matrix is not changed.


Parameters

Regions (input_object)
region(-array) -> Hobject: HRegion(Array)
Input regions (without gray values).

Image (input_object)
(multichannel-)image -> Hobject: HImage ( any )
Gray image for regions.

GrayRegions (output_object)
image(-array) -> Hobject * : HImage(Array)
Regions with gray values (also gray images).
Number of elements: Regions == GrayRegions


Possible Predecessors

::threshold, ::regiongrowing, ::gen_circle, ::draw_region


Possible Successors

::threshold, ::regiongrowing, ::get_domain


Alternatives

::change_domain, ::reduce_domain


See also

::full_domain, ::get_domain, ::intersection


Module

Image / region / XLD management



Copyright © 1996-2002 MVTec Software GmbH