select_grayvalues_from_channelsselect_grayvalues_from_channelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsselect_grayvalues_from_channels (算子名称)
名称
select_grayvalues_from_channelsselect_grayvalues_from_channelsSelectGrayvaluesFromChannelsSelectGrayvaluesFromChannelsselect_grayvalues_from_channels — Selection of gray values of a multi-channel image using an index image.
参数签名
描述
该算子 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.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
- Automatically parallelized on domain level.
参数表
MultichannelImageMultichannelImageMultichannelImageMultichannelImagemultichannelImagemultichannel_image (input_object) (multichannel-)image(-array) → objectHImageHObjectHImageHobject (byte)
Multi-channel gray value image.
IndexImageIndexImageIndexImageIndexImageindexImageindex_image (input_object) singlechannelimage(-array) → objectHImageHObjectHImageHobject (byte)
Image, where pixel values are interpreted as
channel index.
Number of elements:
IndexImage == MultichannelImage || IndexImage == 1
SelectedSelectedSelectedSelectedselectedselected (output_object) singlechannelimage(-array) → objectHImageHObjectHImageHobject * (byte)
Resulting image.
Example (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
模块
Foundation