After finding the threshold, how can i redraw the histogram and the image using the new thresold value
3 views (last 30 days)
This is the code to find the thresold
clc; clear all; close all;
i= imread('cameraman.jpg'); [m,n]=size(i); figure, imshow(i);
[rows, columns, numberOfColorBands] = size(i)
if numberOfColorBands > 1 i = i(:, :, 2); % Take green channel. end
After finding the threshold, how can i redraw the histogram and also the cameraman image by using the new threshold value.
can anyone help me in this.