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.
[FlagsAttribute()]
public enum DiscreteFourierTransformCommandFlags
<FlagsAttribute()>
Public Enum DiscreteFourierTransformCommandFlags
typedef NS_OPTIONS(NSUInteger, LTDiscreteFourierTransformCommandFlags)
[FlagsAttribute()]
public enum class DiscreteFourierTransformCommandFlags
Value | Member | Description |
---|---|---|
0x00000000 | None | No change. |
0x00000001 | DiscreteFourierTransform | Convert the image into frequency domain and store the results in the Data property of the FourierTransformInformation object. |
0x00000002 | InverseDiscreteFourierTransform | 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. |
0x00000010 | Blue | Use the blue channel. |
0x00000020 | Green | Use the green channel. |
0x00000030 | Red | Use the red channel. |
0x00000040 | Gray | 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)) |
0x00000100 | Magnitude | Construct the image from the frequency magnitude data only. |
0x00000200 | Phase | Construct the image from frequency phase data only. |
0x00000300 | Both | Construct the image from both magnitude and phase data. |
0x00001000 | Clip | Clip the constructed image values so they are between 0 and 255. |
0x00002000 | Scale | Scale the constructed image values so they are between 0 and 255. |
0x00010000 | All | Use or compute all harmonics. If this flag is used the range rectangle and the range flags will be ignored. |
0x00020000 | Range | Use or compute the harmonics specified in the range rectangle. |
0x00100000 | InsideX | Use or compute only the X harmonics inside the X range and ignore those outside the range. |
0x00200000 | OutsideX | Use or compute only the X harmonics outside the X range and ignore those inside the range. |
0x01000000 | InsideY | Use or compute only the Y harmonics inside the Y range and ignore those outside the range. |
0x02000000 | OutsideY | Use or compute only the Y harmonics outside the Y range and ignore those inside the range. |
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 |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document