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

GtVolView: fixed error with 2D images

parent e4161e01
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,8 @@ classdef GtVolView < GtBaseGuiElem
point = round(point);
end
% At the border, rounding gives a wrong pixel position
point = min(point, size(obj.conf.vol));
[vol_size(1), vol_size(2), vol_size(3)] = size(obj.conf.vol);
point = min(point, vol_size);
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