Do you have any matlab code to get the RGB values of the color picture taking from webcam?

1 回表示 (過去 30 日間)
caner kaya
caner kaya 2017 年 10 月 12 日
回答済み: Image Analyst 2017 年 10 月 14 日
I will have the picture using the pc webcam and I have to find RGB values of this picture using the matlab.

回答 (2 件)

KSSV
KSSV 2017 年 10 月 12 日
If you have an image...read it using imread. If it is colored image, it will be 3D matrix, you can extract R,G and B colors from this.
I = imread('your image') ;
R = I(:,:,1) ;
G = I(:,:,2) ;
B = I(:,:,3) ;

Image Analyst
Image Analyst 2017 年 10 月 14 日
Ardit Oseku just adked the identical question. Are you working together? The solution can be found in my answer there: https://www.mathworks.com/matlabcentral/answers/361216-how-can-i-obtain-the-brightness-value-of-the-image-taken-by-any-camera#comment_492790 Basically you need to do color standardization with an X-rite Color Checker Chart. I give all the math formulas you need in my attachment there. I do this color calibration and standardization all the time in my job.

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by