Changeset 387 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 4, 2012, 3:31:30 PM (9 years ago)
Author:
sommeria
Message:

several bugs corrected: mask, color image...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r386 r387  
    26472647        end
    26482648        siz=size(UvData.XmlData{2}.Time);
    2649         if siz(1)>=max(num_i1,num_i2) && siz(2)>=max(num_j1,num_j2)
     2649        if ~isempty(num_i1) && siz(1)>=max(num_i1,num_i2) && siz(2)>=max(num_j1,num_j2)
    26502650            abstime_1=(UvData.XmlData{2}.Time(num_i1,num_j1)+UvData.XmlData{2}.Time(num_i2,num_j2))/2;%overset the time read from files
    26512651        end
     
    42034203                    end
    42044204                end
    4205                 if isfield(ObjectData,'Coord')&& isfield(ObjectData,'Style')
     4205                if isfield(ObjectData,'Coord')&& isfield(ObjectData,'Type')
    42064206                    if isequal(ObjectData.Type,'polygon')
    42074207                        X=ObjectData.Coord(:,1);
     
    42484248    masknumber=num2str(length(list));
    42494249    maskindex=get(handles.masklevel,'Value');
    4250     mask_name=fullfile_uvmat(RootPath,SubDir,[RootFile '_' masknumber 'mask'],'.png','_1',maskindex);
     4250    mask_name=fullfile_uvmat(RootPath,'',[RootFile '_' masknumber 'mask'],'.png','_1',maskindex);
    42514251    %mask_name=name_generator([filebase '_' masknumber 'mask'],maskindex,1,'.png','_i');
    42524252    imflag=uint8(255*(0.392+0.608*flag));% =100 for flag=0 (vectors not computed when 20<imflag<200)
     
    42704270    end
    42714271    set(handles.ListObject,'Value',1)
    4272     set(handles.ListObject,'Max',1)
     4272%     set(handles.ListObject,'Max',1)
    42734273end
    42744274
     
    44214421data.TypeMenu={'polygon'};
    44224422data.ProjMode='mask_inside';%default
    4423 data.ProjMenu={'mask_inside';'mask_outside'};
     4423data.ProjModeMenu={'mask_inside';'mask_outside'};
    44244424create_object(data,handles)
    44254425
Note: See TracChangeset for help on using the changeset viewer.