Changeset 1088 for trunk/src


Ignore:
Timestamp:
Jan 15, 2021, 11:23:55 PM (3 years ago)
Author:
sommeria
Message:

particle_detect introduced, load mt files

Location:
trunk/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_file_info.m

    r1071 r1088  
    6969    case '.fig'
    7070        FileInfo.FileType='figure';
     71    case '.mat'
     72        FileInfo.FileType='mat';
    7173    case {'.xml','.xls','.dat','.bin'}
    7274        FileInfo.FileType=regexprep(FileExt,'^.','');% eliminate the dot of the extension;
  • trunk/src/read_field.m

    r1071 r1088  
    239239            Field.VarAttribute=[Field.VarAttribute(1:NbCoord) VarAttribute];
    240240        end
    241        
     241    case 'mat'
     242         Field=load(FileName); 
    242243    case 'video'
    243244        if strcmp(class(ParamIn),'VideoReader')
  • trunk/src/transform_field/ima_find_particles.m

    r1071 r1088  
    4848Mask(:,1:SizePart)=0;
    4949Mask(:,end-SizePart:end)=0;
    50 [Js,Is]=find(A<AbsThreshold &abs(double(DataIn.A(:,:,1))-double(DataIn.A(:,:,3)))<20 & Mask==1);%indices (I,J) of dark pixels
     50[Js,Is]=find(A<AbsThreshold & Mask==1);%indices (I,J) of dark pixels
    5151X=zeros(size(Is));
    5252Y=zeros(size(Js));
  • trunk/src/uvmat.m

    r1086 r1088  
    21752175        editxml(fileinput);
    21762176        return
     2177    case 'mat'% matlab data file
     2178        global Data_uvmat
     2179Data_uvmat.Field=load(fileinput);
     2180evalin('base','global Data_uvmat')%make CurData global in the workspace
     2181disp('Data_uvmat.Field=')
     2182evalin('base','Data_uvmat.Field') %display CurData in the workspace
     2183commandwindow; %brings the Matlab command window to the front
     2184return
    21772185    otherwise
    21782186        set(handles_RootPath,'String',RootPath);
Note: See TracChangeset for help on using the changeset viewer.