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

query_grayT_query_grayquery_grayQueryGrayQueryGray (Operator)

Name

query_grayT_query_grayquery_grayQueryGrayQueryGray — Query the displayable gray values.

Signature

query_gray( : : WindowHandle : Grayval)

Herror T_query_gray(const Htuple WindowHandle, Htuple* Grayval)

Herror query_gray(const HTuple& WindowHandle, HTuple* Grayval)

HTuple HWindow::QueryGray() const

void HOperatorSetX.QueryGray(
[in] VARIANT WindowHandle, [out] VARIANT* Grayval)

VARIANT HWindowX.QueryGray()

static void HOperatorSet.QueryGray(HTuple windowHandle, out HTuple grayval)

HTuple HWindow.QueryGray()

Description

query_grayquery_grayquery_grayQueryGrayQueryGray returns all gray values that are used for gray value output (disp_imagedisp_imagedisp_imageDispImageDispImage) and that can be reproduced exactly in the window. They can be set with the set_grayset_grayset_graySetGraySetGray call. The number of displayable gray values can be set with set_system(::'num_gray_*',...:)set_system("num_gray_*",...)set_system("num_gray_*",...)SetSystem("num_gray_*",...)SetSystem("num_gray_*",...) before opening the first window.

Parallelization

Parameters

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

Window_id.

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

Tuple of all displayable gray values.

Result

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

Possible Successors

set_grayset_grayset_graySetGraySetGray, disp_regiondisp_regiondisp_regionDispRegionDispRegion

See also

set_grayset_grayset_graySetGraySetGray, disp_imagedisp_imagedisp_imageDispImageDispImage

Module

Foundation


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