MATLAB Answers

index value in RGB image

99 views (last 30 days)
fereshte on 14 Jul 2014
Commented: Image Analyst ungefär 8 timmar ago
hi.i have a code that use indexedImage.output image is a RGB image with index.for each pixel i have R,G,B and index value.what is index?what show index value?


Sign in to comment.

Answers (1)

Image Analyst
Image Analyst on 14 Jul 2014
The first (left most) index is the row, the middle index is the column, and the last (right most) index is the color. Specify those to get the value of a certain color channel at a certain location:
blueValue = rgbImage(row, column, 3); % Extract the blue value at this row,column location.


Show 8 older comments
Image Analyst
Image Analyst on 16 May 2020
You can use a modified median filter to get rid of salt and pepper noise. I'm attaching the demo for that.
Vijaya yaduvanshi
Vijaya yaduvanshi ungefär 22 timmar ago
hi Image Analyst,
Im having Matlab 2015a version. In this version Nonlocal mean filter is not available for prepossessing step of my oral cancer images.Please tell me another filter of same quality.
Image Analyst
Image Analyst ungefär 8 timmar ago
I don't know. Just look around - there's medfilt2(), conv2(), imfilter(), etc.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!