analogdevicesinc / ToF

MIT License
35 stars 26 forks source link

Creating an OpenCV Matrix of 32FC1 Type for Depth Data #717

Open meetgandhi-dev opened 3 months ago

meetgandhi-dev commented 3 months ago

Hi,

I am currently working on creating an OpenCV matrix of the 32FC1 type for depth data. As demonstrated in the following example, a matrix with the CV_16UC1 datatype can be created:

I am aware of the opencv::convertTo API, which can be utilized for datatype conversion. The SDK employs the same API to convert to the CV_8U datatype, as shown here.

Could you please confirm if the same method can be used for converting to the 32FC1 type? If so, what are the recommended values for alpha and beta parameters? Additionally, are there alternative methods that would be more suitable for achieving this conversion?

Thank you for your assistance.