Ignore:
Timestamp:
Jun 13, 2015, 7:20:37 PM (9 years ago)
Author:
sommeria
Message:

bugs corrected in fix in civ_series. vectors set to 0 inside mask

File:
1 edited

Legend:

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

    r908 r910  
    10241024            if sizemask > 1/2% eliminate point if more than half of the correlation box is masked
    10251025                F(ivec)=3; %
     1026                utable(ivec)=0;
     1027                vtable(ivec)=0;
    10261028            else
    10271029                image1_crop=image1_crop.*~mask1_crop;% put to zero the masked pixels (mask1_crop='true'=1)
     
    10421044                F(ivec)=3;
    10431045            end
    1044             if F(ivec)~=3
     1046            if F(ivec)==3
     1047                utable(ivec)=0;
     1048                vtable(ivec)=0;
     1049            else
    10451050                %mask
    10461051                if checkmask
     
    10991104                    catch ME
    11001105                        F(ivec)=3;
     1106                        disp(ME.message)
    11011107                    end
    11021108                else
     
    11271133%http://urapiv.wordpress.com
    11281134peaky = y;
    1129 if y <= npy-1 && y >= 1
     1135if y <= npy-1 && y > 1
    11301136    f0 = log(result_conv(y,x));
    11311137    f1 = log(result_conv(y-1,x));
     
    11361142end
    11371143peakx=x;
    1138 if x <= npx-1 && x >= 1
     1144if x <= npx-1 && x > 1
    11391145    f0 = log(result_conv(y,x));
    11401146    f1 = log(result_conv(y,x-1));
Note: See TracChangeset for help on using the changeset viewer.