To run the code, you need to specify the input 1D array name:
% FFT1D --in in.array
The code will then test to see that:
and the types of image processing operations you would like performed:
% ImageProcessing --in in.[bmp/jpeg/jpg] --out out.[bmp/jpeg/jpg]
--smooth <standard deviation>: Smooth the image using a Gaussian with the specified standard deviation.
--gradient: Compute the boundary of the image by computing the magnitude of the gradient. To do this, you will have to you the FFT to separately compute the partial derivatives with respect to x and y, and then set the value of a pixel in the output image equal to the size of the gradient at that point.
--cLaplacian: Compute the boundary of the image by computing the image Laplacian.
--dLaplacian <standard deviation>: Compute the boundary of the image by computing the discrete image Laplacian. To do this you will have to compuate a smoothed version of the image using the specified standard deviation, and then subtract off the original pixel values from the smoothed ones.
--sharpen <standard deviation>: Sharpen the image using a Gaussian sharpening filter. This is, in effect, the process of undoing a Gaussian smoothing with a fixed standard deviation.