View Source Evision.CUDA.DisparityBilateralFilter (Evision v0.1.38)

Summary

Types

t()

Type that represents an CUDA.DisparityBilateralFilter struct.

Functions

Variant 1:

Refines a disparity map using joint bilateral filtering.

Variant 1:

Refines a disparity map using joint bilateral filtering.

Clears the algorithm state

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

getDefaultName

getEdgeThreshold

getMaxDiscThreshold

getNumDisparities

getNumIters

getRadius

getSigmaRange

Reads algorithm parameters from a file storage

Stores algorithm parameters in a file storage

Types

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

Type that represents an CUDA.DisparityBilateralFilter struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

apply(self, disparity, image)

View Source

Variant 1:

Refines a disparity map using joint bilateral filtering.

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

  • disparity: Evision.Mat.t().

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

  • image: Evision.Mat.t().

    Input image. CV_8UC1 and CV_8UC3 types are supported.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

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

    Destination disparity map. It has the same size and type as disparity .

Python prototype (for reference only):

apply(disparity, image[, dst[, stream]]) -> dst

Variant 2:

Refines a disparity map using joint bilateral filtering.

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

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

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

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

    Input image. CV_8UC1 and CV_8UC3 types are supported.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

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

    Destination disparity map. It has the same size and type as disparity .

Python prototype (for reference only):

apply(disparity, image[, dst[, stream]]) -> dst
Link to this function

apply(self, disparity, image, opts)

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

Variant 1:

Refines a disparity map using joint bilateral filtering.

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

  • disparity: Evision.Mat.t().

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

  • image: Evision.Mat.t().

    Input image. CV_8UC1 and CV_8UC3 types are supported.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

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

    Destination disparity map. It has the same size and type as disparity .

Python prototype (for reference only):

apply(disparity, image[, dst[, stream]]) -> dst

Variant 2:

Refines a disparity map using joint bilateral filtering.

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

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

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

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

    Input image. CV_8UC1 and CV_8UC3 types are supported.

Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

    Stream for the asynchronous version.

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

    Destination disparity map. It has the same size and type as disparity .

Python prototype (for reference only):

apply(disparity, image[, dst[, stream]]) -> dst
@spec clear(t()) :: t() | {:error, String.t()}

Clears the algorithm state

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

Python prototype (for reference only):

clear() -> None
@spec empty(t()) :: boolean() | {:error, String.t()}

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> retval
@spec getDefaultName(t()) :: binary() | {:error, String.t()}

getDefaultName

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Python prototype (for reference only):

getDefaultName() -> retval
@spec getEdgeThreshold(t()) :: number() | {:error, String.t()}

getEdgeThreshold

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: double

Python prototype (for reference only):

getEdgeThreshold() -> retval
Link to this function

getMaxDiscThreshold(self)

View Source
@spec getMaxDiscThreshold(t()) :: number() | {:error, String.t()}

getMaxDiscThreshold

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: double

Python prototype (for reference only):

getMaxDiscThreshold() -> retval
@spec getNumDisparities(t()) :: integer() | {:error, String.t()}

getNumDisparities

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: int

Python prototype (for reference only):

getNumDisparities() -> retval
@spec getNumIters(t()) :: integer() | {:error, String.t()}

getNumIters

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: int

Python prototype (for reference only):

getNumIters() -> retval
@spec getRadius(t()) :: integer() | {:error, String.t()}

getRadius

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: int

Python prototype (for reference only):

getRadius() -> retval
@spec getSigmaRange(t()) :: number() | {:error, String.t()}

getSigmaRange

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
Return
  • retval: double

Python prototype (for reference only):

getSigmaRange() -> retval
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • fn_: Evision.FileNode.t()

Python prototype (for reference only):

read(fn_) -> None
@spec save(t(), binary()) :: t() | {:error, String.t()}

save

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • filename: String

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).

Python prototype (for reference only):

save(filename) -> None
Link to this function

setEdgeThreshold(self, edge_threshold)

View Source
@spec setEdgeThreshold(t(), number()) :: t() | {:error, String.t()}

setEdgeThreshold

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • edge_threshold: double

Python prototype (for reference only):

setEdgeThreshold(edge_threshold) -> None
Link to this function

setMaxDiscThreshold(self, max_disc_threshold)

View Source
@spec setMaxDiscThreshold(t(), number()) :: t() | {:error, String.t()}

setMaxDiscThreshold

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • max_disc_threshold: double

Python prototype (for reference only):

setMaxDiscThreshold(max_disc_threshold) -> None
Link to this function

setNumDisparities(self, numDisparities)

View Source
@spec setNumDisparities(t(), integer()) :: t() | {:error, String.t()}

setNumDisparities

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • numDisparities: int

Python prototype (for reference only):

setNumDisparities(numDisparities) -> None
Link to this function

setNumIters(self, iters)

View Source
@spec setNumIters(t(), integer()) :: t() | {:error, String.t()}

setNumIters

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • iters: int

Python prototype (for reference only):

setNumIters(iters) -> None
@spec setRadius(t(), integer()) :: t() | {:error, String.t()}

setRadius

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • radius: int

Python prototype (for reference only):

setRadius(radius) -> None
Link to this function

setSigmaRange(self, sigma_range)

View Source
@spec setSigmaRange(t(), number()) :: t() | {:error, String.t()}

setSigmaRange

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • sigma_range: double

Python prototype (for reference only):

setSigmaRange(sigma_range) -> None
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}

Stores algorithm parameters in a file storage

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • fs: Evision.FileStorage.t()

Python prototype (for reference only):

write(fs) -> None
@spec write(t(), Evision.FileStorage.t(), binary()) :: t() | {:error, String.t()}

write

Positional Arguments
  • self: Evision.CUDA.DisparityBilateralFilter.t()
  • fs: Evision.FileStorage.t()
  • name: String

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None