Changeset 629
- Timestamp:
- May 3, 2013, 11:09:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/proj_field.m
r625 r629 937 937 938 938 %% reproduce initial plane position and angle 939 if isfield(FieldData,'PlaneCoord')&&length(FieldData.PlaneCoord)==3 940 if length(ProjData. ObjectCoord)==3% if the projection plane has a z coordinate941 if ~isequal(ProjData.PlaneCoord(3),ProjData. ObjectCoord) %check the consistency with the z coordinate of the field plane (set by calibration)939 if isfield(FieldData,'PlaneCoord')&&length(FieldData.PlaneCoord)==3&& isfield(ProjData,'ProjObjectCoord') 940 if length(ProjData.ProjObjectCoord)==3% if the projection plane has a z coordinate 941 if ~isequal(ProjData.PlaneCoord(3),ProjData.ProjObjectCoord) %check the consistency with the z coordinate of the field plane (set by calibration) 942 942 errormsg='inconsistent z position for field and projection plane'; 943 943 return 944 944 end 945 945 else % the z coordinate is set only by the field plane (by calibration) 946 ProjData. ObjectCoord(3)=FieldData.PlaneCoord(3);946 ProjData.ProjObjectCoord(3)=FieldData.PlaneCoord(3); 947 947 end 948 948 if isfield(FieldData,'PlaneAngle') 949 if isfield(ProjData,' ObjectAngle')950 if ~isequal(FieldData.PlaneAngle,ProjData. ObjectAngle) %check the consistency with the z coordinate of the field plane (set by calibration)949 if isfield(ProjData,'ProjObjectAngle') 950 if ~isequal(FieldData.PlaneAngle,ProjData.ProjObjectAngle) %check the consistency with the z coordinate of the field plane (set by calibration) 951 951 errormsg='inconsistent plane angle for field and projection plane'; 952 952 return 953 953 end 954 954 else 955 ProjData. ObjectAngle=FieldData.PlaneAngle;955 ProjData.ProjObjectAngle=FieldData.PlaneAngle; 956 956 end 957 957 end
Note: See TracChangeset
for help on using the changeset viewer.