I am a little bit confused about image capturing by Raspberry pi camera V2.1 . I work on the Raspberry pi 4 and I know how to get 8-bit depth black and white (BW) image from it on the C++ level with e.g. raspicam library  - so the images pixel values are in the range 0-255. But in the product description and many others shopping descriptions, we can find that this camera based on SONY IMX219 sensor  is able to capture 10-bit depth raw image (also it is mentioned in the ) - so in range 0-1023. How to achieve such depth of image? Best scenario is to get it on the C++ level, without OpenCV, but after few days of searching I can deal with any kind of information about it ;) . Maybe there is different camera with similar parameters to above, but with higher than 8-bit depth in default?
All the best.