pub trait GComputationTrait: GComputationTraitConst {
    fn as_raw_mut_GComputation(&mut self) -> *mut c_void;

    fn apply(
        &mut self,
        callback: &ExtractArgsCallback,
        args: GCompileArgs
    ) -> Result<Vector<GRunArg>> { ... } fn apply_1(
        &mut self,
        ins: &Vector<Mat>,
        outs: &Vector<Mat>,
        args: GCompileArgs
    ) -> Result<()> { ... } fn apply_2(
        &mut self,
        in_: Mat,
        out: &mut Mat,
        args: GCompileArgs
    ) -> Result<()> { ... } fn apply_3(
        &mut self,
        in_: Mat,
        out: &mut Scalar,
        args: GCompileArgs
    ) -> Result<()> { ... } fn apply_4(
        &mut self,
        in1: Mat,
        in2: Mat,
        out: &mut Mat,
        args: GCompileArgs
    ) -> Result<()> { ... } fn apply_5(
        &mut self,
        in1: Mat,
        in2: Mat,
        out: &mut Scalar,
        args: GCompileArgs
    ) -> Result<()> { ... } fn apply_6(
        &mut self,
        ins: &Vector<Mat>,
        outs: &mut Vector<Mat>,
        args: GCompileArgs
    ) -> Result<()> { ... } fn compile_streaming(
        &mut self,
        args: GCompileArgs
    ) -> Result<GStreamingCompiled> { ... } fn compile_streaming_1(
        &mut self,
        callback: &ExtractMetaCallback,
        args: GCompileArgs
    ) -> Result<GStreamingCompiled> { ... } }

Required Methods

Provided Methods

@private – Exclude this function from OpenCV documentation

C++ default parameters
  • args: {}

@private – Exclude this function from OpenCV documentation

C++ default parameters
  • args: {}

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: {}

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: {}

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: {}

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: {}

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: {}

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

@ref gapi_compile_args

C++ default parameters
  • args: {}

@private – Exclude this function from OpenCV documentation

C++ default parameters
  • args: {}

Implementors