Skip to content

Commit

Permalink
Fix bug in passing variables to histogramNormalization
Browse files Browse the repository at this point in the history
  • Loading branch information
btreeby committed Nov 14, 2024
1 parent fa14c13 commit cc55265
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion +petraToCT/convert.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
imageDataNii = load_nii(debiasedFilename);

% Histogram normalisation.
imageData = histogramNormalization(single(imageDataNii.img));
imageData = histogramNormalization(single(imageDataNii.img), ...
HistogramPlot=options.HistogramPlot, ...
HistogramNPeaks=options.HistogramNPeaks, ...
HistogramMinPeakDistance=options.HistogramMinPeakDistance);

% Convert image.
pCT = -1000 * ones(size(imageData));
Expand Down

0 comments on commit cc55265

Please sign in to comment.