<?php
$filename 
"mymrc.mrc";
$src_mrc mrcread($filename);

// --- Mask the strong component at 0
$mask=10// --- represent the radius of the mask 
mrcfftw($src_mrc$mask);

// --- scale image 
$densitymax 255
list(
$pmin$pmax) = mrcgetscale($src_mrc$densitymax);
$img mrctoimage($src_mrc,$pmin,$pmax);

// --- display fft as a png
mrcdestroy($src_mrc);
header("Content-type: image/x-png");
imagepng($img);
imagedestroy($img);
?>