| MatDft Method |
Performs a forward Discrete Fourier transform of 1D or 2D floating-point array.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public Mat Dft(
DftFlags flags = DftFlags.None,
int nonzeroRows = 0
)
Public Function Dft (
Optional flags As DftFlags = DftFlags.None,
Optional nonzeroRows As Integer = 0
) As Mat
public:
Mat^ Dft(
DftFlags flags = DftFlags::None,
int nonzeroRows = 0
)
member Dft :
?flags : DftFlags *
?nonzeroRows : int
(* Defaults:
let _flags = defaultArg flags DftFlags.None
let _nonzeroRows = defaultArg nonzeroRows 0
*)
-> Mat
Parameters
- flags (Optional)
- Type: OpenCvSharpDftFlags
Transformation flags, a combination of the DftFlag2 values - nonzeroRows (Optional)
- Type: SystemInt32
When the parameter != 0, the function assumes that
only the first nonzeroRows rows of the input array ( DFT_INVERSE is not set)
or only the first nonzeroRows of the output array ( DFT_INVERSE is set) contain non-zeros,
thus the function can handle the rest of the rows more efficiently and
thus save some time. This technique is very useful for computing array cross-correlation
or convolution using DFT
Return Value
Type:
MatThe destination array, which size and type depends on the flags
See Also