zoukankan      html  css  js  c++  java
  • 关于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)

  • 相关阅读:
    一步一步来
    性能管理分析
    css架构
    bootstrap栅格系统的div高度怎样定?
    有效地重构代码
    模块化开发
    性能优化和模块化
    表单只能输入数字
    SpringMVC拦截器
    整合SSM
  • 原文地址:https://www.cnblogs.com/qqhfeng/p/6119931.html
Copyright © 2011-2022 走看看