公共类SubtractBackgroundCommand:RasterCommand
公共类SubtractBackgroundCommand继承了RasterCommand
@接口LTSubtractBackgroundCommand: LTRasterCommand
公共类SubtractBackgroundCommand扩展RasterCommand
公共ref类SubtractBackgroundCommand:公共RasterCommand
滚动球算法工作原理如下:
滚动球半径应至少与图像中不属于背景的最大物体的半径一样大,以确保背景与任何物体的分离。
有关更多信息,请参阅改变亮度和对比度.
运行SubtractBackgroundCommand在图像上。
使用Leadtools;使用Leadtools.ImageProcessing;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效SubtractBackgroundCommandExample (){//加载图像RasterCodecs codecs =新RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,@“ImageProcessingDemo \ Image4.Tif”));//准备命令SubtractBackgroundCommand命令=新SubtractBackgroundCommand ();命令。RollingBall = 50;命令。亮度因子= 100;命令。shrinksize = SubtractBackgroundCommandType.DependOnRollingBallSize;命令。Flags = subtractbackgroundcommandflags . backgroundisdark;//在图像上应用减去背景效果。command.Run(图片);}静态类LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools。ImageProcessing进口Leadtools。编解码器进口Leadtools.ImageProcessing.Core公共子SubtractBackgroundCommandExample ()昏暗的编解码器作为新RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“ImageProcessingDemo \ \ Image4.Tif”))准备命令昏暗的命令作为SubtractBackgroundCommand =新SubtractBackgroundCommand命令。RollingBall = 50命令。亮度因子= 100命令。shrinksize = SubtractBackgroundCommandType。DependOnRollingBallSize命令。Flags = SubtractBackgroundCommandFlags。BackgroundIsDarker'在图像上应用减去背景效果。command.Run (leadImage)结束子公共NotInheritable类LEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束类
Leadtools.ImageProcessing.Core名称空间
Leadtools.ImageProcessing.Color.ChangeHueSaturationIntensityCommand
Leadtools.ImageProcessing.Color.ColorReplaceCommand
Leadtools.ImageProcessing.Color.ColorThresholdCommand
Leadtools.ImageProcessing.Effects.DirectionEdgeStatisticalCommand
Leadtools.ImageProcessing.Effects.StatisticsInformationCommand
Leadtools.ImageProcessing.Effects.FeretsDiameterCommand
Leadtools.ImageProcessing.Effects.ObjectInformationCommand
Leadtools.ImageProcessing.Color.MathematicalFunctionCommand
Leadtools.ImageProcessing.SpecialEffects.RevEffectCommand
帮助收藏
光栅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点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。
