Changeset 782 for trunk/src/read_field.m
- Timestamp:
- Jun 3, 2014, 8:10:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/read_field.m
r769 r782 234 234 Field.NbDim=2;%default 235 235 Field.AName='image'; 236 Field.ListVarName={' AY','AX','A'}; %236 Field.ListVarName={'Coord_y','Coord_x','A'}; % 237 237 if ndims(A)==3 238 238 if Npz==1;%color 239 Field.VarDimName={' AY','AX',{'AY','AX','rgb'}}; %240 Field. AY=[npxy(1)-0.5 0.5];241 Field. AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers239 Field.VarDimName={'Coord_y','Coord_x',{'Coord_y','Coord_x','rgb'}}; % 240 Field.Coord_y=[npxy(1)-0.5 0.5]; 241 Field.Coord_x=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 242 242 if isstruct(ParamOut) 243 243 ParamOut.Npx=npxy(2);% display image size on the interface … … 248 248 Field.NbDim=3; 249 249 Field.ListVarName=['AZ' Field.ListVarName]; 250 Field.VarDimName={'AZ',' AY','AX',{'AZ','AY','AX'}};250 Field.VarDimName={'AZ','Coord_y','Coord_x',{'AZ','Coord_y','Coord_x'}}; 251 251 Field.AZ=[npxy(1)-0.5 0.5]; 252 Field. AY=[npxy(2)-0.5 0.5];253 Field. AX=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers252 Field.Coord_y=[npxy(2)-0.5 0.5]; 253 Field.Coord_x=[0.5 npxy(3)-0.5]; % coordinates of the first and last pixel centers 254 254 if isstruct(ParamOut) 255 255 ParamOut.Npx=npxy(3);% display image size on the interface … … 259 259 end 260 260 else 261 Field.VarDimName={' AY','AX',{'AY','AX'}}; %262 Field. AY=[npxy(1)-0.5 0.5];263 Field. AX=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers261 Field.VarDimName={'Coord_y','Coord_x',{'Coord_y','Coord_x'}}; % 262 Field.Coord_y=[npxy(1)-0.5 0.5]; 263 Field.Coord_x=[0.5 npxy(2)-0.5]; % coordinates of the first and last pixel centers 264 264 ParamOut.Npx=npxy(2);% display image size on the interface 265 265 ParamOut.Npy=npxy(1);
Note: See TracChangeset
for help on using the changeset viewer.