pub fn no_array() -> _InputOutputArray
Expand description
Returns an empty InputArray or OutputArray.
This function is used to provide an “empty” or “null” array when certain functions take optional input or output arrays that you don’t want to provide.
Many OpenCV functions accept optional arguments as cv::InputArray
or cv::OutputArray
.
When you don’t want to pass any data for these optional parameters, you can use cv::noArray()
to indicate that you are omitting them.
§Returns
An empty cv::InputArray
or cv::OutputArray
that can be used as a placeholder.
Note: This is often used when a function has optional arrays, and you do not want to provide a specific input or output array.
§See also
cv::InputArray, cv::OutputArray