Changeset 452 for trunk/src/read_field.m
- Timestamp:
- Jun 12, 2012, 8:53:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r450 r452 164 164 %% case of image 165 165 if ~isempty(A) 166 if isstruct(ParamOut) 166 167 ParamOut.FieldName='image'; 167 168 ParamOut.FieldList={'image'}; 169 end 168 170 Npz=1;%default 169 171 npxy=size(A); … … 178 180 Field.AY=[npxy(1)-0.5 0.5]; 179 181 Field.AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 182 if isstruct(ParamOut) 180 183 ParamOut.Npx=npxy(2);% display image size on the interface 181 184 ParamOut.Npy=npxy(1); 185 end 182 186 Field.VarAttribute{3}.Mesh=1; 183 187 else … … 188 192 Field.AY=[npxy(2)-0.5 0.5]; 189 193 Field.AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers 194 if isstruct(ParamOut) 190 195 ParamOut.Npx=npxy(3);% display image size on the interface 191 196 ParamOut.Npy=npxy(2); 197 end 192 198 Field.VarAttribute{4}.Mesh=1; 193 199 end
Note: See TracChangeset
for help on using the changeset viewer.