select_grayvalues_from_channelsselect_grayvalues_from_channelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsselect_grayvalues_from_channels(算子)
名称
select_grayvalues_from_channelsselect_grayvalues_from_channelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsselect_grayvalues_from_channels — 使用索引图像选择多通道图像的灰度值。
签名
描述
算子 select_grayvalues_from_channelsselect_grayvalues_from_channelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsselect_grayvalues_from_channels selects gray
values from the different channels of MultichannelImageMultichannelImageMultichannelImageMultichannelImagemultichannelImagemultichannel_image.
The channel number for each pixel is determined from the corresponding
pixel value in IndexImageIndexImageIndexImageIndexImageindexImageindex_image.
Note, IndexImageIndexImageIndexImageIndexImageindexImageindex_image is allowed to have an arbitrary number of channels
for reasons of backward compatibility, but only the first channel
is considered.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
- 在域级别上自动并行化。
参数
MultichannelImageMultichannelImageMultichannelImageMultichannelImagemultichannelImagemultichannel_image (输入对象) (multichannel-)image(-array) → objectHImageHObjectHImageHobject (byte)
Multi-channel gray value image.
IndexImageIndexImageIndexImageIndexImageindexImageindex_image (输入对象) singlechannelimage(-array) → objectHImageHObjectHImageHobject (byte)
Image, where pixel values are interpreted as
channel index.
元素数量:
IndexImage == MultichannelImage || IndexImage == 1
SelectedSelectedSelectedSelectedselectedselected (输出对象) singlechannelimage(-array) → objectHImageHObjectHImageHobject * (byte)
Resulting image.
示例 (C++ (HALCON 5.0-10.0))
compose3(Focus0,Focus1,Focus2,&MultiFocus);
depth_from_focus(MultiFocus,&Depth,&Confidence,'highpass','next_maximum');
mean_image(Depth,&Smooth,15,15);
select_grayvalues_from_channels(MultiChannel,Smooth,SharpImage);
可能的前趋
depth_from_focusdepth_from_focusDepthFromFocusDepthFromFocusDepthFromFocusdepth_from_focus,
mean_imagemean_imageMeanImageMeanImageMeanImagemean_image
可能的后继
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
另见
count_channelscount_channelsCountChannelsCountChannelsCountChannelscount_channels
模块
基础