Is there a rgb2gray conversion block in Simulink ?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Harsha Vardhan Rao Avunoori
le 13 Mar 2011
Commenté : pieter sibma
le 19 Avr 2021
I have a RGB video and I would like to find out optical flow and optical flow block accepts only 2-d image only...So I want to convert this RGB into Gray and then give Grayscale output to Optical Flow block...But I didn't find a default Grayscale block in Simulink...It would be gr eat if anyone could help me with this...
0 commentaires
Réponse acceptée
Doug Eastman
le 13 Mar 2011
The Color Space Conversion block in Conversions library of the Video and Image Processing blockset can convert RGB video to intensity. The viptrafficof demo shows an example of using this block to perform optical flow analysis on an RGB video.
2 commentaires
pieter sibma
le 19 Avr 2021
not straightforward to create 3 color values from 1 intensity value. you will need to demosaic for that.
Plus de réponses (1)
Messlaha Hamza
le 24 Fév 2014
i still have the same problem, i don't know how to convert my output to m-n-3 matrix
0 commentaires
Voir également
Catégories
En savoir plus sur Color Space Formatting and Conversions dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!