How do I get RGB-Values

Is it possible to read the rgb-value from a monitor (not image/without screenshot) ? 2. Quesrion: RGB-value from a realtime video ? Thx

2 个评论

Yes you can read video frame by frame as a image/ RGB value. Read this: https://www.mathworks.com/help/matlab/ref/videoreader.html
How you expect to enter RGB values? Manually? Yes you can do but it is tedious isn't it?
How did the image get onto the monitor? If it was from MATLAB, then yes, you have the variable. If it was by some other program (Excel, Powerpoint, Photoshop, or whatever) then you'd have to figure out how to do a screen capture first, then examine the saved image.

请先登录,再进行评论。

回答(2 个)

Walter Roberson
Walter Roberson 2020-8-24

1 个投票

Yes? No?
  • Some graphics cards allow the rendered values to be read out of the buffer. MS Windows in particular tends to restrict this ability because it can be used to bypass some kinds of Digital Rights Management. Arguably this would be a screenshot.
  • if you added appropriate hardware such as a frame buffer, you could keep a copy of the video stream, especially with digital protocols such as HDMI. Arguably this would be a screenshot.
  • However the above options only record the graphics sent to the monitor, which is not the same as the monitor will display. Most monitors are not calibrated, and most monitors have built-in gamma adjustment. Hypothetically you might be able to retrieve the gamma table the monitor uses, but the calibration information requires calibration hardware.... and warming up the monitor several days before hand to stabilize the electronics.
Overall I would say that given the contradictions in your requirements, that the answer has to be NO.

类别

帮助中心File Exchange 中查找有关 Computer Vision Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by