Changeset 182 for trunk/src/read_field.m
- Timestamp:
- Jan 23, 2011, 6:55:29 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r181 r182 120 120 ParamOut.FieldName='image'; 121 121 ParamOut.FieldList={'image'}; 122 Npz=1;%default 122 123 switch FileType 123 124 case 'movie' … … 151 152 FieldName='image'; 152 153 end 153 Npz=1;%default154 154 npxy=size(A); 155 ParamOut.Npx=npxy(2);% display image size on the interface156 ParamOut.Npy=npxy(1);157 155 Rangx=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 158 156 Rangy=[npxy(1)-0.5 0.5]; % … … 165 163 Field.AY=[npxy(1)-0.5 0.5]; 166 164 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); 167 167 else 168 168 Field.NbDim=3; … … 172 172 Field.AY=[npxy(2)-0.5 0.5]; 173 173 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); 174 176 end 175 177 else … … 177 179 Field.AY=[npxy(1)-0.5 0.5]; 178 180 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); 179 183 end 180 184 Field.A=A;
Note: See TracChangeset
for help on using the changeset viewer.