It sounds like you're working with some advanced image processing tasks! Have you tried converting the RGB8 image to a 16-bit first and then truncating the values to fit a 10-bit range? It might be helpful to manually handle the pixel depth conversion since OpenCV doesn't support BAYER10 natively. You could also check out alternative libraries like PyImage or implement a custom function to scale the 16-bit image down to 10-bit. Let me know how it goes! read more