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

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

getEdgeThreshold

getMaxDiscThreshold

getNumDisparities

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

@spec apply(Keyword.t()) :: any() | {:error, String.t()}
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.

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

  • image: Evision.Mat.

    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(),
  [{:stream, term()}] | nil
) ::
  Evision.Mat.t() | {:error, String.t()}
@spec apply(
  t(),
  Evision.CUDA.GpuMat.t(),
  Evision.CUDA.GpuMat.t(),
  [{:stream, 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.

    Input disparity map. CV_8UC1 and CV_16SC1 types are supported.

  • image: Evision.Mat.

    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(Keyword.t()) :: any() | {:error, String.t()}
@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(Keyword.t()) :: any() | {:error, String.t()}
@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
Link to this function

getDefaultName(named_args)

View Source
@spec getDefaultName(Keyword.t()) :: any() | {:error, String.t()}
@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
Link to this function

getEdgeThreshold(named_args)

View Source
@spec getEdgeThreshold(Keyword.t()) :: any() | {:error, String.t()}
@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(named_args)

View Source
@spec getMaxDiscThreshold(Keyword.t()) :: any() | {:error, String.t()}
@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
Link to this function

getNumDisparities(named_args)

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

getNumDisparities

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

Python prototype (for reference only):

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

getNumIters

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

Python prototype (for reference only):

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

getRadius

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

Python prototype (for reference only):

getRadius() -> retval
Link to this function

getSigmaRange(named_args)

View Source
@spec getSigmaRange(Keyword.t()) :: any() | {:error, String.t()}
@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(Keyword.t()) :: any() | {:error, String.t()}
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}

Reads algorithm parameters from a file storage

Positional Arguments

Python prototype (for reference only):

read(fn) -> None
@spec save(Keyword.t()) :: any() | {:error, String.t()}
@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(named_args)

View Source
@spec setEdgeThreshold(Keyword.t()) :: any() | {:error, String.t()}
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(named_args)

View Source
@spec setMaxDiscThreshold(Keyword.t()) :: any() | {:error, String.t()}
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(named_args)

View Source
@spec setNumDisparities(Keyword.t()) :: any() | {:error, String.t()}
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: integer()

Python prototype (for reference only):

setNumDisparities(numDisparities) -> None
@spec setNumIters(Keyword.t()) :: any() | {:error, String.t()}
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: integer()

Python prototype (for reference only):

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

setRadius

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

Python prototype (for reference only):

setRadius(radius) -> None
Link to this function

setSigmaRange(named_args)

View Source
@spec setSigmaRange(Keyword.t()) :: any() | {:error, String.t()}
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(Keyword.t()) :: any() | {:error, String.t()}
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}

Stores algorithm parameters in a file storage

Positional Arguments

Python prototype (for reference only):

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

write

Positional Arguments

Has overloading in C++

Python prototype (for reference only):

write(fs, name) -> None