公共类DiscreteFourierTransformCommand:RasterCommand
公共类DiscreteFourierTransformCommand继承了RasterCommand
@接口LTDiscreteFourierTransformCommand: LTRasterCommand
公共ref类DiscreteFourierTransformCommand:公共RasterCommand
该命令在影像专业和上面的工具包。
该命令不支持签名映像。
为了加快LEADTOOLS中广泛使用的图像处理滤波器的速度,彩色图像的灰度值(主通道)采用以下公式计算:
#定义CalcGrayValue (r, g, b) ((L_UCHAR) (((L_UCHAR) (((2 * (L_UINT) (r)) + (5 * (L_UINT) (g)) + (L_UINT) (b) + 4) / 8))))#定义CalcGrayValue16 (r, g, b) ((L_UINT16) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))#定义CalcGrayValue32 (r, g, b) ((L_UINT32) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))
有关更多信息,请参阅去除噪声.
运行DiscreteFourierTransformCommand在图像上。
使用Leadtools;使用Leadtools.Codecs;使用Leadtools.ImageProcessing.Core;公共无效DiscreteFourierTransformCommandExample (){//加载图像RasterCodecs codecs =新RasterCodecs ();编解码器。ThrowExceptionsOnInvalidImages =真正的;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“Master.jpg”));//准备命令傅里叶变换信息FTArray =新FourierTransformInformation(图片);LeadRect rcRange =新LeadRect(0,0, image。宽度- 1,图像。高度- 1);离散fouriertransformcommand命令=新DiscreteFourierTransformCommand ();命令。傅里叶变换信息= FTArray;命令。范围=rcRange;命令。Flags = DiscreteFourierTransformCommandFlags。DiscreteFourierTransform |DiscreteFourierTransformCommandFlags。灰色|DiscreteFourierTransformCommandFlags。范围|DiscreteFourierTransformCommandFlags。InsideX |DiscreteFourierTransformCommandFlags.InsideY;/ / DFT申请。FourierTransformDisplayCommand disCommand =新FourierTransformDisplayCommand ();disCommand。Flags = FourierTransformDisplayCommandFlags.Log | FourierTransformDisplayCommandFlags.Magnitude;disCommand。FourierTransformInformation = command.FourierTransformInformation;//绘制频率大小disCommand.Run(图片);}静态类LEAD_VARS{公共常量字符串ImagesDir =@“C: \ LEADTOOLS21 \ Resources \图片”;}
进口Leadtools进口Leadtools。编解码器进口Leadtools.ImageProcessing.Core公共子DiscreteFourierTransformCommandExample ()昏暗的编解码器作为新RasterCodecs ()编解码器。ThrowExceptionsOnInvalidImages =真正的昏暗的leadImage作为RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,“Master.jpg”))准备命令昏暗的FTArray作为FourierTransformInformation =新FourierTransformInformation (leadImage)昏暗的rcRange作为LeadRect =新LeadRect(0,0, leadImage.)宽度- 1,领先。高度- 1)昏暗的命令作为DiscreteFourierTransformCommand =新DiscreteFourierTransformCommand命令。傅里叶变换信息= FTArray命令。范围=rcRange命令。Flags = DiscreteFourierTransformCommandFlags。DiscreteFourierTransform或DiscreteFourierTransformCommandFlags。灰色的或DiscreteFourierTransformCommandFlags。范围或DiscreteFourierTransformCommandFlags。InsideX或DiscreteFourierTransformCommandFlags。InsideYDFT的适用。command.Run (leadImage)昏暗的disCommand作为FourierTransformDisplayCommand =新FourierTransformDisplayCommanddisCommand。Flags = FourierTransformDisplayCommandFlags.Log或FourierTransformDisplayCommandFlags。级disCommand。傅里叶变换信息=命令。FourierTransformInformation'图频率幅度disCommand.Run (leadImage)结束子公共NotInheritable类LEAD_VARS公共常量ImagesDir作为字符串=“C: \ LEADTOOLS21 \ Resources \图片”结束类
DiscreteFourierTransformCommand成员
Leadtools.ImageProcessing.Core名称空间
FourierTransformDisplayCommand类
Leadtools.ImageProcessing.Effects.AverageCommand
Leadtools.ImageProcessing.Effects.AddNoiseCommand
Leadtools.ImageProcessing.Color.IntensityDetectCommand
Leadtools.ImageProcessing.Effects.SpatialFilterCommand
Leadtools.ImageProcessing.Effects.BinaryFilterCommand
Leadtools.ImageProcessing.Color.ChangeHueSaturationIntensityCommand
Leadtools.ImageProcessing.Color.ColorThresholdCommand
DiscreteFourierTransformCommand类
Leadtools.ImageProcessing.Effects.DirectionEdgeStatisticalCommand
Leadtools.ImageProcessing.Effects.StatisticsInformationCommand
Leadtools.ImageProcessing.Effects.FeretsDiameterCommand
Leadtools.ImageProcessing.Effects.ObjectInformationCommand
Leadtools.ImageProcessing.Effects.RegionContourPointsCommand
Leadtools.ImageProcessing.Color.MathematicalFunctionCommand
Leadtools.ImageProcessing.SpecialEffects.RevEffectCommand
Leadtools.ImageProcessing.Color.SegmentCommand
Leadtools.ImageProcessing.Effects.UserFilterCommand
Leadtools.ImageProcessing.SpecialEffects.FragmentCommand
帮助收藏
光栅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点
如需与我们联系,请填写此表格,我们将通过电子邮件与您联系。
