当前位置:网站首页>Halcon wood texture recognition
Halcon wood texture recognition
2022-07-05 08:40:00 【Aii parson】
* Image Acquisition 01: Code generated by Image Acquisition 01
list_files ('E:/03 CV( ancient )/Halcon/ Code / Wood texture recognition ', ['files','follow_links'], ImageFiles)
tuple_regexp_select (ImageFiles, ['\\.(tif|tiff|gif|bmp|jpg|jpeg|jp2|png|pcx|pgm|ppm|pbm|xwd|ima|hobj)$','ignore_case'], ImageFiles)
for Index := 0 to |ImageFiles| - 1 by 1
read_image (Image, ImageFiles[Index])
dev_clear_window ()
get_image_size (Image, Width, Height)
dev_open_window (0, 0, Width/5, Height/5, 'black', WindowHandle)
dev_display (Image)
rgb1_to_gray (Image, GrayImage)
threshold (GrayImage, Regions, 44, 255)
connection (Regions, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 40825.7, 500000)
Classes:=['apple','beech','cherry','maple','oak']
cooc_feature_image (SelectedRegions, GrayImage, 6, 0, Energy, Correlation, Homogeneity, Contrast)# Calculate the co-occurrence matrix and derive its gray value characteristics
sobel_amp (GrayImage, EdgeAmplitude, 'sum_abs', 3)# Use Sobel Operator detection edge ( Range ) features
gray_histo_abs (SelectedRegions, EdgeAmplitude, 8, AbsoluteHisto)# Calculate the distribution of gray values .Quantization=6 Represents the quantization of the input gray value .
endfor
边栏推荐
- Various types of questions judged by prime numbers within 100 (C language)
- 319. 灯泡开关
- [牛客网刷题 Day4] JZ32 从上往下打印二叉树
- Example 009: pause output for one second
- Cinq détails de conception du régulateur de tension linéaire
- Shift operation of complement
- C# LINQ源码分析之Count
- Esphone retrofits old fans
- Esp8266 interrupt configuration
- Esphone Feixun DC1 soft change access homeassstant
猜你喜欢
每日一题——替换空格
Arduino burning program and Arduino burning bootloader
How to write cover letter?
MATLAB小技巧(28)模糊綜合評價
Shift operation of complement
L298N module use
实例003:完全平方数 一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数,请问该数是多少?
[three tier architecture and JDBC summary]
Daily question - input a date and output the day of the year
剑指 Offer 09. 用两个栈实现队列
随机推荐
TypeScript手把手教程,简单易懂
EA introduction notes
How can fresh students write resumes to attract HR and interviewers
Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
Sword finger offer 05 Replace spaces
How to manage the performance of R & D team?
实例005:三数排序 输入三个整数x,y,z,请把这三个数由小到大输出。
整形的分类:short in long longlong
PIP installation
Agile project management of project management
696. Count binary substring
Arduino operation stm32
实例002:“个税计算” 企业发放的奖金根据利润提成。利润(I)低于或等于10万元时,奖金可提10%;利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.
Arduino burning program and Arduino burning bootloader
Meizu Bluetooth remote control temperature and humidity access homeassistant
319. Bulb switch
One question per day - replace spaces
Arrangement of some library files
猜谜语啦(6)
实例010:给人看的时间