View Source Evision.CUDA.StereoSGM (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an CUDA.StereoSGM struct.

Functions

Variant 1:

Computes disparity map for the specified stereo pair

Variant 1:

Computes disparity map for the specified stereo pair

Variant 1:

Computes disparity map with specified CUDA Stream

Variant 1:

Computes disparity map with specified CUDA Stream

Link to this section Types

@type t() :: %Evision.CUDA.StereoSGM{ref: reference()}

Type that represents an CUDA.StereoSGM struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

compute(self, left, right)

View Source
@spec compute(t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | {:error, String.t()}
@spec compute(t(), Evision.CUDA.GpuMat.t(), Evision.CUDA.GpuMat.t()) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Computes disparity map for the specified stereo pair

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()

  • left: Evision.Mat.t().

    Left 8-bit or 16-bit unsigned single-channel image.

  • right: Evision.Mat.t().

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.Mat.t().

    Output disparity map. It has the same size as the input images. StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).

Python prototype (for reference only):

compute(left, right[, disparity]) -> disparity

Variant 2:

Computes disparity map for the specified stereo pair

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()

  • left: Evision.CUDA.GpuMat.t().

    Left 8-bit or 16-bit unsigned single-channel image.

  • right: Evision.CUDA.GpuMat.t().

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.CUDA.GpuMat.t().

    Output disparity map. It has the same size as the input images. StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).

Python prototype (for reference only):

compute(left, right[, disparity]) -> disparity
Link to this function

compute(self, left, right, opts)

View Source
@spec compute(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}
@spec compute(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  [{atom(), term()}, ...] | nil
) ::
  Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Computes disparity map for the specified stereo pair

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()

  • left: Evision.Mat.t().

    Left 8-bit or 16-bit unsigned single-channel image.

  • right: Evision.Mat.t().

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.Mat.t().

    Output disparity map. It has the same size as the input images. StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).

Python prototype (for reference only):

compute(left, right[, disparity]) -> disparity

Variant 2:

Computes disparity map for the specified stereo pair

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()

  • left: Evision.CUDA.GpuMat.t().

    Left 8-bit or 16-bit unsigned single-channel image.

  • right: Evision.CUDA.GpuMat.t().

    Right image of the same size and the same type as the left one.

Return
  • disparity: Evision.CUDA.GpuMat.t().

    Output disparity map. It has the same size as the input images. StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).

Python prototype (for reference only):

compute(left, right[, disparity]) -> disparity
Link to this function

compute_with_stream(self, left, right, stream)

View Source
@spec compute_with_stream(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  Evision.CUDA.Stream.t()
) :: Evision.Mat.t() | {:error, String.t()}
@spec compute_with_stream(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.Stream.t()
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Computes disparity map with specified CUDA Stream

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()
  • left: Evision.Mat.t()
  • right: Evision.Mat.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • disparity: Evision.Mat.t().

@sa compute

Python prototype (for reference only):

compute_with_stream(left, right, stream[, disparity]) -> disparity

Variant 2:

Computes disparity map with specified CUDA Stream

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()
  • left: Evision.CUDA.GpuMat.t()
  • right: Evision.CUDA.GpuMat.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • disparity: Evision.CUDA.GpuMat.t().

@sa compute

Python prototype (for reference only):

compute_with_stream(left, right, stream[, disparity]) -> disparity
Link to this function

compute_with_stream(self, left, right, stream, opts)

View Source
@spec compute_with_stream(
  t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}
@spec compute_with_stream(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.Stream.t(),
  [{atom(), term()}, ...] | nil
) :: Evision.CUDA.GpuMat.t() | {:error, String.t()}

Variant 1:

Computes disparity map with specified CUDA Stream

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()
  • left: Evision.Mat.t()
  • right: Evision.Mat.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • disparity: Evision.Mat.t().

@sa compute

Python prototype (for reference only):

compute_with_stream(left, right, stream[, disparity]) -> disparity

Variant 2:

Computes disparity map with specified CUDA Stream

Positional Arguments
  • self: Evision.CUDA.StereoSGM.t()
  • left: Evision.CUDA.GpuMat.t()
  • right: Evision.CUDA.GpuMat.t()
  • stream: Evision.CUDA.Stream.t()
Return
  • disparity: Evision.CUDA.GpuMat.t().

@sa compute

Python prototype (for reference only):

compute_with_stream(left, right, stream[, disparity]) -> disparity