Changeset 271


Ignore:
Timestamp:
Nov 17, 2011, 3:23:43 PM (9 years ago)
Author:
gostiaux
Message:

Bug for multi-tif images removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r258 r271  
    713713end
    714714if isfield(imainfo,'Width') && isfield(imainfo,'Height')
    715     set(handles.npx,'String',num2str(imainfo.Width));%fills nbre of pixels x box
    716     set(handles.npy,'String',num2str(imainfo.Height));%fills nbre of pixels x box
     715    if length(imainfo)>1
     716        set(handles.npx,'String',num2str(imainfo(1).Width));%fills nbre of pixels x box
     717        set(handles.npy,'String',num2str(imainfo(1).Height));%fills nbre of pixels x box
     718    else
     719        set(handles.npx,'String',num2str(imainfo.Width));%fills nbre of pixels x box
     720        set(handles.npy,'String',num2str(imainfo.Height));%fills nbre of pixels x box
     721    end
    717722else
    718723    set(handles.npx,'String','');%fills nbre of pixels x box
Note: See TracChangeset for help on using the changeset viewer.