Why is the signals not working to convert from RGB to HSV using Color Space Conversion Block in Simulink?

2 次查看(过去 30 天)
For >>parrotMinidroneCompetitionStart, in parrotMinidroneCompetition/Flight Control System (flightControlSystem)/Image Processing System
It comes up with error when applying the Color Space Conversion block for RGB to HSV.
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?

回答(1 个)

Vidhi Agarwal
Vidhi Agarwal 2024-2-15
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.

类别

Help CenterFile Exchange 中查找有关 Parrot Minidrones 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by