halcon-gray_dilation_rect图像膨胀 在HDevelop中 dev_update_off() read_image (Image, 'D:/bb/tu/1.jpg') rgb1_to_gray(Image,Image1) *将RGB图像转换为灰度图像 gray_dilation_rect (Image1, ImageMax, 5, 5) *图像膨胀-->效果:增加亮部,减少暗 *参数1:灰度值图像 *参数2:输出图像 *参数3和...
gray_dilation_rect (Image1, ImageMax, 5, 5) *图像膨胀-->效果:增加亮部,减少暗 *参数1:灰度值图像 *参数2:输出图像 *参数3和参数4:结构元的宽和高部 get_image_size (Image1, Width, Height) dev_open_window(10,10,Width, Height,'black',WindowHandle) dev_display(Image1) dev_open_window(...
HALCON Website / HALCON Operator Reference / Morphology / Gray Values HDevelop .NET Python C++ C Operators gray_dilation_rect (Operator) Namegray_dilation_rect— Determine the maximum gray value within a rectangle.Signaturegray_dilation_rect(Image : ImageMax : MaskHeight, MaskWidth : ) ...
barr[5 * 1 + 1] = 1; var img = WHCSHalCon.Base.CreateByteImage(barr, 5);
Set.GrayDilationRect(img, out img, 2, 2);HTuple widht, height;HOperatorSet.GetImageSize(img, out widht, out height);HObject region;HOperatorSet.Threshold(img, out region, 1, 1);HTuple rows, cols;HOperatorSet.GetRegionPoints(region, out rows, out cols);var area = WHCSHalCon.Base....
下面创建一个3*3的灰度图,左上角为1,右下角为3,其它为0。 byte[] barr = new byte[9]; barr[0] = 1; barr[8] = 3; var img = WHCSHalCon.Base.CreateByteImage(barr, 3); HOperatorSet.GrayDilationRect(img, out img, 2, 2);
HALCON Website / HALCON Operator Reference / Morphology / Gray Values HDevelop .NET C++ C Operators gray_dilation_rect (Operator) Namegray_dilation_rect— Determine the maximum gray value within a rectangle.Signaturegray_dilation_rect(Image : ImageMax : MaskHeight, MaskWidth : ) ...