diff --git a/zUtil_TomoUtils/GtVolView.m b/zUtil_TomoUtils/GtVolView.m index fc7afe9c7a1022b0142515068ad0aad82df63b11..af25c413f4dc2d0f8238605bb513a04ac254d4d7 100644 --- a/zUtil_TomoUtils/GtVolView.m +++ b/zUtil_TomoUtils/GtVolView.m @@ -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