公共类SegmentCommand:RasterCommand
公共类SegmentCommand
继承了RasterCommand
@接口LTSegmentCommand: LTRasterCommand
公共类SegmentCommand扩展RasterCommand
公共ref类SegmentCommand:公共RasterCommand
有关更多信息,请参阅介绍用LEADTOOLS进行图像处理.有关更多信息,请参阅应用艺术效果.
运行SegmentCommand在图像上。
使用Leadtools;
使用Leadtools.Codecs;
使用Leadtools.ImageProcessing.Color;
公共无效SegmentCommandExample ()
{
//加载图像
RasterCodecs codecs =新RasterCodecs ();
编解码器。ThrowExceptionsOnInvalidImages =真正的;
RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“sample5.cmp”));
//准备命令
SegmentCommand命令=新SegmentCommand ();
命令。阈值= 20;
命令。Flags = SegmentCommandFlags.Rgb;
//分割图像。
command.Run(图片);
编解码器。保存(形象,Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24);
}
静态类LEAD_VARS
{
公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;
}
进口Leadtools
进口Leadtools。编解码器
进口Leadtools.ImageProcessing.Color
公共子SegmentCommandExample ()
昏暗的编解码器作为新RasterCodecs ()
编解码器。ThrowExceptionsOnInvalidImages =真正的
昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“sample5.cmp”))
准备命令
昏暗的命令作为SegmentCommand =新SegmentCommand
命令。阈值= 20
命令。Flags = SegmentCommandFlags。Rgb
'分割图像。
command.Run (leadImage)
编解码器。保存(leadImage Path.Combine (LEAD_VARS.ImagesDir“Result.jpg”), RasterImageFormat.Jpeg, 24)
结束子
公共NotInheritable类LEAD_VARS
公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”
结束类
Leadtools.ImageProcessing.Color名称空间
Leadtools.ImageProcessing.FillCommand
Leadtools.ImageProcessing.Effects.SharpenCommand
Leadtools.ImageProcessing.Effects.MosaicCommand
Leadtools.ImageProcessing.Effects.EmbossCommand
Leadtools.ImageProcessing.Core.MedianCommand
Leadtools.ImageProcessing.Effects.AddNoiseCommand
Leadtools.ImageProcessing.Effects.SpatialFilterCommand
Leadtools.ImageProcessing.Effects.BinaryFilterCommand
Leadtools.ImageProcessing.Core.MaximumCommand
Leadtools.ImageProcessing.Core.MinimumCommand
Leadtools.ImageProcessing.Effects.OilifyCommand
Leadtools.ImageProcessing.Core.WindowLevelCommand
ChangeHueSaturationIntensityCommand类
Leadtools.ImageProcessing.Core.DiscreteFourierTransformCommand
Leadtools.ImageProcessing.Effects.DirectionEdgeStatisticalCommand
Leadtools.ImageProcessing.Core.FastFourierTransformCommand
Leadtools.ImageProcessing.Core.FrequencyFilterCommand
Leadtools.ImageProcessing.Core.FrequencyFilterMaskCommand
Leadtools.ImageProcessing.SpecialEffects.RevEffectCommand
Leadtools.ImageProcessing.Core.SubtractBackgroundCommand
Leadtools.ImageProcessing.Effects.UserFilterCommand
Leadtools.ImageProcessing.Effects.HighPassCommand
Leadtools.ImageProcessing.SpecialEffects.BricksTextureCommand
Leadtools.ImageProcessing.SpecialEffects.CanvasCommand
Leadtools.ImageProcessing.SpecialEffects.CloudsCommand
Leadtools.ImageProcessing.SpecialEffects.ColoredBallsCommand
Leadtools.ImageProcessing.SpecialEffects.DiffuseGlowCommand
Leadtools.ImageProcessing.Effects.DisplacementCommand
Leadtools.ImageProcessing.SpecialEffects.FragmentCommand
Leadtools.ImageProcessing.Core.HalfTonePatternCommand
Leadtools.ImageProcessing.Effects.MaskConvolutionCommand
Leadtools.ImageProcessing.SpecialEffects.MosaicTilesCommand
Leadtools.ImageProcessing.Effects.OffsetCommand
Leadtools.ImageProcessing.SpecialEffects.PerspectiveCommand
Leadtools.ImageProcessing.SpecialEffects.PlasmaCommand
Leadtools.ImageProcessing.SpecialEffects.PointillistCommand
Leadtools.ImageProcessing.SpecialEffects.RomanMosaicCommand
帮助收藏
光栅net|C API|c++类库|HTML5 JavaScript
文档net|C API|c++类库|HTML5 JavaScript
医疗net|C API|c++类库|HTML5 JavaScript
医疗网络查看器net
188宝金博怎么下载
支持的平台上
.NET、Java、Android和iOS/macOS程序集
C API/ c++类库
HTML5 JavaScript库
您的邮件已发送给技术支持!应该有人联系!如果你的事情很紧急,请回来聊天。
聊天时间:
周一至周五,美国东部时间上午8:30至下午6:00
感谢您的反馈!
请再次填写表格,开始新的聊天。
所有代理目前都离线。
聊天时间:
星期一至星期五
美国东部时间上午8:30 -下午6点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。