[Solved] Hi, can anyone tell me code how to create histogram without the toolbox (imhist,hist) from matlab?
A bit more efficient than your code: histogram = zeros(1,256); for value = 1:256 % loop through possible values histogram(value) = histogram(value) + length(find(F(:)==value)); end Note that this code makes a histogram for values from 1 to 256. For grayscale images you might need one from 0 to 255. But I’ll let you change this … Read more