Skip to content

Commit c0e856e

Browse files
committed
fix on datacursor indices
1 parent b2590d6 commit c0e856e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

matRad/gui/widgets/matRad_ViewingWidget.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -996,15 +996,11 @@ function UpdatePlot(this)
996996
cubePos(this.plane) = this.slice;
997997
cubePos(1:end ~= this.plane) = fliplr(pos);
998998
cubeIx = round(cubePos);
999-
vCubeIdx = [cubeIx(2),cubeIx(1),cubeIx(3)];
1000999
%Here comes the index permutation stuff
10011000
%Cube Index
1002-
cursorText{end+1,1} = ['Cube Index: ' mat2str(vCubeIdx)];
1001+
cursorText{end+1,1} = ['Cube Index: ' mat2str(cubeIx)];
10031002
%Space Coordinates
1004-
coords = zeros(1,3);
1005-
coords(1) = ct.y(cubePos(2));
1006-
coords(2) = ct.x(cubePos(1));
1007-
coords(3) = ct.z(cubePos(3));
1003+
coords = matRad_cubeIndex2worldCoords(cubeIx,ct);
10081004
cursorText{end+1,1} = ['Space Coordinates: ' mat2str(coords,5) ' mm'];
10091005

10101006
ctVal = ct.cubeHU{1}(cubeIx(1),cubeIx(2),cubeIx(3));

0 commit comments

Comments
 (0)