"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "macros/sip_fftshift.sci" between
sip-0.5.6.tar.gz and sip-0.12.1.tar.gz

About: SIP (Scilab Image Processing) toolbox to do imaging tasks such as filtering, blurring, edge detection, thresholding, histogram manipulation, segmentation, mathematical morphology, color image processing, etc.

sip_fftshift.sci  (sip-0.5.6):sip_fftshift.sci  (sip-0.12.1)
skipping to change at line 13 skipping to change at line 13
// Swap arrays (used with fft). // Swap arrays (used with fft).
// Does the same thing as M4t1ab fftshift. // Does the same thing as M4t1ab fftshift.
// Fun argument may be used to change the way the shuffling is done // Fun argument may be used to change the way the shuffling is done
// with deff('sel=fun(sk)','c=floor(sk/2);sel=[c+1:sk,1:c]') // with deff('sel=fun(sk)','c=floor(sk/2);sel=[c+1:sk,1:c]')
// //
// AUTHOR // AUTHOR
// Ricardo Fabbri, with help from Scilab Group. // Ricardo Fabbri, with help from Scilab Group.
// //
// $Revision: 1.2 $ $Date: 2009-03-29 21:34:48 $ // $Revision: 1.2 $ $Date: 2009-03-29 21:34:48 $
warning('This function is deprecated. Use fftshift from Scilab instead.');
warning('This function might be removed in future versions of SIP.');
if argn(2)<2 then job='all',end if argn(2)<2 then job='all',end
if argn(2)<3 then if argn(2)<3 then
deff('sel=fun(sk)','c=ceil(sk/2);sel=[c+1:sk,1:c]') deff('sel=fun(sk)','c=ceil(sk/2);sel=[c+1:sk,1:c]')
end end
if job=='r' then job=1,elseif job=='c' then job='2',end if job=='r' then job=1,elseif job=='c' then job='2',end
ind=list() ind=list()
if job=='all' then if job=='all' then
for sk=size(x),ind($+1)=fun(sk),end for sk=size(x),ind($+1)=fun(sk),end
else else
for sk=size(x),ind($+1)=:,end;ind(job)=fun(sz(job)) for sk=size(x),ind($+1)=:,end;ind(job)=fun(sz(job))
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS