HALCON Reference Manual 10.0.2
Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators

get_hsiT_get_hsiget_hsiGetHsiGetHsi (Operator)

Name

get_hsiT_get_hsiget_hsiGetHsiGetHsi — Get the HSI coding of the current color.

Signature

get_hsi( : : WindowHandle : Hue, Saturation, Intensity)

Herror T_get_hsi(const Htuple WindowHandle, Htuple* Hue, Htuple* Saturation, Htuple* Intensity)

Herror get_hsi(const HTuple& WindowHandle, HTuple* Hue, HTuple* Saturation, HTuple* Intensity)

HTuple HWindow::GetHsi(HTuple* Saturation, HTuple* Intensity) const

void HOperatorSetX.GetHsi(
[in] VARIANT WindowHandle, [out] VARIANT* Hue, [out] VARIANT* Saturation, [out] VARIANT* Intensity)

VARIANT HWindowX.GetHsi(
[out] VARIANT* Saturation, [out] VARIANT* Intensity)

static void HOperatorSet.GetHsi(HTuple windowHandle, out HTuple hue, out HTuple saturation, out HTuple intensity)

HTuple HWindow.GetHsi(out HTuple saturation, out HTuple intensity)

Description

get_hsiget_hsiget_hsiGetHsiGetHsi returns the output color or gray values, respectively, for the window, described in HueHueHueHuehue, SaturationSaturationSaturationSaturationsaturation and IntensityIntensityIntensityIntensityintensity. get_hsiget_hsiget_hsiGetHsiGetHsi corresponds to the operator get_pixelget_pixelget_pixelGetPixelGetPixel but returns the entries of the color lookup table instead of its indices. The values returned by get_hsiget_hsiget_hsiGetHsiGetHsi can be set with set_hsiset_hsiset_hsiSetHsiSetHsi.

Attention

The values returned by get_hsiget_hsiget_hsiGetHsiGetHsi may be inaccurate due to rounding errors. They do not necessarily match the values set with set_hsiset_hsiset_hsiSetHsiSetHsi exactly (colors are stored in RGB internally).

Parallelization

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHWindowX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong)

Window_id.

HueHueHueHuehue (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Hue (color value) of the current color.

SaturationSaturationSaturationSaturationsaturation (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Saturation of the current color.

IntensityIntensityIntensityIntensityintensity (output_control)  integer-array HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Intensity of the current color.

Result

get_hsiget_hsiget_hsiGetHsiGetHsi returns 2 (H_MSG_TRUE), if the window is valid. Otherwise an exception is raised.

Possible Successors

set_hsiset_hsiset_hsiSetHsiSetHsi, set_rgbset_rgbset_rgbSetRgbSetRgb, disp_imagedisp_imagedisp_imageDispImageDispImage

See also

set_hsiset_hsiset_hsiSetHsiSetHsi, set_colorset_colorset_colorSetColorSetColor, set_rgbset_rgbset_rgbSetRgbSetRgb, trans_to_rgbtrans_to_rgbtrans_to_rgbTransToRgbTransToRgb, trans_from_rgbtrans_from_rgbtrans_from_rgbTransFromRgbTransFromRgb

Module

Foundation


Table of Contents / Graphics / Parameters ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH