-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Closed
Labels
category: corecategory: gpu/cuda (contrib)OpenCV 4.0+: moved to opencv_contribOpenCV 4.0+: moved to opencv_contribfeature
Milestone
Description
Describe the feature and motivation
In the case of multidimensional array, in order to ensure that the last step will be equal to elemSize(), wrapping data in a GpuMatND::GpuMatND(data, SizeArray, StepArray) requires StepArray.size() == SizeArray.size()-1. The last step is added internally by setFields()
In my use cases, I often have to create a temporary StepArray from an existing one, remove the last step, and feed it to GpuMatND().
It would be more convenient to also support StepArray.size() == SizeArray.size() as long as the last step is valid.
I will submit a PR
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
category: corecategory: gpu/cuda (contrib)OpenCV 4.0+: moved to opencv_contribOpenCV 4.0+: moved to opencv_contribfeature