How to extract RGB values of image stream

4 views (last 30 days)
Hello! I connected two computers in a net. Kinect sensor is attached to the first computer, and the computer is ROS master. The first one transfers data to the second computer. Simulink model on the slave computer receives RGB image stream i want to read rgb values. How it can be done??

Accepted Answer

MathWorks Robotics and Autonomous Systems Team
You will need a Subscriber in Simulink to subscribe to the topic (on which the image is being streamed), and then use the ReadImage block: https://www.mathworks.com/help/robotics/ref/readimageblock.html to extract RGB data.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!