gray_histo(Regions, Image : : : AbsoluteHisto, RelativeHisto) 计算图像Image内区域Regions的绝对相对灰度直方图AbsoluteHisto, RelativeHisto, 这两个直方图都是256个值的元组,从0开始包含图像的各个灰度值的出现频率。 AbsoluteHisto表示整数灰度值的绝对频率, RelativeHisto表示相对频率,如绝对频率除以图像面积作为浮点...
gray_histo (Domain, Image1, AbsoluteHisto, RelativeHisto)*计算直方图:指定区域*为区域内的图像计算灰度值的绝对和相对直方图*参数1:要计算直方图的区域*参数2:要计算其灰度值分布的图像*参数3:是指图像内0-255灰度值出现的次数-->直方图*参数4:将上面的出现次数转化为频率,总合为1 histo_to_thresh (Absolute...
HTuple hv_Histo, hv_BinSize; 1. 2. 3. ReadImage(&ho_Image, "D:/bb/tu/ma.jpg"); Rgb1ToGray(ho_Image, &ho_Image1); //将RGB图像转换为灰度图像 GetDomain(ho_Image1, &ho_Domain); GrayHistoRange(ho_Domain, ho_Image1, 0, 255, 256, &hv_Histo, &hv_BinSize); //计算直方图:...
GrayHistoRange(ho_Domain, ho_Image1,0,255,256, &hv_Histo, &hv_BinSize);//计算直方图:指定区域和灰度值//参数1:要计算直方图的区域//参数2:输入图像//参数3:要计算的最小灰度值。默认值0//参数4:要计算的最大灰度值。默认值255//参数5:要计算的灰度值数量-->参数3到参数4分成多少份//参数6:...
gray_histocan be executed on OpenCL devices for byte, int1, directional and cyclic images if the OpenCL device supports the cl_khr_local_int32_base_atomics and cl_khr_global_int32_base_atomics extensions (which are optional in OpenCL 1.0). Unlike most other HALCON operators,gray_histocan...
gray_histocan be executed on OpenCL devices for byte, int1, directional and cyclic images if the OpenCL device supports the cl_khr_local_int32_base_atomics and cl_khr_global_int32_base_atomics extensions (which are optional in OpenCL 1.0). Unlike most other HALCON operators,gray_histocan...
halcon-gray_histo_range计算直方图 在HDevelop中 dev_update_off() read_image (Image, 'D:/bb/tu/ma.jpg') rgb1_to_gray(Image,Image1) *将RGB图像转换为灰度图像 get_image_size (Image1, Width, Height) dev_open_window(10,10,Width, Height,'black',WindowHandle)...
Quantization of the gray values. Default value:1.0 List of values:1.0, 2.0, 3.0, 5.0, 10.0 Restriction:Quantization >= 1.0 AbsoluteHisto(output_control)histogram-array→(integer) Absolute frequencies of the gray values. The operatorgray_histo_absreturns the value 2 (H_MSG_TRUE) if the image...
gray_histo can be executed on OpenCL devices for byte, int1, directional and cyclic images if the OpenCL device supports the cl_khr_local_int32_base_atomics and cl_khr_global_int32_base_atomics extensions (which are optional in OpenCL 1.0). Unlike most other HALCON operators, gray_histo...
If the Image has discrete gray values the size of a bin is computed with . Since the accuracy of the histogram Histo can be adjusted with NumBins, the calculation of the gray value histogram with gray_histo_range is most useful for images of type 'real' and images of type 'integer', ...