←Select platform

DiscreteFourierTransformCommandFlags Enumeration

Summary

Flags that indicate the transformation type, operation channel, frequency data type used to reconstruct the image, the clipping type, the used or computed frequencies range, the operation on the specified X harmonics range , and the operation on the specified Y harmonics range. This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Syntax
C#
VB
Objective-C
C++
[FlagsAttribute()] 
public enum DiscreteFourierTransformCommandFlags   
<FlagsAttribute()> 
Public Enum DiscreteFourierTransformCommandFlags  
typedef NS_OPTIONS(NSUInteger, LTDiscreteFourierTransformCommandFlags) 
[FlagsAttribute()] 
public enum class DiscreteFourierTransformCommandFlags   

Members
ValueMemberDescription
0x00000000None No change.
0x00000001DiscreteFourierTransform Convert the image into frequency domain and store the results in the Data property of the FourierTransformInformation object.
0x00000002InverseDiscreteFourierTransform Construct an image using the frequency components from the Data property of the FourierTransformInformation object. This option will change the values of the Data property.
0x00000010Blue Use the blue channel.
0x00000020Green Use the green channel.
0x00000030Red Use the red channel.
0x00000040Gray Use the master channel. If this flag is combined with InverseDiscreteFourierTransform, the reconstructed image will be gray.

In order to speed up widely used image processing filters in LEADTOOLS, the grayscale value (master channel) of a colored image is calculated using the following formulas:

        #define CalcGrayValue(r, g, b) ((L_UCHAR)(((L_UCHAR) (((2 * (L_UINT) (r)) + (5 * (L_UINT) (g)) + (L_UINT) (b) + 4) / 8))))
        #define CalcGrayValue16(r, g, b) ((L_UINT16) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))
        #define CalcGrayValue32(r, g, b) ((L_UINT32) (((2 * (L_UINT32) (r)) + (5 * (L_UINT32) (g)) + (L_UINT32) (b) + 4) / 8))
0x00000100Magnitude Construct the image from the frequency magnitude data only.
0x00000200Phase Construct the image from frequency phase data only.
0x00000300Both Construct the image from both magnitude and phase data.
0x00001000Clip Clip the constructed image values so they are between 0 and 255.
0x00002000Scale Scale the constructed image values so they are between 0 and 255.
0x00010000All Use or compute all harmonics. If this flag is used the range rectangle and the range flags will be ignored.
0x00020000Range Use or compute the harmonics specified in the range rectangle.
0x00100000InsideX Use or compute only the X harmonics inside the X range and ignore those outside the range.
0x00200000OutsideX Use or compute only the X harmonics outside the X range and ignore those inside the range.
0x01000000InsideY Use or compute only the Y harmonics inside the Y range and ignore those outside the range.
0x02000000OutsideY Use or compute only the Y harmonics outside the Y range and ignore those inside the range.

Remarks

You can use a bitwise OR ( ¦ ) to specify one flag from each group.

Group Flags
Flags that represent the transformation type DiscreteFourierTransform, InverseDiscreteFourierTransform
Flags that represent the operation channel type Blue, Green, Red, Gray
Flags that represent the frequency data type used for constructing the image: this flag is used only if InverseDiscreteFourierTransform is set and will be ignored if DiscreteFourierTransform is set Magnitude, Phase, Both
Flags that represent the clipping type. This flag is used only if InverseDiscreteFourierTransform is set and will be ignored if FFT_FFT is set Clip, Scale
Flags that represent which harmonics are used All, Range
Flags that represent the operations on the X Harmonics range InsideX, OutsideX
Flags that represent the operations on the Y Harmonics range InsideY, OutsideY

Requirements

Target Platforms

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

Leadtools.ImageProcessing.Core Assembly