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

add roiconvert to the project. #311

Merged
merged 9 commits into from
Feb 21, 2025
Merged

add roiconvert to the project. #311

merged 9 commits into from
Feb 21, 2025

Conversation

nvqiezi
Copy link
Contributor

@nvqiezi nvqiezi commented Feb 20, 2025

ROIs to continuous tensor conversion. This is a library for implementing conversions from any number of ROIs to a continuous output tensor.
Supported Feature
Input can be NV12 Block Linear or NV12 Pitch Linear or YUV_YUYV Packed or I420 Separated or RGBA or RGB.
Output color format can be Gray/BGR/GRB.
Output network order can be Gray/HWC/CHW/CHW4/CHW16/CHW32.
Conversion formula R/G/B_output = (R/G/B - offset_R/G/B) * scale_R/G/B
Rescale interpolation support Nearest and Bilinear mode
Verifed to keep exactly the same output as OpenCV
Async API to run on specific CUDA stream

@hopef hopef merged commit b1cc8a4 into NVIDIA-AI-IOT:master Feb 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants