summaryrefslogtreecommitdiffstats
path: root/matlab/tools/astra_geom_postalignment.m
blob: 4115af2b05b349944090114afd5ae9c940c19948 (plain)
1
2
3
4
5
6
7
8
9
10
11
function proj_geom = astra_geom_postalignment(proj_geom, factor)

	if strcmp(proj_geom.type,'fanflat_vec')
		proj_geom.Vectors(:,3:4) = proj_geom.Vectors(:,3:4) + factor * proj_geom.Vectors(:,5:6);
		
	elseif strcmp(proj_geom.type,'cone_vec') || strcmp(proj_geom.type,'parallel3d_vec')
		proj_geom.Vectors(:,4:6) = proj_geom.Vectors(:,4:6) + factor * proj_geom.Vectors(:,7:9);

	else
		error('Projection geometry not suited for postalignment correction.')
	end