Add OutputArray and InputOutputArray implementations for Mat_
MODIFY
src/manual/core/mat/mat_.rs
src/manual/core/mat/mat_.rs
@@ -6,7 +6,7 @@ use std::{
};
use crate::{
- core::{_InputArray, Mat, MatTrait, MatTraitConst, MatTraitConstManual, MatTraitManual, ToInputArray},
+ core::{_InputArray, _InputOutputArray, _OutputArray, Mat, MatTrait, MatTraitConst, MatTraitConstManual, MatTraitManual, ToInputArray, ToInputOutputArray, ToOutputArray},
Error,
Result,
traits::{Boxed, OpenCVType, OpenCVTypeArg, OpenCVTypeExternContainer},
@@ -130,6 +130,20 @@ impl<T> ToInputArray for Mat_<T> {
}
}
+impl<T> ToOutputArray for Mat_<T> {
+ #[inline]
+ fn output_array(&mut self) -> Result<_OutputArray> {
+ self.inner.output_array()
+ }
+}
+
+impl<T> ToInputOutputArray for Mat_<T> {
+ #[inline]
+ fn input_output_array(&mut self) -> Result<_InputOutputArray> {
+ self.inner.input_output_array()
+ }
+}
+
impl<T> OpenCVType<'_> for Mat_<T> {
type Arg = Self;
type ExternReceive = *mut c_void;

Add OutputArray and InputOutputArray implementations for Mat_