Intensity (luminance) calculation
1 次查看(过去 30 天)
显示 更早的评论
How can I calculate the intensity level of the ith pixel (or the luminance of the ith pixel) of an 1024*1024 grey level image
0 个评论
回答(1 个)
Image Analyst
2015-10-15
Knowing the row and column, you can get its gray level:
grayLevel = grayscaleImage(row, column);
The total number of rows and columns does not enter into it - all you need to know is the location of the pixel.
5 个评论
Image Analyst
2015-10-19
OK, then the pixel value at row i, column j is img(i,j) since your image is named img instead of grayscaleImage.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Filtering and Enhancement 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!