title: Sense of zeropadding in a time domain
body: <p>I have the task related to Radon transform which contains a subtask which uses resampling by means of DFT. </p>
  
  <p>Let's consider the non-periodical discretized signal (Fig.1) (for example the string of pixels) having 515 pixels length. In my implementation for resampling contains following steps:</p>
  
  <ol>
  <li>Cyclic left shift (Fig.2).</li>
  <li>Add zeros to the center in order to the length of signal became 2^n (in our case 1024-515 = 509 zeros we must have add) (Fig. 3).</li>
  <li>Get DFT from this signal (Fig. 4).</li>
  <li>Cyclic right shift. (for shifting low frequencies to the center) (Fig.5)</li>
  </ol>
  
  <p>Fig.1
  <img src="https://i.stack.imgur.com/hEZY9.png" alt="Original image"></p>
  
  <p>Fig.2
  <img src="https://i.stack.imgur.com/DsUKh.png" alt="Cyclic left shift"></p>
  
  <p>Fig.3
  <img src="https://i.stack.imgur.com/Ojt40.png" alt="Zeropadded"></p>
  
  <p>Fig.4
  <img src="https://i.stack.imgur.com/2CpTK.png" alt="DFT Spectrum"></p>
  
  <p>Fig.5
  <img src="https://i.stack.imgur.com/xeqMY.png" alt="DFT back shifted"></p>
  
  <h2>The main question:</h2>
  
  <p>Why we must perform cyclic shift of the signal and add zeros exactly in the center? (I assumed what this made the signal periodic)
  Zeropadding makes interpolation DFT spectrum, is it correct? (I asked and someone says what it is not quite so)
  Maybe someone can explain in simple way what happens with signal after zeropadding.</p>
  
  <p>I have made some experiments in a Matlab and found out that any other sequence of actions can not give required result.</p>
  
  <p>Now let's consider two cases:</p>
  
  <p>a) (THIS CORRECT VARIANT) We has the non-periodical discretized signal (for example the string of pixels) which will be cyclic shifted to left and filled zeros in the center after that will be obtained DFT from this and to shift it back.
  <img src="https://i.stack.imgur.com/GbwHO.png" alt="enter image description here"></p>
  
  <p>b) We has the non-periodical discretized signal (for example the set strings of pixels) which will be filled zeros from left and right  after that will be obtained DFT from this.</p>
  
  <p><img src="https://i.stack.imgur.com/PUCAs.png" alt="enter image description here"></p>
  
  <p>What the difference these DFT spectrums?</p>
  
  <p>I have read some books but not found the answer of this zeropadding's case. It seems this can be found only by own experience.</p>
  
  <h1>Answer in book:</h1>
  
  <p>A. C. Kak and Malcolm Slaney, Principles of Computerized Tomographic Imaging, Society of Industrial and Applied Mathematics, 2001 on page 25</p>