Why is the signals not working to convert from RGB to HSV using Color Space Conversion Block in Simulink?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
For >>parrotMinidroneCompetitionStart, in parrotMinidroneCompetition/Flight Control System (flightControlSystem)/Image Processing System
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/931749/image.png)
It comes up with error when applying the Color Space Conversion block for RGB to HSV.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/931754/image.png)
I have tried Data type conversion to ensure the input and output is 'uint8' however it seems to not be picking up port 3. Is this a probelm with the Color Space Conversion block or is there something I am missing?
0 Commenti
Risposte (1)
Vidhi Agarwal
il 15 Feb 2024
Hi Jaylene,
I understand that you are getting an error regarding supported data type by Color Space block for R’ G’ B’ to intensity values conversion while using data type of “uint8”.
When the Conversion parameter is R'G'B' to HSV, the Data types that are supported in the block are just single-precision, and double precision. For detailed information, you can refer to the documentation of “Color - Space Conversion block” below:
Setting the R’, G’ and B’ input to single or double will resolve the issue and the block will start working.
0 Commenti
Vedere anche
Categorie
Scopri di più su Parrot Minidrones in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!