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

disp_channeldisp_channeldisp_channelDispChannelDispChannel (Operator)

Name

disp_channeldisp_channeldisp_channelDispChannelDispChannel — Displays images with several channels.

Signature

disp_channel(MultichannelImage : : WindowHandle, Channel : )

Herror disp_channel(const Hobject MultichannelImage, const Hlong WindowHandle, const Hlong Channel)

Herror T_disp_channel(const Hobject MultichannelImage, const Htuple WindowHandle, const Htuple Channel)

Herror disp_channel(Hobject MultichannelImage, const HTuple& WindowHandle, const HTuple& Channel)

void HImage::DispChannel(const HTuple& WindowHandle, const HTuple& Channel) const

void HImageArray::DispChannel(const HTuple& WindowHandle, const HTuple& Channel) const

void HOperatorSetX.DispChannel(
[in] IHUntypedObjectX* MultichannelImage, [in] VARIANT WindowHandle, [in] VARIANT Channel)

void HImageX.DispChannel(
[in] IHWindowX* WindowHandle, [in] VARIANT Channel)

void HWindowX.DispChannel(
[in] IHImageX* MultichannelImage, [in] VARIANT Channel)

static void HOperatorSet.DispChannel(HObject multichannelImage, HTuple windowHandle, HTuple channel)

void HImage.DispChannel(HWindow windowHandle, HTuple channel)

void HImage.DispChannel(HWindow windowHandle, int channel)

void HWindow.DispChannel(HImage multichannelImage, HTuple channel)

void HWindow.DispChannel(HImage multichannelImage, int channel)

Description

disp_channeldisp_channeldisp_channelDispChannelDispChannel displays an image in the output window. It is possible to display several images with one call. In this case the images are displayed one after another. If the definition domains of the images overlap only the last image is visible. The parameter ChannelChannelChannelChannelchannel defines the number of the channel that is displayed. For RGB-images the three color channels have to be used within a tuple parameter. For more information see disp_imagedisp_imagedisp_imageDispImageDispImage.

Parallelization

Parameters

MultichannelImageMultichannelImageMultichannelImageMultichannelImagemultichannelImage (input_object)  image(-array) objectHImageHImageHImageXHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Multichannel images to be displayed.

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

Window identifier.

ChannelChannelChannelChannelchannel (input_control)  integer(-array) HTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong)

Number of channel or the numbers of the RGB-channels

Default value: 1

List of values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

Example (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
disp_color(Image,WindowHandle)
rgb1_to_gray(Image,GrayImage)
disp_image(GrayImage,WindowHandle)

Example (C)

/* Transformation from rgb to gray  */
read_image(Image,"patras") ;
disp_color(Image,WindowHandle) ;
rgb1_to_gray(Image,&GrayImage) ;
disp_image(GrayImage,WindowHandle);

Example (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
disp_color(Image,WindowHandle)
rgb1_to_gray(Image,GrayImage)
disp_image(GrayImage,WindowHandle)

Example (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
disp_color(Image,WindowHandle)
rgb1_to_gray(Image,GrayImage)
disp_image(GrayImage,WindowHandle)

Example (HDevelop)

* Transformation from rgb to gray
read_image(Image,'patras')
disp_color(Image,WindowHandle)
rgb1_to_gray(Image,GrayImage)
disp_image(GrayImage,WindowHandle)

Result

If the used images contain valid values and a correct output mode is set, disp_channeldisp_channeldisp_channelDispChannelDispChannel returns 2 (H_MSG_TRUE). Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowopen_windowOpenWindowOpenWindow, set_rgbset_rgbset_rgbSetRgbSetRgb, set_lutset_lutset_lutSetLutSetLut, set_hsiset_hsiset_hsiSetHsiSetHsi

Alternatives

disp_imagedisp_imagedisp_imageDispImageDispImage, disp_colordisp_colordisp_colorDispColorDispColor

See also

open_windowopen_windowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowopen_textwindowOpenTextwindowOpenTextwindow, reset_obj_dbreset_obj_dbreset_obj_dbResetObjDbResetObjDb, set_lutset_lutset_lutSetLutSetLut, draw_lutdraw_lutdraw_lutDrawLutDrawLut, dump_windowdump_windowdump_windowDumpWindowDumpWindow

Module

Foundation


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