←Select platform

FourierTransformInformation Property

Summary

FourierTransformInformation structure that contains information about the transform. The Data property of the FourierTransformInformation object is a two-dimensional array that will hold the frequency components of the image.

Syntax
C#
Objective-C
C++/CLI
Java
Python
public FourierTransformInformation FourierTransformInformation { get; set; } 
@property (nonatomic, strong, null_unspecified) LTFourierTransformInformation *fourierTransformInformation; 
public FourierTransformInformation getFourierTransformInformation(); 
public void setFourierTransformInformation( 
   FourierTransformInformation fourierTransformInformation 
); 
public: 
property FourierTransformInformation^ FourierTransformInformation { 
   FourierTransformInformation^ get(); 
   void set (    FourierTransformInformation^ ); 
} 
FourierTransformInformation # get and set (FourierTransformDisplayCommand) 

Property Value

FourierTransformInformation structure. The Data property of the FourierTransformInformation object is a two-dimensional array that will hold the frequency components of the image. Its dimensions must be the same as the image dimensions.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.Core; 
 
public void FourierTransformDisplayCommandExample() 
{ 
   // Load an image 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"ImageProcessingDemo\FourierTransform.jpg")); 
 
   // Prepare the command 
   FourierTransformInformation FTArray = new FourierTransformInformation(image); 
   LeadRect rcRange = new LeadRect(0, 0, image.Width - 1, image.Height - 1); 
   DiscreteFourierTransformCommand DFTcommand = new DiscreteFourierTransformCommand(); 
   FourierTransformDisplayCommand command = new FourierTransformDisplayCommand(); 
 
   DFTcommand.FourierTransformInformation = FTArray; 
   DFTcommand.Range = rcRange; 
   DFTcommand.Flags = DiscreteFourierTransformCommandFlags.DiscreteFourierTransform | 
      DiscreteFourierTransformCommandFlags.Gray | 
      DiscreteFourierTransformCommandFlags.Range | 
      DiscreteFourierTransformCommandFlags.InsideX | 
      DiscreteFourierTransformCommandFlags.InsideY; 
   // apply DFT 
   DFTcommand.Run(image); 
 
   command.Flags = FourierTransformDisplayCommandFlags.Log | FourierTransformDisplayCommandFlags.Magnitude; 
   command.FourierTransformInformation = FTArray; 
   //plot frequency magnitude. 
   command.Run(image); 
 
} 
 
static class LEAD_VARS 
{ 
   public const string ImagesDir = @"C:\LEADTOOLS22\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 22.0.2023.11.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.Core Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.