MATLAB: How to plot the “ the intensity distribution of the 100th row of an image ” …

digital image processingMATLAB

how to plot the “comparison of the intensity distribution of the 100th row of an image ” …

Best Answer

I don't know what you're comparing to what, but maybe this will help:
% Get the 100th row
theRow = imageArray(100, :);
% Get the intensity distribution.
[pixelCounts grayLevels] = imhist(theRow);
% Plot the distribution as a bar chart.
bar(grayLevels, pixelCounts);