Closed grez72 closed 3 months ago
@grez72 Thank you for your request. This is already in scope for our next release (we don't have a target date yet). We'll let you know when it's ready.
The new release v0.3.0 enables this feature. Let us know if you find any issues.
I've only had a chance to try on a few test images, but this looks great! Many thanks!
Is this a new feature, an improvement, or a change to existing functionality?
New Feature
How would you describe the priority of this feature request
Must have (e.g. nvImageCodec adoption is impossible due to lack in functionality).
Please provide a clear description of problem this feature solves
I'm working with high-resolution images, but only need to decode a region-of-interest on any given pass over an image in my pipeline. The alternative is to decode entire images, then crop them, but this is far too slow when working with very high resolution images.
Feature Description
I see many of the decoders (e.g., nvjpeg2k/cuda_decoder.cpp) have an enable_roi flag and image_info.region parameters. I'm proposing to expose this functionality through the Python API. Ideally I would be able to decode a different region of interest for each image in a batch.
Describe your ideal solution
Describe any alternatives you have considered
I've looked into using nvidia-dali (nvidia.dali.fn.decoders.image_crop) but it doesn't fit into my current pipeline, which requires a stand-alone decoding solution (like nvImageCodec).
Additional context
No response
Check for duplicates