关于shape_trans (ConnectedRegions, ConvexRegions, 'convex')的作用于对比

Posted 挣脱生命的束缚...

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于shape_trans (ConnectedRegions, ConvexRegions, 'convex')的作用于对比相关的知识,希望对你有一定的参考价值。

* crystal.hdev: extraction of hexagonally shaped crystals via local thresholding and region post-processing
*
dev_close_window ()
dev_update_window (\'off\')
* ****
* step: acquire image
* ****
read_image (Image, \'crystal\')
get_image_size (Image, Width, Height)
dev_open_window_fit_image (Image, 0, 0, Width, Height, WindowID)
set_display_font (WindowID, 12, \'mono\', \'true\', \'false\')
dev_set_draw (\'margin\')
dev_set_line_width (2)
dev_display (Image)
disp_continue_message (WindowID, \'black\', \'true\')
stop ()
* ****
* step: segment image
* ****
* -> using a local threshold
mean_image (Image, ImageMean, 21, 21)
dyn_threshold (Image, ImageMean, RegionDynThresh, 8, \'dark\')
* -> extract connected components
connection (RegionDynThresh, ConnectedRegions)
dev_display (ConnectedRegions)
disp_continue_message (WindowID, \'black\', \'true\')
stop ()
* ****
* step: process regions
* ****
shape_trans (ConnectedRegions, ConvexRegions, \'convex\')
select_shape (ConvexRegions, LargeRegions, \'area\', \'and\', 600, 2000)
select_gray (LargeRegions, Image, Crystals, \'entropy\', \'and\', 1, 5.6)
dev_display (Image)
dev_display (Crystals)

 

 

 

 

 

以上是关于关于shape_trans (ConnectedRegions, ConvexRegions, 'convex')的作用于对比的主要内容,如果未能解决你的问题,请参考以下文章

halcon几何变换(仿射变换)

halcon学习-几何转正

再聊面试,这次关于钱,关于培训,关于内卷

关于数学,关于年少的感动,关于初心

scrapy 关于 rule, 关于多页

JS学习笔记关于选项卡,关于this,关于innerHTML