MATLAB: How to calculate intensity value of a single pixel in an image

digital image processingImage Processing Toolboxpixel intensity value

i'm doing project and need to calculate intensity value of a specific pixel in an image. I am using the following code. Is it right? plz help us..
rgbImage = imread('car.jpg');
grayImage = rgb2gray(rgbImage);
impixel(grayImage)

Best Answer

Intensity_at_location = grayImage(RowIndex, ColumnIndex)
Related Question