Changeset 910 for trunk/src/series


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

Location:
trunk/src/series
Files:
2 edited

Legend:

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

    r908 r910  
    130130            return
    131131        end
     132        if isfield(Data,'.Civ1_ImageA')
    132133        [PathCiv1_ImageA,Civ1_ImageA,FileExtA]=fileparts(Data.Civ1_ImageA);%look for the source image A
    133134        [PathCiv1_ImageB,Civ1_ImageB,FileExtA]=fileparts(Data.Civ1_ImageB);%look for the source image B
     135        end
    134136        if isfield(Data,'Civ2_ImageA')
    135137            [PathCiv2_ImageA,Civ2_ImageA,FileExtA]=fileparts(Data.Civ2_ImageA);
     
    137139        end
    138140        if size(Param.InputTable,1)==1
     141             if isfield(Data,'.Civ1_ImageA')
    139142            series('display_file_name',hhseries,Data.Civ1_ImageA,'append');%append the image series to the input list
    140         end
    141         [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ1_ImageA);
     143                    [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ1_ImageA);
    142144        [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaB]=fileparts_uvmat(Data.Civ1_ImageB);
     145             else
     146                 series('display_file_name',hhseries,Data.Civ2_ImageA,'append');%append the image series to the input list
     147                         [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaA]=fileparts_uvmat(Data.Civ2_ImageA);
     148        [RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt,NomTypeImaB]=fileparts_uvmat(Data.Civ2_ImageB);
     149             end
     150        end
     151
    143152        iview_image=2;%line # for the input images
    144153    case 'civxdata'% case of  civx data,
  • 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.