Changeset 883 for trunk/src/series/civ_series.m
- Timestamp:
- Mar 13, 2015, 8:19:39 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_series.m
r880 r883 1036 1036 yi=(1:mesh:size(image1_crop,1))'; 1037 1037 [XI,YI]=meshgrid(xi-ceil(size(image1_crop,2)/2),yi-ceil(size(image1_crop,1)/2)); 1038 XIant=XI-par_civ.DUDX(ivec)*XI -par_civ.DUDY(ivec)*YI+ceil(size(image1_crop,2)/2);1039 YIant=YI -par_civ.DVDX(ivec)*XI-par_civ.DVDY(ivec)*YI+ceil(size(image1_crop,1)/2);1038 XIant=XI-par_civ.DUDX(ivec)*XI+par_civ.DUDY(ivec)*YI+ceil(size(image1_crop,2)/2); 1039 YIant=YI+par_civ.DVDX(ivec)*XI-par_civ.DVDY(ivec)*YI+ceil(size(image1_crop,1)/2); 1040 1040 image1_crop=interp2(image1_crop,XIant,YIant); 1041 1041 image1_crop(isnan(image1_crop))=0; … … 1044 1044 image2_crop=interp2(image2_crop,xi,yi,'*spline'); 1045 1045 image2_crop(isnan(image2_crop))=0; 1046 %par_civ.CorrSmooth=3;%%%%%%%%%%%%%%%%%%% 1047 %% 1046 par_civ.CorrSmooth=2;% use SUBPIX2DGAUSS (take into account more points near the max) 1048 1047 end 1049 1048 sum_square=sum(sum(image1_crop.*image1_crop));
Note: See TracChangeset
for help on using the changeset viewer.