How do I get the matrix of gray levels from the "from Video Device" in Simulink
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi.
I want to open the camera that will work on grayscale with the help of the "from Video Device" in Simulink and extract from each frame its I matrix.
Thanks
2 comentarios
Image Analyst
el 13 de Jun. de 2022
What do you have so far? Do you have the camera already? If so, what king? Do you have the Image Acquistion Toolbox (I'm not even sure if it's needed or works with Simulink so call Mathworks and ask them)? Are you able to pull an image in from the camera to a variable in your code or Simulink block yet?
Respuestas (1)
Benjamin Thompson
el 13 de Jun. de 2022
Double click on the block and change the output color space option to "grayscale" if you can. Or, the Computer Vision Toolbox offers a Color Space Conversion block. Or, use a MATLAB function block to wrap the rgb2gray in Simulink, this is part of basic MATLAB. Or just do it your self, since intensity of RGB is just sqrt(R^2 + G^2 + B^2).
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!