Changeset 182 for trunk/src/read_field.m


Ignore:
Timestamp:
Jan 23, 2011, 6:55:29 PM (13 years ago)
Author:
sommeria
Message:

introduction of a button OK to close the status GUI in civ, bug repair for volume images .vol (uvmat and set_object)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/read_field.m

    r181 r182  
    120120    ParamOut.FieldName='image';
    121121    ParamOut.FieldList={'image'};
     122    Npz=1;%default
    122123    switch FileType
    123124        case 'movie'
     
    151152            FieldName='image';
    152153    end
    153     Npz=1;%default
    154154    npxy=size(A);
    155     ParamOut.Npx=npxy(2);% display image size on the interface
    156     ParamOut.Npy=npxy(1);
    157155    Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
    158156    Rangy=[npxy(1)-0.5 0.5]; %
     
    165163            Field.AY=[npxy(1)-0.5 0.5];
    166164            Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
     165            ParamOut.Npx=npxy(2);% display image size on the interface
     166            ParamOut.Npy=npxy(1);
    167167        else
    168168            Field.NbDim=3;
     
    172172            Field.AY=[npxy(2)-0.5 0.5];
    173173            Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers
     174            ParamOut.Npx=npxy(3);% display image size on the interface
     175            ParamOut.Npy=npxy(2);
    174176        end
    175177    else
     
    177179        Field.AY=[npxy(1)-0.5 0.5];
    178180        Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers
     181        ParamOut.Npx=npxy(2);% display image size on the interface
     182        ParamOut.Npy=npxy(1);
    179183    end
    180184    Field.A=A;
Note: See TracChangeset for help on using the changeset viewer.