How to input the data of RGB image gotten by Coppeliasim into Matlab
Posted: 07 Apr 2024, 17:08
In matlab I use
But when I use command in Matlab as follows:
Most of examples are in Python with OpenCV. I need the example in Matlab to display the RGB image.
to obtain RGB data from Coppeliasim.[ImageRGB,resolution] = sim.getVisionSensorImg(Hsensor)
But when I use command in Matlab as follows:
The image showed in Matlab is not correct. What's wrong?Image = reshape(ImageRGB,[resolution{1} resolution{2} 3]) ;
figure;imshow(double(Image)/255,[]);
Most of examples are in Python with OpenCV. I need the example in Matlab to display the RGB image.