disp_channel — 显示具有多个通道的图像。
disp_channel(MultichannelImage : : WindowHandle, Channel : )
disp_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
Channel 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_image。
MultichannelImage (输入对象) (multichannel-)image(-array) → object (byte / direction / cyclic / int1 / int2 / uint2 / int4 / int8 / real / complex / vector_field)
Multichannel images to be displayed.
WindowHandle (输入控制) window → (handle)
窗口句柄。
Channel (输入控制) integer(-array) → (integer)
Number of channel or the numbers of the RGB-channels
默认值: 1
建议值: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
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_channel 返回 2 ( H_MSG_TRUE )。否则将抛出异常。
open_window,
set_rgb,
set_lut,
set_hsi
open_window,
reset_obj_db,
set_lut,
dump_window
基础