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

11 views (last 30 days)
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)

Accepted Answer

Walter Roberson
Walter Roberson on 25 Jan 2016
Intensity_at_location = grayImage(RowIndex, ColumnIndex)

More Answers (1)

solanki pattanayak
solanki pattanayak on 7 Nov 2019
Intensity_at_location = grayImage(RowIndex, ColumnIndex)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!