Changeset 246 for trunk/src/pivlab.m
- Timestamp:
- Apr 28, 2011, 10:52:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pivlab.m
r244 r246 14 14 % image1:first image (matrix) 15 15 % 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) 17 19 % step: mesh of the measurement points (in px) 18 20 % subpixfinder=1 or 2 controls the curve fitting of the image correlation … … 119 121 xtable(ivec)=iref+vector(1)/2;% convec flow (velocity taken at the point middle from imgae1 and 2) 120 122 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; 123 125 end 124 126 result_conv=result_conv*corrmax/(255*sum_square);% keep the last correlation matrix for output
Note: See TracChangeset
for help on using the changeset viewer.