Skip to content

Commit

Permalink
fix variable mess in Ax.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AnderBiguri authored and AnderBiguri committed Apr 25, 2017
1 parent 2110a52 commit d9b798d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Ax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ void mexFunction(int nlhs , mxArray *plhs[],
}
////////////////////////////
//4rd argument is interpolated or ray-voxel
bool interpolated=false;
bool rayvoxel=false;
if (nrhs==4){
if ( mxIsChar(prhs[3]) != 1)
mexErrMsgIdAndTxt( "CBCT:MEX:Ax:InvalidInput","4rd input shoudl be a string");
Expand All @@ -86,8 +86,8 @@ void mexFunction(int nlhs , mxArray *plhs[],
mexErrMsgIdAndTxt( "CBCT:MEX:Ax:InvalidInput","4rd input shoudl be either 'interpolated' or 'ray-voxel'");
else
// If its not ray-voxel, its "interpolated"
if (~strcmp(krylov,"ray-voxel"))
interpolated=true;
if (strcmp(krylov,"ray-voxel"))
rayvoxel=true;
}
///////////////////////// 3rd argument: angle of projection.

Expand Down Expand Up @@ -473,13 +473,13 @@ void mexFunction(int nlhs , mxArray *plhs[],
// call the real function

if (coneBeam){
if (interpolated){
if (rayvoxel){
siddon_ray_projection(img,geo,result,alphas,nalpha);
}else{
interpolation_projection(img,geo,result,alphas,nalpha);
}
}else{
if (interpolated){
if (rayvoxel){
// mexErrMsgIdAndTxt( "CBCT:MEX:Ax:debug",
// "ray-voxel intersection is still unavailable for parallel beam, as there are some bugs on it.");
siddon_ray_projection_parallel(img,geo,result,alphas,nalpha);
Expand Down

0 comments on commit d9b798d

Please sign in to comment.