View Source Evision.XImgProc.RICInterpolator (Evision v0.2.9)

Summary

Types

t()

Type that represents an XImgProc.RICInterpolator struct.

Functions

getRefineModels

getSuperpixelMode

getSuperpixelNNCnt

getSuperpixelRuler

getSuperpixelSize

getUseGlobalSmootherFilter

getUseVariationalRefinement

Alpha is a parameter defining a global weight for transforming geodesic distance into weight.

Alpha is a parameter defining a global weight for transforming geodesic distance into weight.

Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term. This implementation is based on a rather simple gradient-based edge map estimation. To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been used in the original publication) that may lead to improved accuracies, the internal edge map estimation can be bypassed here.

Sets the respective fastGlobalSmootherFilter() parameter.

Sets the respective fastGlobalSmootherFilter() parameter.

Sets the respective fastGlobalSmootherFilter() parameter.

Sets the respective fastGlobalSmootherFilter() parameter.

K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of @cite Hu2017 uses 32.

K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of @cite Hu2017 uses 32.

MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.

MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.

Parameter defining the number of iterations for piece-wise affine model estimation.

Parameter defining the number of iterations for piece-wise affine model estimation.

Parameter to choose wether additional refinement of the piece-wise affine models is employed.

Parameter to choose wether additional refinement of the piece-wise affine models is employed.

Parameter to choose superpixel algorithm variant to use

Parameter to choose superpixel algorithm variant to use

Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.

Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.

Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.

Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.

Get the internal cost, i.e. edge map, used for estimating the edge-aware term.

Get the internal cost, i.e. edge map, used for estimating the edge-aware term.

Sets whether the fastGlobalSmootherFilter() post-processing is employed.

Sets whether the fastGlobalSmootherFilter() post-processing is employed.

Parameter to choose wether the VariationalRefinement post-processing is employed.

Parameter to choose wether the VariationalRefinement post-processing is employed.

Types

@type t() :: %Evision.XImgProc.RICInterpolator{ref: reference()}

Type that represents an XImgProc.RICInterpolator struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec getAlpha(Keyword.t()) :: any() | {:error, String.t()}
@spec getAlpha(t()) :: number() | {:error, String.t()}

getAlpha

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: float

@copybrief setAlpha @see setAlpha/2

Python prototype (for reference only):

getAlpha() -> retval
Link to this function

getFGSLambda(named_args)

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

getFGSLambda

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: float

@copybrief setFGSLambda @see setFGSLambda/2

Python prototype (for reference only):

getFGSLambda() -> retval
@spec getFGSSigma(Keyword.t()) :: any() | {:error, String.t()}
@spec getFGSSigma(t()) :: number() | {:error, String.t()}

getFGSSigma

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: float

@copybrief setFGSSigma @see setFGSSigma/2

Python prototype (for reference only):

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

getK

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: integer()

@copybrief setK @see setK/2

Python prototype (for reference only):

