ClassesClassesClassesClasses | | | | Operators

gray_histo_absT_gray_histo_absGrayHistoAbsgray_histo_absGrayHistoAbsGrayHistoAbs (Operator)

Name

gray_histo_absT_gray_histo_absGrayHistoAbsgray_histo_absGrayHistoAbsGrayHistoAbs — Calculate the gray value distribution.

Signature

gray_histo_abs(Regions, Image : : Quantization : AbsoluteHisto)

Herror T_gray_histo_abs(const Hobject Regions, const Hobject Image, const Htuple Quantization, Htuple* AbsoluteHisto)

Herror gray_histo_abs(Hobject Regions, Hobject Image, const HTuple& Quantization, HTuple* AbsoluteHisto)

HTuple HRegion::GrayHistoAbs(const HImage& Image, const HTuple& Quantization) const

HTuple HRegionArray::GrayHistoAbs(const HImage& Image, const HTuple& Quantization) const

void GrayHistoAbs(const HObject& Regions, const HObject& Image, const HTuple& Quantization, HTuple* AbsoluteHisto)

HTuple HImage::GrayHistoAbs(const HRegion& Regions, const HTuple& Quantization) const

HTuple HImage::GrayHistoAbs(const HRegion& Regions, double Quantization) const

HTuple HRegion::GrayHistoAbs(const HImage& Image, const HTuple& Quantization) const

HTuple HRegion::GrayHistoAbs(const HImage& Image, double Quantization) const

void HOperatorSetX.GrayHistoAbs(
[in] IHUntypedObjectX* Regions, [in] IHUntypedObjectX* Image, [in] VARIANT Quantization, [out] VARIANT* AbsoluteHisto)

VARIANT HImageX.GrayHistoAbs(
[in] IHRegionX* Regions, [in] VARIANT Quantization)

VARIANT HRegionX.GrayHistoAbs(
[in] IHImageX* Image, [in] VARIANT Quantization)

static void HOperatorSet.GrayHistoAbs(HObject regions, HObject image, HTuple quantization, out HTuple absoluteHisto)

HTuple HImage.GrayHistoAbs(HRegion regions, HTuple quantization)

HTuple HImage.GrayHistoAbs(HRegion regions, double quantization)

HTuple HRegion.GrayHistoAbs(HImage image, HTuple quantization)

HTuple HRegion.GrayHistoAbs(HImage image, double quantization)

Description

The operator gray_histo_absgray_histo_absGrayHistoAbsgray_histo_absGrayHistoAbsGrayHistoAbs calculates for the image (ImageImageImageImageImageimage) within RegionsRegionsRegionsRegionsRegionsregions the absolute (AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHisto) ) histogram of the gray values.

The parameter QuantizationQuantizationQuantizationQuantizationQuantizationquantization defines, how many frequencies of neighbored gray values are added for one frequency value. The resulting histogram AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHisto is a tuple, whose indices are mapped on the gray values of the input image ImageImageImageImageImageimage and whose elements contain the frequencies of the gray values. The indices i of the frequency value are calculated from the gray values g and the quantisation q as follows:

whereas MIN denotes the minimal gray value, e.g., -128 for an int1 image type. Therefore, the size of the tuple results from the ratio of the full domain of gray values and the quantisation, e.g. for images of int2 in . The origin gray value of the signed image types int1 resp. int2 is mapped on the index 128 resp. 32768, negative resp. positive gray values have smaller resp. greater indices.

The histogram can also be returned directly as a graphic via the operators set_paint(::WindowHandle,'histogram':)set_paint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")set_paint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram") and disp_imagedisp_imageDispImagedisp_imageDispImageDispImage.

Attention

Note that the operator gray_histo_absgray_histo_absGrayHistoAbsgray_histo_absGrayHistoAbsGrayHistoAbs only considers the given RegionsRegionsRegionsRegionsRegionsregions and ignores any previously set domain of the input image ImageImageImageImageImageimage.

Parallelization

Parameters

RegionsRegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHRegionHRegionXHobject

Region in which the histogram is to be calculated.

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / cyclic / direction / int1 / int2 / uint2)

Image the gray value distribution of which is to be calculated.

QuantizationQuantizationQuantizationQuantizationQuantizationquantization (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Quantization of the gray values.

Default value: 1.0

List of values: 1.0, 2.0, 3.0, 5.0, 10.0

Restriction: Quantization >= 1.0

AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHisto (output_control)  histogram-array HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Absolute frequencies of the gray values.

Result

The operator gray_histo_absgray_histo_absGrayHistoAbsgray_histo_absGrayHistoAbsGrayHistoAbs returns the value 2 (H_MSG_TRUE) if the image has defined gray values and the parameters are correct. The behavior in case of empty input (no input images available) is set via the operator set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>), the behavior in case of empty region is set via set_system(::'empty_region_result',<Result>:)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>). If necessary an exception is raised.

Possible Successors

histo_to_threshhisto_to_threshHistoToThreshhisto_to_threshHistoToThreshHistoToThresh, gen_region_histogen_region_histoGenRegionHistogen_region_histoGenRegionHistoGenRegionHisto

Alternatives

min_max_graymin_max_grayMinMaxGraymin_max_grayMinMaxGrayMinMaxGray, intensityintensityIntensityintensityIntensityIntensity, gray_histogray_histoGrayHistogray_histoGrayHistoGrayHisto, gray_histo_rangegray_histo_rangeGrayHistoRangegray_histo_rangeGrayHistoRangeGrayHistoRange

See also

set_paintset_paintSetPaintset_paintSetPaintSetPaint, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage, histo_2dimhisto_2dimHisto2dimhisto_2dimHisto2dimHisto2dim, scale_image_maxscale_image_maxScaleImageMaxscale_image_maxScaleImageMaxScaleImageMax, entropy_grayentropy_grayEntropyGrayentropy_grayEntropyGrayEntropyGray

Module

Foundation


ClassesClassesClassesClasses | | | | Operators