Do you have any matlab code to get the RGB values of the color picture taking from webcam?
2 次查看(过去 30 天)
显示 更早的评论
I will have the picture using the pc webcam and I have to find RGB values of this picture using the matlab.
1 个评论
Walter Roberson
2017-10-12
Duplicates https://www.mathworks.com/matlabcentral/answers/360740-how-can-i-get-the-rgb-values-of-a-photo-taken-with-a-webcam and https://www.mathworks.com/matlabcentral/answers/360790-how-can-i-get-the-rgb-values-separately-for-an-image-taken-using-a-webcam . Please do not keep asking the same question: ask for clarification in the existing questions and wait for a response.
回答(2 个)
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) ;
0 个评论
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!