This class provides frame frequency analysis functions.
More...
|
static bool | image2frequencies (const Frame &frame, Complexes &frequencies, Worker *worker=nullptr) |
| Applies a Fourier transformation for a given frame. More...
|
|
static bool | image2frequencies (const Frame &frame, Complex *frequencies, Worker *worker=nullptr) |
| Applies a Fourier transformation for a given frame. More...
|
|
static bool | frequencies2image (const Complex *frequencies, Frame &frame, Worker *worker=nullptr) |
| Applies an inverse Fourier analysis for given frequencies. More...
|
|
static void | image2frequencies8BitPerChannel (const uint8_t *frame, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int framePaddingElements, Complex *frequencies, Worker *worker=nullptr) |
| Applies a Fourier transformation for a given 1 channel 8 bit frame. More...
|
|
static void | frequencies2image8BitPerChannel (const Complex *frequencies, const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int framePaddingElements, uint8_t *frame, Worker *worker=nullptr) |
| Applies an inverse Fourier transformation for a given 1 channel 8 bit frame. More...
|
|
static Frame | magnitudeFrame (const Complex *frequencies, const unsigned int width, const unsigned int height, const unsigned int channels, const Scalar octaves=Scalar(5), const bool shift=true) |
| Creates a magnitude frame for a given set of frequencies. More...
|
|
static Frame | magnitudeFrame (const Frame &frame, const Scalar octaves, const bool shift, Worker *worker=nullptr) |
| Performs a Fourier transformation on a given frame (that is transformed into a grayscale frame before) and returns a magnitude frame for the resulting set of frequencies. More...
|
|
This class provides frame frequency analysis functions.
◆ frequencies2image()
static bool Ocean::CV::FrequencyAnalysis::frequencies2image |
( |
const Complex * |
frequencies, |
|
|
Frame & |
frame, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Applies an inverse Fourier analysis for given frequencies.
The frame type of the resulting frame must match with the given set of frequencies.
- Parameters
-
frequencies | The frequencies for which an inverse Fourier transformation will be applied, each channel must be provided as joined block of frequencies with frame.channels() * (frame.width() * frame.height()) elements, must be valid |
frame | Resulting frame that defines the resulting frame type, must be valid |
worker | Optional worker to distribute the computation |
- Returns
- True, if succeeded
◆ frequencies2image8BitPerChannel()
static void Ocean::CV::FrequencyAnalysis::frequencies2image8BitPerChannel |
( |
const Complex * |
frequencies, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const unsigned int |
framePaddingElements, |
|
|
uint8_t * |
frame, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Applies an inverse Fourier transformation for a given 1 channel 8 bit frame.
- Parameters
-
frequencies | The complex frequencies for which the inverse transformation will be applied |
width | The width of the frame in pixel, with range [1, infinity) |
height | The height of the frame in pixel, with range [1, infinity) |
channels | Number of interleaved frame channels, each channel is provided as joined block of frequencies, with range [1, infinity) |
framePaddingElements | The number of padding elements at the end of each frame row, in elements, with range [0, infinity) |
frame | Resulting frame data with interleaved data channels |
worker | Optional worker object to distribute the computation |
◆ image2frequencies() [1/2]
static bool Ocean::CV::FrequencyAnalysis::image2frequencies |
( |
const Frame & |
frame, |
|
|
Complex * |
frequencies, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Applies a Fourier transformation for a given frame.
- Parameters
-
frame | The frame for which the analysis is requested, must be valid |
frequencies | Resulting frequencies |
worker | Optional worker object to distribute the computation |
- Returns
- True, if succeeded
◆ image2frequencies() [2/2]
bool Ocean::CV::FrequencyAnalysis::image2frequencies |
( |
const Frame & |
frame, |
|
|
Complexes & |
frequencies, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
inlinestatic |
Applies a Fourier transformation for a given frame.
- Parameters
-
frame | The frame for which the analysis is requested, must be valid |
frequencies | Resulting frequencies, the number of resulting frequency components will be adjusted automatically |
worker | Optional worker object to distribute the computation |
- Returns
- True, if succeeded
◆ image2frequencies8BitPerChannel()
static void Ocean::CV::FrequencyAnalysis::image2frequencies8BitPerChannel |
( |
const uint8_t * |
frame, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const unsigned int |
framePaddingElements, |
|
|
Complex * |
frequencies, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Applies a Fourier transformation for a given 1 channel 8 bit frame.
- Parameters
-
frame | The frame for which the analysis is requested, must be valid |
width | The width of the frame in pixel, with range [1, infinity) |
height | The height of the frame in pixel, with range [1, infinity) |
channels | The number of interleaved frame channels, with range [1, infinity) |
framePaddingElements | The number of padding elements at the end of each frame row, in elements, with range [0, infinity) |
frequencies | Resulting frequencies, with channels * (width * height) elements, each channel will be provided as joined block of frequencies, must be valid |
worker | Optional worker object to distribute the computation |
◆ magnitudeFrame() [1/2]
static Frame Ocean::CV::FrequencyAnalysis::magnitudeFrame |
( |
const Complex * |
frequencies, |
|
|
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const Scalar |
octaves = Scalar(5) , |
|
|
const bool |
shift = true |
|
) |
| |
|
static |
Creates a magnitude frame for a given set of frequencies.
- Parameters
-
frequencies | The complex frequencies for which the magnitude frame will be created, each channel needs to be provided as joined block of frequencies, must be valid |
width | The width of the resulting frame (and also the original frame) in pixel |
height | The height of the resulting frame (and also the original frame) in pixel |
channels | The number of channels the frequencies have, with range [1, infinity) |
octaves | Number of octaves that will be displayed |
shift | True, to create a shifted magnitude frame |
- Returns
- Resulting magnitude frame
- See also
- FourierTransformation::shiftHalfDimension2(), FrameNormalizer::normalizeLogarithmToUint8().
◆ magnitudeFrame() [2/2]
static Frame Ocean::CV::FrequencyAnalysis::magnitudeFrame |
( |
const Frame & |
frame, |
|
|
const Scalar |
octaves, |
|
|
const bool |
shift, |
|
|
Worker * |
worker = nullptr |
|
) |
| |
|
static |
Performs a Fourier transformation on a given frame (that is transformed into a grayscale frame before) and returns a magnitude frame for the resulting set of frequencies.
- Parameters
-
frame | The frame for which the magnitude frame will be determined |
octaves | Number of octaves that will be displayed |
shift | True, to create a shifted magnitude frame |
worker | Optional worker object to distribute the computation |
- Returns
- Resulting magnitude frame
- See also
- FourierTransformation::shiftHalfDimension2(), FrameNormalizer::normalizeLogarithmToUint8().
The documentation for this class was generated from the following file: