imgAxisDistribution

版本 1.0.0 (1.5 KB) 作者: Anmol Pardeshi
pixel value distribution
3.0 次下载
更新时间 2020/5/25

查看许可证

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.

引用格式

Anmol Pardeshi (2024). imgAxisDistribution (https://www.mathworks.com/matlabcentral/fileexchange/76098-imgaxisdistribution), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0