图像分割
程序员文章站
2024-03-25 08:13:52
...
read_image (Image, 'fabrik')
dev_close_window ()
get_image_size (Image, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowID)
dev_display (Image)
dev_set_draw ('margin')
dev_set_color ('red')
* Create two rectangles parallel to the coordinate axes
gen_rectangle1 (Rectangle1, 351, 289, 407, 340)
dev_set_color ('green')
gen_rectangle1 (Rectangle2, 78, 178, 144, 244)
gray_histo (Rectangle1, Image, AbsoluteHisto1, RelativeHisto1)
gray_histo (Rectangle2, Image, AbsoluteHisto2, RelativeHisto2)
dev_set_color ('red')
* Convert a histogram created with gray_histo into a region
gen_region_histo (Histo1, AbsoluteHisto1, 255, 255, 1)
dev_set_color ('green')
gen_region_histo (Histo2, AbsoluteHisto2, 255, 255, 1)
gray_histo(Regions, Image:::AbsolutEHisto,RelativeHisto)
作用:获得图像指定区域内的灰度分布
gen_region_histo(:Region:Histogram,Row, Column, Scale:)
作用: 把获得的灰度分布转换为区域region
****************************************************************
char_threshold.hdev (白纸黑字)
dual_threshold.hdev(汽车动态检测)
dyn_threshold.hdev (凸点检测)
var_threshold.hdev (label检测)
**************************************************************************
****************************************************************************
上一篇: 计算机视觉摄像机定标中投影矩阵的计算(2):特征向量法
下一篇: opencv计算机视觉学习笔记七