Syntax:bool Imagick::inverseFourierTransformImage (imagickObject $imagick, float $complement)
Parameters:This function takes two parameters as above and described below: - $imagick: Specifies a second image to be combined with this to form a magnitude / phase pair or real / imaginary image.
- $padding:contains a boolean value that, if it is true, concatenates as an amplitude / phase pair an otherwise real / imaginary pair.
Return Value:This function returns TRUE on success. Exceptions:this function throws an ImagickException on error.The following programs illustrate the Imagick::inverseFourierTransformImage()function in PHP: Program 1:
// Create a new object Imagick
$imagick1
=
new
Imagick (
’ https://media.engineerforengineer.org/wp-content/uploads/engineerforengineer-13.png ’
);
$imagick2
=
new
Imagick (
’ https://media.engineerforengineer.org/ wp-content / uploads / 20190918234528 / colorize1.png ’
);
$imagick1
-> inverseFourierTransformImage (
$imagick2
, true);
// Show image
header (
"Content-Type: image / png"
);
echo
$imagick1
-> getImageBlob();
?>
Output: Program 2: < tbody>
// Create a new Imagick object
$imagick1
=
new
Imagick (
’ https://media.engineerforengineer.org/ wp-content / uploads / engineerforengineer-13.png ’
);
$imagick2
=
new
Imagick (
’ https://media.engineerforengineer.org/ wp-content / uploads / engineerforengineer-13.png ’
);
$imagick1
-> inverseFourierTransformImage (
$imagick2
, false);
// Show image
header (
"Content-Type: image / png"
);
echo
$imagick1
-> getImageBlob();
?>
Output: Link : https://www.php.net/manual/en/imagick.inversefouriertransformimage.php