how to convert RGB image into grayscale pixel by pixel using for loop using matlab

1 view (last 30 days)
convert Rgb image into gray scale using for loop hint take average of 3 channel to make a single grayscale channel

Answers (1)

DGM
DGM on 23 Jun 2023
Would you ask someone to move a pile of sand with a pair of tweezers when you have a shovel laying at your feet?
ipict = mean(rgbpict,3);

Categories

Find more on Convert Image Type in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!