How to convert image to RGB ?

6 views (last 30 days)
승연 장
승연 장 on 6 Nov 2020
Answered: Image Analyst on 6 Nov 2020
How to extract to RGB value(from jpg files)?
  • I have so many files that I want to running at once. (import all files /Get the RGB vaule all files /export all files
  • How to get the RGB values form like [R:G:B] (ex. [70: 150: 80] )
  • I've never done MATLAB before. so I should know all function

Answers (1)

Image Analyst
Image Analyst on 6 Nov 2020
See the FAQ:
In the loop, you can do
rgbImage = imread(fileName);
[R, G, B] = imsplit(rgbImage);

Categories

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

Tags

Community Treasure Hunt

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

Start Hunting!