I'm trying to send a frame from the intel realsense camera to matlab. dDisplaying the image by imshow(...) or image(...) didn't make the job since the image is an rgba image... I have sent the image as an object from C# :
matlab.Feval("getImage", 1, out result, bitmap_data);
Is there a function that can display the frame ?
You will have to play with the exact Feval implementation, but if you were to impelment it directly in matlab there are two options
1.Simply ignore the alpha channel
2.Use the alpha channel
EDIT
Now that I know your data isn't in the standard rgba format here is the code to fix it, the comments should tell you everything you need
From this point you can do the processing I suggested using the
standard_rgba
array. There may be a more efficient way to write this code, but I wanted to make it as clear and easy to follow as possible, hope this helps