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

Fixed border pixel error in GtVolView

parent 8759f5d5
No related branches found
No related tags found
No related merge requests found
......@@ -244,6 +244,8 @@ classdef GtVolView < GtBaseGuiElem
% GTVOLVIEW/GET3DPIXELINFO Returns the value and the point where the
% pointer is now over in respect to the volume stored in the object
point = round(obj.get3DPixelInfo());
% At the border, rounding gives a wrong pixel position
point = min(point, size(obj.conf.vol));
value = obj.getVolValue(point);
end
end
......
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