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

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

Types

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

Type that represents an CUDA.StereoSGM struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec compute(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

compute(self, left, right)

View Source
@spec compute(
  Evision.CUDA.CUDA.StereoSGM.t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in()
) ::
  Evision.Mat.t() | {:error, String.t()}
@spec compute(
  Evision.CUDA.CUDA.StereoSGM.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.

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

  • right: Evision.Mat.

    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(
  Evision.CUDA.CUDA.StereoSGM.t(),
  Evision.Mat.maybe_mat_in(),
  Evision.Mat.maybe_mat_in(),
  [{atom(), term()}, ...] | nil
) :: Evision.Mat.t() | {:error, String.t()}
@spec compute(
  Evision.CUDA.CUDA.StereoSGM.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.

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

  • right: Evision.Mat.

    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(named_args)

View Source
@spec compute_with_stream(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

compute_with_stream(self, left, right, stream)

View Source
@spec compute_with_stream(
  Evision.CUDA.CUDA.StereoSGM.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(
  Evision.CUDA.CUDA.StereoSGM.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
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(
  Evision.CUDA.CUDA.StereoSGM.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(
  Evision.CUDA.CUDA.StereoSGM.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
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