• 关于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)

  • 相关阅读:
    dataTables的导出Excel功能
    jquery生成二维码图片
    angular2表单初体验
    台湾辅仁大学的python教程笔记
    浅说《测试用例》----给测试新手的
    测试员的工作与学习
    简单的表格代码
    特殊效果字体代码
    办公自动化的基本方法
    css网页的几种类型
  • 原文地址:https://www.cnblogs.com/qqhfeng/p/6119931.html
Copyright © 2020-2023  润新知