最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

技術雜談|HALCON算子封裝新函數(shù)

2021-09-19 09:09 作者:HALCON之家  | 我要投稿

創(chuàng)建新函數(shù):將多個算子封裝成一個新的函數(shù)


mean_image (Image, ImageMean, mean_width, mean_height)
reduce_domain (ImageMean, Rectangle, ImageReduced)
threshold (ImageReduced, Region, 78, 255)
area_center (Region, Area, Row, Column)


也可以在菜單欄中創(chuàng)建


定義新函數(shù)名稱


點擊圖中“參數(shù)”,刪減參數(shù),把不用的參數(shù)刪掉即可


生成的新函數(shù)

選中函數(shù)右鍵鼠標 選擇顯示函數(shù)可以查看封裝的Halcon算子

比如不需要Area參數(shù)名 將其移除后點擊應用

參數(shù)介紹:

圖標參數(shù):一般Region、Image、XLD等都屬于圖標參數(shù)。

控制參數(shù):一般數(shù)據(jù)、字符串都屬于控制參數(shù)。

以上Halcon函數(shù)介紹完畢。

public void Centera (HObject ho_Image, HObject ho_Rectangle, out HObject ho_ImageMean,
????? out HObject ho_ImageReduced, out HObject ho_Region, HTuple hv_mean_width, HTuple hv_mean_height,
????? out HTuple hv_Row, out HTuple hv_Column)
? {
??? // Local control variables
??? HTuple hv_Area = new HTuple();
??? // Initialize local and output iconic variables
??? HOperatorSet.GenEmptyObj(out ho_ImageMean);
??? HOperatorSet.GenEmptyObj(out ho_ImageReduced);
??? HOperatorSet.GenEmptyObj(out ho_Region);
??? hv_Row = new HTuple();
??? hv_Column = new HTuple();
??? ho_ImageMean.Dispose();
??? HOperatorSet.MeanImage(ho_Image, out ho_ImageMean, hv_mean_width, hv_mean_height);
??? ho_ImageReduced.Dispose();
??? HOperatorSet.ReduceDomain(ho_ImageMean, ho_Rectangle, out ho_ImageReduced);
??? ho_Region.Dispose();
??? HOperatorSet.Threshold(ho_ImageReduced, out ho_Region, 78, 255);
??? hv_Area.Dispose();hv_Row.Dispose();hv_Column.Dispose();
??? HOperatorSet.AreaCenter(ho_Region, out hv_Area, out hv_Row, out hv_Column);
? }


技術雜談|HALCON算子封裝新函數(shù)的評論 (共 條)

分享到微博請遵守國家法律
务川| 遵化市| 旌德县| 新昌县| 东乌珠穆沁旗| 云安县| 荥经县| 堆龙德庆县| 浦城县| 高清| 阿瓦提县| 麻城市| 兴安县| 囊谦县| 库伦旗| 汽车| 渭南市| 江门市| 龙海市| 合阳县| 周口市| 武定县| 平塘县| 亳州市| 大石桥市| 孟津县| 双流县| 石渠县| 吴堡县| 磴口县| 大冶市| 安陆市| 垫江县| 芒康县| 青神县| 大新县| 嘉鱼县| 织金县| 贵港市| 绥化市| 开阳县|