Changeset 273 for trunk/src/pivlab.m


Ignore:
Timestamp:
Nov 17, 2011, 7:01:18 PM (13 years ago)
Author:
sommeria
Message:

GUI civ renovated with panels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pivlab.m

    r248 r273  
    6262end
    6363
    64 %% calculate correlations: MAINLOOP
     64%% calculate correlations: MAINLOOP on velocity vectors
    6565corrmax=0;
    6666sum_square=1;% default
    67 for ivec=1:nbvec
     67for ivec=1:nbvec 
    6868    iref=GridIndices(ivec,1);
    6969    jref=GridIndices(ivec,2);
     
    8282        end
    8383    end
    84     if ~test0
    85         image1_crop=image1(jref-iby2:jref+iby2,iref-ibx2:iref+ibx2);
    86         image2_crop=image2(jref+shifty-isy2:jref+shifty+isy2,iref+shiftx-isx2:iref+shiftx+isx2);
    87         image1_crop=image1_crop-mean(mean(image1_crop));
     84    if ~test0   
     85        image1_crop=image1(jref-iby2:jref+iby2,iref-ibx2:iref+ibx2);%extract a subimage (correlation box) from images 1 
     86        image2_crop=image2(jref+shifty-isy2:jref+shifty+isy2,iref+shiftx-isx2:iref+shiftx+isx2);%extract a larger subimage (search box) from image 2
     87        image1_crop=image1_crop-mean(mean(image1_crop));%substract the mean
    8888        image2_crop=image2_crop-mean(mean(image2_crop));
    8989        %reference: Oliver Pust, PIV: Direct Cross-Correlation
Note: See TracChangeset for help on using the changeset viewer.