(PECL imagick 3 >= 3.3.0)
Imagick::forwardFourierTransformImage — Implements the discrete Fourier transform (DFT)
Implements the discrete Fourier transform (DFT) of the image either as a magnitude / phase or real / imaginary image pair.
magnitude
If true, return as magnitude / phase pair otherwise a real / imaginary image pair.
Returns true
on success.
Example #1 Imagick::forwardFourierTransformImage()
<?php
//Utility function for forwardTransformImage
function createMask() {
$draw = new \ImagickDraw();
$draw->setStrokeOpacity(0);
$draw->setStrokeColor('rgb(255, 255, 255)');
$draw->setFillColor('rgb(255, 255, 255)');
//Draw a circle on the y-axis, with it's centre