pub trait GComputationTrait: GComputationTraitConst {
Show 19 methods
// Required method
fn as_raw_mut_GComputation(&mut self) -> *mut c_void;
// Provided methods
fn apply(
&mut self,
callback: &impl Detail_ExtractArgsCallbackTraitConst,
args: GCompileArgs,
) -> Result<GRunArgs> { ... }
fn apply_def(
&mut self,
callback: &impl Detail_ExtractArgsCallbackTraitConst,
) -> Result<GRunArgs> { ... }
fn apply_1(
&mut self,
ins: &Vector<Mat>,
outs: &Vector<Mat>,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_1(
&mut self,
ins: &Vector<Mat>,
outs: &Vector<Mat>,
) -> Result<()> { ... }
fn apply_2(
&mut self,
in_: impl MatTrait,
out: &mut impl MatTrait,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_2(
&mut self,
in_: impl MatTrait,
out: &mut impl MatTrait,
) -> Result<()> { ... }
fn apply_3(
&mut self,
in_: impl MatTrait,
out: &mut Scalar,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_3(
&mut self,
in_: impl MatTrait,
out: &mut Scalar,
) -> Result<()> { ... }
fn apply_4(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut impl MatTrait,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_4(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut impl MatTrait,
) -> Result<()> { ... }
fn apply_5(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut Scalar,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_5(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut Scalar,
) -> Result<()> { ... }
fn apply_6(
&mut self,
ins: &Vector<Mat>,
outs: &mut Vector<Mat>,
args: GCompileArgs,
) -> Result<()> { ... }
fn apply_def_6(
&mut self,
ins: &Vector<Mat>,
outs: &mut Vector<Mat>,
) -> Result<()> { ... }
fn compile_streaming(
&mut self,
args: GCompileArgs,
) -> Result<GStreamingCompiled> { ... }
fn compile_streaming_def(&mut self) -> Result<GStreamingCompiled> { ... }
fn compile_streaming_1(
&mut self,
callback: &impl Detail_ExtractMetaCallbackTraitConst,
args: GCompileArgs,
) -> Result<GStreamingCompiled> { ... }
fn compile_streaming_def_1(
&mut self,
callback: &impl Detail_ExtractMetaCallbackTraitConst,
) -> Result<GStreamingCompiled> { ... }
}
Expand description
Mutable methods for crate::gapi::GComputation
Required Methods§
fn as_raw_mut_GComputation(&mut self) -> *mut c_void
Provided Methods§
Sourcefn apply(
&mut self,
callback: &impl Detail_ExtractArgsCallbackTraitConst,
args: GCompileArgs,
) -> Result<GRunArgs>
fn apply( &mut self, callback: &impl Detail_ExtractArgsCallbackTraitConst, args: GCompileArgs, ) -> Result<GRunArgs>
Sourcefn apply_def(
&mut self,
callback: &impl Detail_ExtractArgsCallbackTraitConst,
) -> Result<GRunArgs>
fn apply_def( &mut self, callback: &impl Detail_ExtractArgsCallbackTraitConst, ) -> Result<GRunArgs>
@private – Exclude this function from OpenCV documentation
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_1(
&mut self,
ins: &Vector<Mat>,
outs: &Vector<Mat>,
args: GCompileArgs,
) -> Result<()>
fn apply_1( &mut self, ins: &Vector<Mat>, outs: &Vector<Mat>, args: GCompileArgs, ) -> Result<()>
Sourcefn apply_def_1(&mut self, ins: &Vector<Mat>, outs: &Vector<Mat>) -> Result<()>
fn apply_def_1(&mut self, ins: &Vector<Mat>, outs: &Vector<Mat>) -> Result<()>
@private – Exclude this function from OpenCV documentation
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_2(
&mut self,
in_: impl MatTrait,
out: &mut impl MatTrait,
args: GCompileArgs,
) -> Result<()>
fn apply_2( &mut self, in_: impl MatTrait, out: &mut impl MatTrait, args: GCompileArgs, ) -> Result<()>
Execute an unary computation (with compilation on the fly)
@private – Exclude this function from OpenCV documentation
§Overloaded parameters
§Parameters
- in: input cv::Mat for unary computation
- out: output cv::Mat for unary computation
- args: compilation arguments for underlying compilation process.
§C++ default parameters
- args: {}
Sourcefn apply_def_2(
&mut self,
in_: impl MatTrait,
out: &mut impl MatTrait,
) -> Result<()>
fn apply_def_2( &mut self, in_: impl MatTrait, out: &mut impl MatTrait, ) -> Result<()>
Execute an unary computation (with compilation on the fly)
@overload
§Parameters
- in: input cv::Mat for unary computation
- out: output cv::Mat for unary computation
- args: compilation arguments for underlying compilation process.
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_3(
&mut self,
in_: impl MatTrait,
out: &mut Scalar,
args: GCompileArgs,
) -> Result<()>
fn apply_3( &mut self, in_: impl MatTrait, out: &mut Scalar, args: GCompileArgs, ) -> Result<()>
Execute an unary computation (with compilation on the fly)
@private – Exclude this function from OpenCV documentation
§Overloaded parameters
§Parameters
- in: input cv::Mat for unary computation
- out: output cv::Scalar for unary computation
- args: compilation arguments for underlying compilation process.
§C++ default parameters
- args: {}
Sourcefn apply_def_3(&mut self, in_: impl MatTrait, out: &mut Scalar) -> Result<()>
fn apply_def_3(&mut self, in_: impl MatTrait, out: &mut Scalar) -> Result<()>
Execute an unary computation (with compilation on the fly)
@overload
§Parameters
- in: input cv::Mat for unary computation
- out: output cv::Scalar for unary computation
- args: compilation arguments for underlying compilation process.
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_4(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut impl MatTrait,
args: GCompileArgs,
) -> Result<()>
fn apply_4( &mut self, in1: impl MatTrait, in2: impl MatTrait, out: &mut impl MatTrait, args: GCompileArgs, ) -> Result<()>
Execute a binary computation (with compilation on the fly)
@private – Exclude this function from OpenCV documentation
§Overloaded parameters
§Parameters
- in1: first input cv::Mat for binary computation
- in2: second input cv::Mat for binary computation
- out: output cv::Mat for binary computation
- args: compilation arguments for underlying compilation process.
§C++ default parameters
- args: {}
Sourcefn apply_def_4(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut impl MatTrait,
) -> Result<()>
fn apply_def_4( &mut self, in1: impl MatTrait, in2: impl MatTrait, out: &mut impl MatTrait, ) -> Result<()>
Execute a binary computation (with compilation on the fly)
@overload
§Parameters
- in1: first input cv::Mat for binary computation
- in2: second input cv::Mat for binary computation
- out: output cv::Mat for binary computation
- args: compilation arguments for underlying compilation process.
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_5(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut Scalar,
args: GCompileArgs,
) -> Result<()>
fn apply_5( &mut self, in1: impl MatTrait, in2: impl MatTrait, out: &mut Scalar, args: GCompileArgs, ) -> Result<()>
Execute an binary computation (with compilation on the fly)
@private – Exclude this function from OpenCV documentation
§Overloaded parameters
§Parameters
- in1: first input cv::Mat for binary computation
- in2: second input cv::Mat for binary computation
- out: output cv::Scalar for binary computation
- args: compilation arguments for underlying compilation process.
§C++ default parameters
- args: {}
Sourcefn apply_def_5(
&mut self,
in1: impl MatTrait,
in2: impl MatTrait,
out: &mut Scalar,
) -> Result<()>
fn apply_def_5( &mut self, in1: impl MatTrait, in2: impl MatTrait, out: &mut Scalar, ) -> Result<()>
Execute an binary computation (with compilation on the fly)
@overload
§Parameters
- in1: first input cv::Mat for binary computation
- in2: second input cv::Mat for binary computation
- out: output cv::Scalar for binary computation
- args: compilation arguments for underlying compilation process.
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn apply_6(
&mut self,
ins: &Vector<Mat>,
outs: &mut Vector<Mat>,
args: GCompileArgs,
) -> Result<()>
fn apply_6( &mut self, ins: &Vector<Mat>, outs: &mut Vector<Mat>, args: GCompileArgs, ) -> Result<()>
Execute a computation with arbitrary number of inputs/outputs (with compilation on-the-fly).
@private – Exclude this function from OpenCV documentation
§Overloaded parameters
§Parameters
- ins: vector of input cv::Mat objects to process by the computation.
- outs: vector of output cv::Mat objects to produce by the computation.
- args: compilation arguments for underlying compilation process.
Numbers of elements in ins/outs vectors must match numbers of inputs/outputs which were used to define this GComputation.
§C++ default parameters
- args: {}
Sourcefn apply_def_6(
&mut self,
ins: &Vector<Mat>,
outs: &mut Vector<Mat>,
) -> Result<()>
fn apply_def_6( &mut self, ins: &Vector<Mat>, outs: &mut Vector<Mat>, ) -> Result<()>
Execute a computation with arbitrary number of inputs/outputs (with compilation on-the-fly).
@overload
§Parameters
- ins: vector of input cv::Mat objects to process by the computation.
- outs: vector of output cv::Mat objects to produce by the computation.
- args: compilation arguments for underlying compilation process.
Numbers of elements in ins/outs vectors must match numbers of inputs/outputs which were used to define this GComputation.
§Note
This alternative version of GComputationTrait::apply function uses the following default values for its arguments:
- args: {}
Sourcefn compile_streaming(
&mut self,
args: GCompileArgs,
) -> Result<GStreamingCompiled>
fn compile_streaming( &mut self, args: GCompileArgs, ) -> Result<GStreamingCompiled>
Compile the computation for streaming mode.
This method triggers compilation process and produces a new GStreamingCompiled object which then can process video stream data in any format. Underlying mechanisms will be adjusted to every new input video stream automatically, but please note that not all existing backends support this (see reshape()).
§Parameters
- args: compilation arguments for this compilation process. Compilation arguments directly affect what kind of executable object would be produced, e.g. which kernels (and thus, devices) would be used to execute computation.
§Returns
GStreamingCompiled, a streaming-oriented executable computation compiled for any input image format.
§See also
[gapi_compile_args]
§C++ default parameters
- args: {}
Sourcefn compile_streaming_def(&mut self) -> Result<GStreamingCompiled>
fn compile_streaming_def(&mut self) -> Result<GStreamingCompiled>
Compile the computation for streaming mode.
This method triggers compilation process and produces a new GStreamingCompiled object which then can process video stream data in any format. Underlying mechanisms will be adjusted to every new input video stream automatically, but please note that not all existing backends support this (see reshape()).
§Parameters
- args: compilation arguments for this compilation process. Compilation arguments directly affect what kind of executable object would be produced, e.g. which kernels (and thus, devices) would be used to execute computation.
§Returns
GStreamingCompiled, a streaming-oriented executable computation compiled for any input image format.
§See also
[gapi_compile_args]
§Note
This alternative version of GComputationTrait::compile_streaming function uses the following default values for its arguments:
- args: {}
Sourcefn compile_streaming_1(
&mut self,
callback: &impl Detail_ExtractMetaCallbackTraitConst,
args: GCompileArgs,
) -> Result<GStreamingCompiled>
fn compile_streaming_1( &mut self, callback: &impl Detail_ExtractMetaCallbackTraitConst, args: GCompileArgs, ) -> Result<GStreamingCompiled>
Sourcefn compile_streaming_def_1(
&mut self,
callback: &impl Detail_ExtractMetaCallbackTraitConst,
) -> Result<GStreamingCompiled>
fn compile_streaming_def_1( &mut self, callback: &impl Detail_ExtractMetaCallbackTraitConst, ) -> Result<GStreamingCompiled>
@private – Exclude this function from OpenCV documentation
§Note
This alternative version of GComputationTrait::compile_streaming function uses the following default values for its arguments:
- args: {}
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.