Skip to content

Commit

Permalink
fix passes ct struct instead of ct.cubeHU to matRad_plotVoiContourSlice
Browse files Browse the repository at this point in the history
  • Loading branch information
amitantony committed Mar 23, 2023
1 parent cb6b04a commit bcbc8b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plotting/matRad_plotVoiContourSlice.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
C = cst{s,7}{slice,plane};
else
%If we do not have precomputed contours available, then compute them
mask = zeros(size(ct{ctIndex}));
mask = zeros(ct.cubeDim);
mask(cst{s,4}{ctIndex}) = 1;

if plane == 1 && any(any(mask(slice,:,:) > 0))
Expand Down
2 changes: 1 addition & 1 deletion tools/matRad_plotSliceWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@

%plot VOI contours
if ~isempty(cst)
hContour = matRad_plotVoiContourSlice(axesHandle,cst,ct.cubeHU,cubeIdx,voiSelection,plane,slice,contourColorMap,varargin{:});
hContour = matRad_plotVoiContourSlice(axesHandle,cst,ct,cubeIdx,voiSelection,plane,slice,contourColorMap,varargin{:});

if boolPlotLegend
visibleOnSlice = (~cellfun(@isempty,hContour));
Expand Down

0 comments on commit bcbc8b7

Please sign in to comment.