Skip to content
Snippets Groups Projects
Commit de29e52e authored by Nicola Vigano's avatar Nicola Vigano
Browse files

detgeo: fixed a bug in structure initialization

parent 12af71de
No related branches found
No related tags found
No related merge requests found
function detgeo = gtGeoComputeExtraDetgeoProperties(detgeo)
detgeo.detscaleu = 1 / detgeo.pixelsizeu;
detgeo.detscalev = 1 / detgeo.pixelsizev;
detgeo.detnorm = gtMathsCross(detgeo.detdiru, detgeo.detdirv); % unit vector
detgeo.detorig = gtGeoDetOrig(detgeo);
......
......@@ -14,9 +14,6 @@ function [detgeo, labgeo] = gtGeoConvertLegacyLabgeo2Detgeo(labgeo)
detgeo.detanglemin = labgeo.detanglemin;
detgeo.detanglemax = labgeo.detanglemax;
detgeo.detscaleu = 1 / detgeo.pixelsizeu;
detgeo.detscalev = 1 / detgeo.pixelsizev;
detgeo = gtGeoComputeExtraDetgeoProperties(detgeo);
% Removing duplicates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment