Changeset 246 for trunk/src/pivlab.m


Ignore:
Timestamp:
Apr 28, 2011, 10:52:31 AM (13 years ago)
Author:
sommeria
Message:

thin plate shell (patch) introduced

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pivlab.m

    r244 r246  
    1414% image1:first image (matrix)
    1515% image2: second image (matrix)
    16 % ibx,iby: size of the correlation box along x and y (in px)
     16% ibx2,iby2: half size of the correlation box along x and y, in px (size=(2*iby2+1,2*ibx2+1)
     17% isx2,isy2: half size of the search box along x and y, in px (size=(2*isy2+1,2*isx2+1)
     18% shiftx, shifty: shift of the search box (in pixel index, yshift reversed)
    1719% step: mesh of the measurement points (in px)
    1820% subpixfinder=1 or 2 controls the curve fitting of the image correlation
     
    119121    xtable(ivec)=iref+vector(1)/2;% convec flow (velocity taken at the point middle from imgae1 and 2)
    120122    ytable(ivec)=jref+vector(2)/2;
    121     utable(ivec)=vector(1);
    122     vtable(ivec)=vector(2);
     123    utable(ivec)=vector(1)+shiftx;
     124    vtable(ivec)=vector(2)+shifty;
    123125end
    124126result_conv=result_conv*corrmax/(255*sum_square);% keep the last correlation matrix for output
Note: See TracChangeset for help on using the changeset viewer.