←选择平台

ContourFilterCommand类

总结
对源图像执行轮廓段过滤器。这个命令是可用的文档/医疗工具包。
语法
c#
VB
c++
公共ContourFilterCommand:RasterCommand
公共ContourFilterCommand继承了RasterCommand
公共ref类ContourFilterCommand:公共RasterCommand
讲话
  • 比特每像素的图像变化影响根据类型属性的值,或者类型参数的构造函数如下:

    如果类型是 每像素比特将:
    8位/像素的灰度
    LinkBlackWhite 1比特每像素
    LinkGray 8位/像素的灰度
    LinkColor 8位/像素的颜色
    ApproxColor 8位/像素的颜色
  • 该命令支持12和16位灰度和48和64位彩色图像。支持12和16位灰度和48和64位彩色图像只在可用文档/医疗工具包。

  • 这个命令不支持32位灰度图像。
例子

运行ContourFilterCommand在一个图像。

c#
VB
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Effects;公共无效ContourFilterCommandExample (){/ /加载一个图像RasterCodecs编解码器=RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage图像= codecs.Load (Path.Combine (LEAD_VARS.ImagesDir,@“ImageProcessingDemo \ Beauty16.jpg”CodecsLoadByteOrder), 16日。BgrOrGray 1 1);/ /准备命令ContourFilterCommand命令=ContourFilterCommand ();命令。阈值= 15;命令。DeltaDirection = 35;命令。MaximumError = 5;命令。类型= ContourFilterCommandType.Thin;command.Run(图片);编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”),RasterImageFormat。Jpeg、24);}静态LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools.Codecs进口Leadtools.ImageProcessing.Effects公共ContourFilterCommandExample ()昏暗的编解码器作为RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load (Path.Combine (LEAD_VARS.ImagesDir“Master.jpg”))“准备的命令昏暗的命令作为ContourFilterCommand =ContourFilterCommand命令。阈值= 15命令。DeltaDirection = 35命令。MaximumError = 5命令。类型= ContourFilterCommandType.Thincommand.Run (leadImage)编解码器。保存(leadImage Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”),RasterImageFormat。Jpeg, 24)结束公共NotInheritableLEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束
需求

目标平台

Leadtools.ImageProcessing.Effects作为sembly
188金宝搏的网址客服|支持|联系我们|知识产权的通知
©1991 - 2021领先的技术公司。保留所有权利。