Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
meetgandhi-dev opened this issue Aug 7, 2024 · 0 comments
Open

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

meetgandhi-dev opened this issue Aug 7, 2024 · 0 comments

Comments

@meetgandhi-dev
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant