This function will plot the distribution of pixel values (all 3 channels) for a given/chosen row(Y-value) or column(X-value) from the image.
Input: image (RGB) , row or column number (double) , "r" or "c" to indicate it is row or column
Output: figure , R-G-B distribution tables
Process: the function chooses the row or column passed by the user and stores it in a column matrix. It then scan that row or column to find how many pixel are present for that pixel value
EG: if you pass column number 831 in a 900x900 image, it will scan that column and tell you how many pixels are 255, how many pixels are 133, how many pixel are 78 and so on.
Observation: it is possible that one channel may have x axis (from output plot) from 0 to 81. This means that the whole row/col has pixel intensities from 0 to 81 only. Above 81, none are present.
Cite As
Anmol Pardeshi (2024). imgAxisDistribution (https://www.mathworks.com/matlabcentral/fileexchange/76098-imgaxisdistribution), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |