当前位置: 首页 > news >正文

襄阳 网站建设封面模板

襄阳 网站建设,封面模板,58接网站建设,深圳视频制作公司第一#xff0c;Brenner梯度法、 第二#xff0c;Tenegrad梯度法、 第三#xff0c;laplace梯度法、 第四#xff0c;方差法、 第五#xff0c;能量梯度法。 此实例通过使用Halcon实现5种清晰度算法函数#xff1a; 1. 方差算法函数#xff1b; 2. 拉普拉斯能量函数…第一Brenner梯度法、 第二Tenegrad梯度法、 第三laplace梯度法、 第四方差法、 第五能量梯度法。 此实例通过使用Halcon实现5种清晰度算法函数 1. 方差算法函数 2. 拉普拉斯能量函数 3. 能量梯度函数 4. Brenner函数 5. Tenegrad函数 测试效果如下图片找到峰值对应的那张图确实是最清晰的那张使用直方图显示清晰度结果如果有更好的方法那就跟帖回复吧。 此实例有HalconBBS群友提供       *evaluate_definition的使用例子 *使用halcon自带的图片 *实现了五种评价函数 *选择算子的Method值可以观察不同评价函数的效果。 read_image (Image, pcb_focus/pcb_focus_telecentric_106) dev_update_off () dev_close_window () dev_open_window_fit_image (Image, 0, 0, 752, 480, WindowHandle) set_display_font (WindowHandle, 16, mono, true, false) dev_set_color (lime green) dev_set_line_width (3) Ret:[] get_image_size(Image, Width, Height) for Index : 1 to 121 by 1     read_image (Image, pcb_focus/pcb_focus_telecentric_Index$03d)          evaluate_definition (Image, Tenegrad, Value)          dev_display (Image)     Ret:[Ret,Value] endfor *使用直方图显示清晰度结果如果有更好的方法那就跟帖回复吧 VMax:max(Ret) VMin:min(Ret) GRet : 100*(Ret-VMin)/(VMax-VMin) gen_region_histo(Region, Ret, 255, 255, 1) *找到峰值对应的那张图确实是最清晰的那张。 qxd:find(Ret, max(Ret)) read_image (GoodImage, pcb_focus/pcb_focus_telecentric_qxd$03d) dev_display (GoodImage) dev_display (Region) evaluate_definition函数代码如下 scale_image_max(Image, Image) get_image_size(Image, Width, Height)if(Method Deviation) *方差法region_to_mean (Image, Image, ImageMean) convert_image_type (ImageMean, ImageMean, real)convert_image_type (Image, Image, real) sub_image(Image, ImageMean, ImageSub, 1, 0)mult_image(ImageSub, ImageSub, ImageResult, 1, 0)intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method laplace) *拉普拉斯能量函数laplace (Image, ImageLaplace4, signed, 3, n_4)laplace (Image, ImageLaplace8, signed, 3, n_8)add_image(ImageLaplace4,ImageLaplace4,ImageResult1, 1, 0)add_image(ImageLaplace4,ImageResult1,ImageResult1, 1, 0)add_image(ImageLaplace8,ImageResult1,ImageResult1, 1, 0)mult_image(ImageResult1, ImageResult1, ImageResult, 1, 0)intensity(ImageResult, ImageResult, Value, Deviation)elseif(Method energy) *能量梯度函数crop_part(Image, ImagePart00, 0, 0, Width-1, Height-1)crop_part(Image, ImagePart01, 0, 1, Width-1, Height-1)crop_part(Image, ImagePart10, 1, 0, Width-1, Height-1)convert_image_type (ImagePart00, ImagePart00, real)convert_image_type (ImagePart10, ImagePart10, real)convert_image_type (ImagePart01, ImagePart01, real)sub_image(ImagePart10, ImagePart00, ImageSub1, 1, 0)mult_image(ImageSub1, ImageSub1, ImageResult1, 1, 0)sub_image(ImagePart01, ImagePart00, ImageSub2, 1, 0)mult_image(ImageSub2, ImageSub2, ImageResult2, 1, 0)add_image(ImageResult1, ImageResult2, ImageResult, 1, 0)    intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method Brenner) *Brenner函数法crop_part(Image, ImagePart00, 0, 0, Width, Height-2)convert_image_type (ImagePart00, ImagePart00, real)crop_part(Image, ImagePart20, 2, 0, Width, Height-2)convert_image_type (ImagePart20, ImagePart20, real)sub_image(ImagePart20, ImagePart00, ImageSub, 1, 0)mult_image(ImageSub, ImageSub, ImageResult, 1, 0)intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method Tenegrad) *Tenegrad函数法sobel_amp (Image, EdgeAmplitude, sum_sqrt, 3)min_max_gray(EdgeAmplitude, EdgeAmplitude, 0, Min, Max, Range)threshold(EdgeAmplitude, Region1, 11.8, 255)region_to_bin(Region1, BinImage, 1, 0, Width, Height)mult_image(EdgeAmplitude, BinImage, ImageResult4, 1, 0)mult_image(ImageResult4, ImageResult4, ImageResult, 1, 0)intensity(ImageResult, ImageResult, Value, Deviation)elseif(Method 2)elseif(Method 3)endifreturn () scale_image_max(Image, Image) get_image_size(Image, Width, Height) if(Method Deviation) *方差法     region_to_mean (Image, Image, ImageMean)      convert_image_type (ImageMean, ImageMean, real)     convert_image_type (Image, Image, real)      sub_image(Image, ImageMean, ImageSub, 1, 0)     mult_image(ImageSub, ImageSub, ImageResult, 1, 0)     intensity(ImageResult, ImageResult, Value, Deviation)       elseif(Method laplace) *拉普拉斯能量函数     laplace (Image, ImageLaplace4, signed, 3, n_4)     laplace (Image, ImageLaplace8, signed, 3, n_8)     add_image(ImageLaplace4,ImageLaplace4,ImageResult1, 1, 0)     add_image(ImageLaplace4,ImageResult1,ImageResult1, 1, 0)     add_image(ImageLaplace8,ImageResult1,ImageResult1, 1, 0)     mult_image(ImageResult1, ImageResult1, ImageResult, 1, 0)     intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method energy) *能量梯度函数     crop_part(Image, ImagePart00, 0, 0, Width-1, Height-1)     crop_part(Image, ImagePart01, 0, 1, Width-1, Height-1)     crop_part(Image, ImagePart10, 1, 0, Width-1, Height-1)     convert_image_type (ImagePart00, ImagePart00, real)     convert_image_type (ImagePart10, ImagePart10, real)     convert_image_type (ImagePart01, ImagePart01, real)     sub_image(ImagePart10, ImagePart00, ImageSub1, 1, 0)     mult_image(ImageSub1, ImageSub1, ImageResult1, 1, 0)     sub_image(ImagePart01, ImagePart00, ImageSub2, 1, 0)     mult_image(ImageSub2, ImageSub2, ImageResult2, 1, 0)     add_image(ImageResult1, ImageResult2, ImageResult, 1, 0)         intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method Brenner) *Brenner函数法     crop_part(Image, ImagePart00, 0, 0, Width, Height-2)     convert_image_type (ImagePart00, ImagePart00, real)     crop_part(Image, ImagePart20, 2, 0, Width, Height-2)     convert_image_type (ImagePart20, ImagePart20, real)     sub_image(ImagePart20, ImagePart00, ImageSub, 1, 0)     mult_image(ImageSub, ImageSub, ImageResult, 1, 0)     intensity(ImageResult, ImageResult, Value, Deviation) elseif(Method Tenegrad) *Tenegrad函数法     sobel_amp (Image, EdgeAmplitude, sum_sqrt, 3)     min_max_gray(EdgeAmplitude, EdgeAmplitude, 0, Min, Max, Range)     threshold(EdgeAmplitude, Region1, 11.8, 255)     region_to_bin(Region1, BinImage, 1, 0, Width, Height)     mult_image(EdgeAmplitude, BinImage, ImageResult4, 1, 0)     mult_image(ImageResult4, ImageResult4, ImageResult, 1, 0)     intensity(ImageResult, ImageResult, Value, Deviation)     elseif(Method 2) elseif(Method 3)      endif      return ()
http://www.w-s-a.com/news/6582/

