Ignore:
Timestamp:
Feb 23, 2015, 10:17:04 PM (10 years ago)
Author:
sommeria
Message:

stereo_civ and civ2vel_3C updated, spline introduced for civ_series:deformation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_series.m

    r876 r878  
    324324%%%%% MAIN LOOP %%%%%%
    325325maskname='';% initiate the mask name
     326tic;
    326327for ifield=1:NbField
    327328    if ~isempty(RUNHandle)% update the waitbar in interactive mode with GUI series  (checkrun=1)
     
    852853    end
    853854end
     855disp(['ellapsed time ' num2str(toc) ' s'])
    854856
    855857% 'civ': function piv.m adapted from PIVlab http://pivlab.blogspot.com/
     
    10241026                XIant=XI-par_civ.DUDX(ivec)*XI-par_civ.DUDY(ivec)*YI+ceil(size(image1_crop,2)/2);
    10251027                YIant=YI-par_civ.DVDX(ivec)*XI-par_civ.DVDY(ivec)*YI+ceil(size(image1_crop,1)/2);
    1026                         image1_crop_1=image1_crop;
    10271028                image1_crop=interp2(image1_crop,XIant,YIant);
    1028                         image1_crop_2=image1_crop;
    10291029                image1_crop(isnan(image1_crop))=0;
    1030                   image1_crop_3=image1_crop;
    10311030                xi=(1:mesh:size(image2_crop,2));
    10321031                yi=(1:mesh:size(image2_crop,1))';
    1033                 image2_crop=interp2(image2_crop,xi,yi);
     1032                image2_crop=interp2(image2_crop,xi,yi,'*spline');
    10341033                image2_crop(isnan(image2_crop))=0;
    1035                 par_civ.CorrSmooth=3;
     1034                %par_civ.CorrSmooth=3;%%%%%%%%%%%%%%%%%%%
    10361035                %%
    10371036            end
Note: See TracChangeset for help on using the changeset viewer.