disp_channelT_disp_channelDispChannelDispChanneldisp_channel (算子名称)

名称

disp_channelT_disp_channelDispChannelDispChanneldisp_channel — Displays images with several channels.

参数签名

disp_channel(MultichannelImage : : WindowHandle, Channel : )

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

void DispChannel(const HObject& MultichannelImage, const HTuple& WindowHandle, const HTuple& Channel)

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

void HImage::DispChannel(const HWindow& WindowHandle, Hlong Channel) const

void HWindow::DispChannel(const HImage& MultichannelImage, const HTuple& Channel) const

void HWindow::DispChannel(const HImage& MultichannelImage, Hlong Channel) const

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)

def disp_channel(multichannel_image: HObject, window_handle: HHandle, channel: MaybeSequence[int]) -> None

描述

disp_channeldisp_channelDispChannelDispChannelDispChanneldisp_channel 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 ChannelChannelChannelChannelchannelchannel 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_imageDispImageDispImageDispImagedisp_image.

运行信息

参数表

MultichannelImageMultichannelImageMultichannelImageMultichannelImagemultichannelImagemultichannel_image (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)

Multichannel images to be displayed.

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

ChannelChannelChannelChannelchannelchannel (input_control)  integer(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Number of channel or the numbers of the RGB-channels

Default: 1

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

例程 (HDevelop)

read_image(Image,'patras')
count_channels (Image, Channels)
for I := 1 to Channels by 1
    disp_channel (Image, WindowHandle, I)
endfor

结果

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

可能的前置算子

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_lutset_lutSetLutSetLutSetLutset_lut, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi

可替代算子

disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_colordisp_colorDispColorDispColorDispColordisp_color

参考其它

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, reset_obj_dbreset_obj_dbResetObjDbResetObjDbResetObjDbreset_obj_db, set_lutset_lutSetLutSetLutSetLutset_lut, dump_windowdump_windowDumpWindowDumpWindowDumpWindowdump_window

模块

Foundation