Skip to content

Commit

Permalink
Merge pull request #292 from bacaron/patch-3
Browse files Browse the repository at this point in the history
Update dtiRoiToImg.m
  • Loading branch information
jyeatman authored May 28, 2018
2 parents de3d740 + b55cda4 commit 8c402f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrDiffusion/roi/dtiRoiToImg.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
end

sz = diff(ceil(mrAnatXformCoords(inv(imgXform), bb)))+1;
roiImg = false(sz);
roiImg = false(abs(sz));
% Remove coords outside the bounding box
badCoords = coords(:,1)<bb(1,1) | coords(:,1)>bb(2,1) ...
| coords(:,2)<bb(1,2) | coords(:,2)>bb(2,2) ...
Expand Down

0 comments on commit 8c402f9

Please sign in to comment.