←选择平台

BlurDetectionCommand类

总结
确定图像是否模糊。
语法
c#
VB
objective - c
c++
Java
公共BlurDetectionCommand:RasterCommand
公共BlurDetectionCommand继承了RasterCommand
@接口LTBlurDetectionCommand: LTRasterCommand
公共BlurDetectionCommand扩展RasterCommand
公共ref类BlurDetectionCommand:公共RasterCommand
讲话
  • 这个命令获取一个图像并确定它是否被模糊。如果它是模糊的,它计算模糊的量。
  • 该命令支持8位、12位和16位灰度图像,以及24位和32位彩色图像。
例子
c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;使用Leadtools.ImageProcessing.Effects;公共无效BlurDetectionCommandExample ()RasterCodecs =RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的//加载图片RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“cannon.jpg”));//准备命令BlurDetectionCommand命令=BlurDetectionCommand ();/ /应用command.Run(图片);/ /结果/ /命令。模糊等于假//对图像应用高斯模糊GaussianCommand gcommand =GaussianCommand ();gcommand。半径= 20;gcommand.Run(图片);//再次应用BlurDetection命令command.Run(图片);/ /结果/ /命令。模糊等于真实/ /命令。blureextent等于0.8745}静态LEAD_VARS公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”}
进口Leadtools进口Leadtools。编解码器进口Leadtools.ImageProcessing.Core进口Leadtools.ImageProcessing.Effects公共BlurDetectionCommandExample ()昏暗的编解码器作为RasterCodecs =RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的“加载图像”昏暗的图像作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“cannon.jpg”))准备好命令昏暗的命令作为BlurDetectionCommand =BlurDetectionCommand ()的应用command.Run(图片)的结果”命令。模糊等于假对图像应用高斯模糊昏暗的gcommand作为GaussianCommand =GaussianCommand ()gcommand。半径= 20gcommand.Run(图片)再次应用模糊检测命令command.Run(图片)的结果”命令。模糊等于真实”命令。blureextent等于0.8745结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.ImageProcessing.Core组装
188金宝搏的网址客服|支持|联系我们|知识产权公告
©1991 - 2021领先科技有限公司版权所有。