getK() -> retval
@spec getMaxFlow(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxFlow(t()) :: number() | {:error, String.t()}

getMaxFlow

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: float

@copybrief setMaxFlow @see setMaxFlow/2

Python prototype (for reference only):

getMaxFlow() -> retval
Link to this function

getModelIter(named_args)

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

getModelIter

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: integer()

@copybrief setModelIter @see setModelIter/2

Python prototype (for reference only):

getModelIter() -> retval
Link to this function

getRefineModels(named_args)

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

getRefineModels

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: bool

@copybrief setRefineModels @see setRefineModels/2

Python prototype (for reference only):

getRefineModels() -> retval
Link to this function

getSuperpixelMode(named_args)

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

getSuperpixelMode

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: integer()

@copybrief setSuperpixelMode @see setSuperpixelMode/2

Python prototype (for reference only):

getSuperpixelMode() -> retval
Link to this function

getSuperpixelNNCnt(named_args)

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

getSuperpixelNNCnt

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: integer()

@copybrief setSuperpixelNNCnt @see setSuperpixelNNCnt/2

Python prototype (for reference only):

getSuperpixelNNCnt() -> retval
Link to this function

getSuperpixelRuler(named_args)

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

getSuperpixelRuler

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: float

@copybrief setSuperpixelRuler @see setSuperpixelRuler/2

Python prototype (for reference only):

getSuperpixelRuler() -> retval
Link to this function

getSuperpixelSize(named_args)

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

getSuperpixelSize

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: integer()

@copybrief setSuperpixelSize @see setSuperpixelSize/2

Python prototype (for reference only):

getSuperpixelSize() -> retval
Link to this function

getUseGlobalSmootherFilter(named_args)

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

getUseGlobalSmootherFilter

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: bool

@copybrief setUseGlobalSmootherFilter @see setUseGlobalSmootherFilter/2

Python prototype (for reference only):

getUseGlobalSmootherFilter() -> retval
Link to this function

getUseVariationalRefinement(named_args)

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

getUseVariationalRefinement

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Return
  • retval: bool

@copybrief setUseVariationalRefinement @see setUseVariationalRefinement/2

Python prototype (for reference only):

getUseVariationalRefinement() -> retval
@spec setAlpha(Keyword.t()) :: any() | {:error, String.t()}
@spec setAlpha(t()) :: t() | {:error, String.t()}

Alpha is a parameter defining a global weight for transforming geodesic distance into weight.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • alpha: float.

Python prototype (for reference only):

setAlpha([, alpha]) -> None
@spec setAlpha(t(), [{:alpha, term()}] | nil) :: t() | {:error, String.t()}

Alpha is a parameter defining a global weight for transforming geodesic distance into weight.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • alpha: float.

Python prototype (for reference only):

setAlpha([, alpha]) -> None
@spec setCostMap(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

setCostMap(self, costMap)

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

Interface to provide a more elaborated cost map, i.e. edge map, for the edge-aware term. This implementation is based on a rather simple gradient-based edge map estimation. To used more complex edge map estimator (e.g. StructuredEdgeDetection that has been used in the original publication) that may lead to improved accuracies, the internal edge map estimation can be bypassed here.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()

  • costMap: Evision.Mat.

    a type CV_32FC1 Mat is required.

@see cv::ximgproc::createSuperpixelSLIC

Python prototype (for reference only):

setCostMap(costMap) -> None
Link to this function

setFGSLambda(named_args)

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

Sets the respective fastGlobalSmootherFilter() parameter.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • lambda: float.

Python prototype (for reference only):

setFGSLambda([, lambda]) -> None
Link to this function

setFGSLambda(self, opts)

View Source
@spec setFGSLambda(t(), [{:lambda, term()}] | nil) :: t() | {:error, String.t()}

Sets the respective fastGlobalSmootherFilter() parameter.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • lambda: float.

Python prototype (for reference only):

setFGSLambda([, lambda]) -> None
@spec setFGSSigma(Keyword.t()) :: any() | {:error, String.t()}
@spec setFGSSigma(t()) :: t() | {:error, String.t()}

Sets the respective fastGlobalSmootherFilter() parameter.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • sigma: float.

Python prototype (for reference only):

setFGSSigma([, sigma]) -> None
@spec setFGSSigma(t(), [{:sigma, term()}] | nil) :: t() | {:error, String.t()}

Sets the respective fastGlobalSmootherFilter() parameter.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • sigma: float.

Python prototype (for reference only):

setFGSSigma([, sigma]) -> None
@spec setK(Keyword.t()) :: any() | {:error, String.t()}
@spec setK(t()) :: t() | {:error, String.t()}

K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of @cite Hu2017 uses 32.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • k: integer().

Python prototype (for reference only):

setK([, k]) -> None
@spec setK(t(), [{:k, term()}] | nil) :: t() | {:error, String.t()}

K is a number of nearest-neighbor matches considered, when fitting a locally affine model for a superpixel segment. However, lower values would make the interpolation noticeably faster. The original implementation of @cite Hu2017 uses 32.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • k: integer().

Python prototype (for reference only):

setK([, k]) -> None
@spec setMaxFlow(Keyword.t()) :: any() | {:error, String.t()}
@spec setMaxFlow(t()) :: t() | {:error, String.t()}

MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • maxFlow: float.

Python prototype (for reference only):

setMaxFlow([, maxFlow]) -> None
@spec setMaxFlow(t(), [{:maxFlow, term()}] | nil) :: t() | {:error, String.t()}

MaxFlow is a threshold to validate the predictions using a certain piece-wise affine model. If the prediction exceeds the treshold the translational model will be applied instead.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • maxFlow: float.

Python prototype (for reference only):

setMaxFlow([, maxFlow]) -> None
Link to this function

setModelIter(named_args)

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

Parameter defining the number of iterations for piece-wise affine model estimation.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • modelIter: integer().

Python prototype (for reference only):

setModelIter([, modelIter]) -> None
Link to this function

setModelIter(self, opts)

View Source
@spec setModelIter(t(), [{:modelIter, term()}] | nil) :: t() | {:error, String.t()}

Parameter defining the number of iterations for piece-wise affine model estimation.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • modelIter: integer().

Python prototype (for reference only):

setModelIter([, modelIter]) -> None
Link to this function

setRefineModels(named_args)

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

Parameter to choose wether additional refinement of the piece-wise affine models is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • refineModles: bool.

Python prototype (for reference only):

setRefineModels([, refineModles]) -> None
Link to this function

setRefineModels(self, opts)

View Source
@spec setRefineModels(t(), [{:refineModles, term()}] | nil) ::
  t() | {:error, String.t()}

Parameter to choose wether additional refinement of the piece-wise affine models is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • refineModles: bool.

Python prototype (for reference only):

setRefineModels([, refineModles]) -> None
Link to this function

setSuperpixelMode(named_args)

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

Parameter to choose superpixel algorithm variant to use:

  • cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
  • cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
  • cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • mode: integer().

@see cv::ximgproc::createSuperpixelSLIC

Python prototype (for reference only):

setSuperpixelMode([, mode]) -> None
Link to this function

setSuperpixelMode(self, opts)

View Source
@spec setSuperpixelMode(t(), [{:mode, term()}] | nil) :: t() | {:error, String.t()}

Parameter to choose superpixel algorithm variant to use:

  • cv::ximgproc::SLICType SLIC segments image using a desired region_size (value: 100)
  • cv::ximgproc::SLICType SLICO will optimize using adaptive compactness factor (value: 101)
  • cv::ximgproc::SLICType MSLIC will optimize using manifold methods resulting in more content-sensitive superpixels (value: 102).
Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • mode: integer().

@see cv::ximgproc::createSuperpixelSLIC

Python prototype (for reference only):

setSuperpixelMode([, mode]) -> None
Link to this function

setSuperpixelNNCnt(named_args)

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

Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • spNN: integer().

Python prototype (for reference only):

setSuperpixelNNCnt([, spNN]) -> None
Link to this function

setSuperpixelNNCnt(self, opts)

View Source
@spec setSuperpixelNNCnt(t(), [{:spNN, term()}] | nil) :: t() | {:error, String.t()}

Parameter defines the number of nearest-neighbor matches for each superpixel considered, when fitting a locally affine model.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • spNN: integer().

Python prototype (for reference only):

setSuperpixelNNCnt([, spNN]) -> None
Link to this function

setSuperpixelRuler(named_args)

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

Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • ruler: float.

@see cv::ximgproc::createSuperpixelSLIC

Python prototype (for reference only):

setSuperpixelRuler([, ruler]) -> None
Link to this function

setSuperpixelRuler(self, opts)

View Source
@spec setSuperpixelRuler(t(), [{:ruler, term()}] | nil) :: t() | {:error, String.t()}

Parameter to tune enforcement of superpixel smoothness factor used for oversegmentation.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • ruler: float.

@see cv::ximgproc::createSuperpixelSLIC

Python prototype (for reference only):

setSuperpixelRuler([, ruler]) -> None
Link to this function

setSuperpixelSize(named_args)

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

Get the internal cost, i.e. edge map, used for estimating the edge-aware term.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • spSize: integer().

@see setCostMap/2

Python prototype (for reference only):

setSuperpixelSize([, spSize]) -> None
Link to this function

setSuperpixelSize(self, opts)

View Source
@spec setSuperpixelSize(t(), [{:spSize, term()}] | nil) :: t() | {:error, String.t()}

Get the internal cost, i.e. edge map, used for estimating the edge-aware term.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • spSize: integer().

@see setCostMap/2

Python prototype (for reference only):

setSuperpixelSize([, spSize]) -> None
Link to this function

setUseGlobalSmootherFilter(named_args)

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

Sets whether the fastGlobalSmootherFilter() post-processing is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • use_FGS: bool.

Python prototype (for reference only):

setUseGlobalSmootherFilter([, use_FGS]) -> None
Link to this function

setUseGlobalSmootherFilter(self, opts)

View Source
@spec setUseGlobalSmootherFilter(t(), [{:use_FGS, term()}] | nil) ::
  t() | {:error, String.t()}

Sets whether the fastGlobalSmootherFilter() post-processing is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • use_FGS: bool.

Python prototype (for reference only):

setUseGlobalSmootherFilter([, use_FGS]) -> None
Link to this function

setUseVariationalRefinement(named_args)

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

Parameter to choose wether the VariationalRefinement post-processing is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • use_variational_refinement: bool.

Python prototype (for reference only):

setUseVariationalRefinement([, use_variational_refinement]) -> None
Link to this function

setUseVariationalRefinement(self, opts)

View Source
@spec setUseVariationalRefinement(t(), [{:use_variational_refinement, term()}] | nil) ::
  t() | {:error, String.t()}

Parameter to choose wether the VariationalRefinement post-processing is employed.

Positional Arguments
  • self: Evision.XImgProc.RICInterpolator.t()
Keyword Arguments
  • use_variational_refinement: bool.

Python prototype (for reference only):

setUseVariationalRefinement([, use_variational_refinement]) -> None