I have double MR image (2D uint16), I have plotted hitogram of my original image and I want to find the Otsu threshold level and display it on the histogram. There is my code : How could I correct it please. Thank you.
subplot(2, 4, 2);h=histogram(grayImage);title('Histogram of Original Image');thresholdLevel = graythresh(grayImage);y = ylim();line(thresholdLevel, y,'Color', 'r');grid on;
Best Answer