Convert channel (4 to 3)

Hello.

image_zed = sl.Mat(image_size.width, image_size.height, sl.MAT_TYPE.U8_C4)
depth_image_zed = sl.Mat(image_size.width, image_size.height, sl.MAT_TYPE.U8_C4)


In your code, I want to convert channel number. (4 -> 3)

I guess that I should change value 'sl.MAT_TYPE' to convert channel  

But I don't know what MAT_TYPE should be there.

Thanks in advance.

Hello and thank you for reaching us out,

All sl.Mat types are documented here : https://www.stereolabs.com/docs/api/group__Core__group.html#gab12e66b9515d6772cda59cc2f7e69713
Probably you want a U8_C3 matrix.

Best regards

Antoine Lassagne
Senior Developer - ZED SDK
Stereolabs Support