bpdq_fft_subsample_t

PURPOSE ^

bpdq_fft_subsample_t : Transpose of operation bpdq_fft_subsample

SYNOPSIS ^

function r=bpdq_fft_subsample_t(x,ind,dim)

DESCRIPTION ^

 bpdq_fft_subsample_t : Transpose of operation bpdq_fft_subsample

 r=bpdq_fft_subsample_t(x,ind,dim)
 Computes transpose of fft_subsample

 Inputs:
 x - input signal (complex vector same size as ind)
 ind - indices of desired Fourier coefficients
 dim - image size
 
 Outputs:
 r - returned transpose, will be vector of size prod(dim) x 1

 This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer)
 Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with
 this library) (See the notice at the end of the file.)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % bpdq_fft_subsample_t : Transpose of operation bpdq_fft_subsample
0002 %
0003 % r=bpdq_fft_subsample_t(x,ind,dim)
0004 % Computes transpose of fft_subsample
0005 %
0006 % Inputs:
0007 % x - input signal (complex vector same size as ind)
0008 % ind - indices of desired Fourier coefficients
0009 % dim - image size
0010 %
0011 % Outputs:
0012 % r - returned transpose, will be vector of size prod(dim) x 1
0013 %
0014 % This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer)
0015 % Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with
0016 % this library) (See the notice at the end of the file.)
0017 
0018 function r=bpdq_fft_subsample_t(x,ind,dim)
0019   N=length(x);
0020   rdft=zeros(dim);
0021   rdft(ind)=x;
0022   r=ifft2(ifftshift(rdft));
0023   r=r*prod(dim); % fft normalization
0024   r=r(:);
0025   
0026 % The BPDQ Toolbox is free software: you can redistribute it and/or modify
0027 % it under the terms of the GNU General Public License as published by
0028 % the Free Software Foundation, either version 3 of the License, or
0029 % (at your option) any later version.
0030 %
0031 % The BPDQ Toolbox is distributed in the hope that it will be useful,
0032 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0033 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0034 % GNU General Public License for more details.
0035 %
0036 % You should have received a copy of the GNU General Public License
0037 % along with The BPDQ Toolbox.  If not, see <http://www.gnu.org/licenses/>.

Generated on Mon 06-Jul-2009 14:16:10 by m2html © 2003