I was given the original image and I need to produce Image 1. Does anybody know how I would go about this? I am on MATLAB, but I am more interested in the theory behind this.

Original Image

enter image description here

**Processed Image **

enter image description here

NOTE How would you achieve this through convolution of the ffts of the image and a sine wave along the vertical axis?

  • $\begingroup$ Your image is already on the Internet. Too late $\endgroup$ Nov 29 '15 at 20:09

The image seems to be modulated, namely multiplied by Harmonic Signal along its columns.

This is the MATLAB Code:

mInputImage = im2double(imread('2vE0G.png'));
numRows = size(mInputImage, 1);
numCols = size(mInputImage, 2);

signalFreq = floor(numRows / 1.25);

vModulationSignal = 1 + (0.5 * cos(2 * pi * (signalFreq / numRows) * [0:(numRows - 1)].'));

mOutputImage = bsxfun(@times, mInputImage, vModulationSignal);


This is the result:

enter image description here

You can play with the parameters.


  • $\begingroup$ What value was modulated? was it the magnitude? $\endgroup$
    – SDG
    Nov 28 '15 at 18:10
  • $\begingroup$ The values of the pixels. I will try to create a MATLAB Example. $\endgroup$
    – Royi
    Nov 28 '15 at 22:46
  • $\begingroup$ Should I be expecting this example soon? $\endgroup$
    – SDG
    Nov 29 '15 at 6:14
  • $\begingroup$ I added MATLAB Code + Result. Enjoy... $\endgroup$
    – Royi
    Nov 29 '15 at 19:36
  • $\begingroup$ would this also be possible by let's say by creating the 2D Discrete Space Time Fourier Transformation of the sin wave along just the vertical axis and then multiplying this with the 2D Discrete Space Time Fourier Transformation of the Image itself and using Inverse fft, getting back the resultant image? $\endgroup$
    – SDG
    Nov 29 '15 at 21:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.