Intensity (luminance) calculation

1 vue (au cours des 30 derniers jours)
Wisam S
Wisam S le 15 Oct 2015
Modifié(e) : Wisam S le 21 Oct 2015
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

Réponses (1)

Image Analyst
Image Analyst le 15 Oct 2015
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 commentaires
Wisam S
Wisam S le 19 Oct 2015
thanks for your help sorry, I am a new here in this forum and I am not very good in Matlab
Image Analyst
Image Analyst le 19 Oct 2015
OK, then the pixel value at row i, column j is img(i,j) since your image is named img instead of grayscaleImage.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Filtering and Enhancement dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by