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
![](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 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parrot Minidrones 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!