相关文章:

  • 怎么找淘宝客网站最新军事战况
  • 缺乏门户网站建设网页设计与制作项目教程第二版
  • 手机网站横竖屏一般做建设的是什么公司
  • 免费网站建设无广告网站开发 华景新城
  • 湖州网站制作报价西安网站开发有哪些公司
  • google 浏览器开源seo软件
  • 网站空间是什么意思自己怎样建设网站
  • 国外家装设计网站如何做软件开发
  • 凡科建站登录官网当当网网站建设策划书
  • 网站百度屏蔽关键词杭州排名优化公司
  • h5响应式网站模板下载wordpress鼠标指针
  • 摄影作品投稿网站目前最好的引流推广方法
  • 资源站源码永久dede网站搬家 空间转移的方法
  • 网站建设销售的技巧话语it培训机构
  • 自建本地网站服务器wordpress南充房产网最新楼盘最近房价
  • 郑州代做网站天津哪里能做网站
  • 网站如何做排名网站建设项目的工作分解
  • 洛阳网络建站公司网站开发主流语言
  • 广州各区正在进一步优化以下措施seo值是什么意思
  • 滨州建网站公司京东云 wordpress
  • 网站视频背景怎么做免费的网络推广有哪些
  • 申请网站怎样申请广西壮族自治区专升本业务系统
  • 写作网站哪个网站做ic外单好
  • 苏州和城乡建设局网站撸撸撸做最好的导航网站
  • 网站被同行抄袭怎么办深圳中装建设集团
  • 建站及推广瓦房店 网站建设
  • 怎么查网站是在哪里备案的广州电力建设有限公司网站
  • 做网站自己申请域名还是对方wordpress管理地址
  • 专门做二手书网站或appwordpress首页显示特定分类文章
  • 无锡网站设计厂家一建十个专业含金量排名