View Source Evision.Saliency.MotionSaliencyBinWangApr2014 (Evision v0.2.9)

Summary

Types

t()

Type that represents an Saliency.MotionSaliencyBinWangApr2014 struct.

Functions

create

This function allows the correct initialization of all data structures that will be used by the algorithm.

setImageHeight

This is a utility function that allows to set the correct size (taken from the input image) in the corresponding variables that will be used to size the data structures of the algorithm.

setImageWidth

Types

@type t() :: %Evision.Saliency.MotionSaliencyBinWangApr2014{ref: reference()}

Type that represents an Saliency.MotionSaliencyBinWangApr2014 struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

computeSaliency(named_args)

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

computeSaliency(self, image)

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

computeSaliency

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
  • image: Evision.Mat
Return
  • retval: bool
  • saliencyMap: Evision.Mat.t().

Python prototype (for reference only):

computeSaliency(image[, saliencyMap]) -> retval, saliencyMap
Link to this function

computeSaliency(self, image, opts)

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

computeSaliency

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
  • image: Evision.Mat
Return
  • retval: bool
  • saliencyMap: Evision.Mat.t().

Python prototype (for reference only):

computeSaliency(image[, saliencyMap]) -> retval, saliencyMap
@spec create() :: t() | {:error, String.t()}

create

Return
  • retval: MotionSaliencyBinWangApr2014

Python prototype (for reference only):

create() -> retval
@spec create(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

getImageHeight(named_args)

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

getImageHeight

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
Return
  • retval: integer()

Python prototype (for reference only):

getImageHeight() -> retval
Link to this function

getImageWidth(named_args)

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

getImageWidth

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
Return
  • retval: integer()

Python prototype (for reference only):

getImageWidth() -> retval
@spec init(Keyword.t()) :: any() | {:error, String.t()}
@spec init(t()) :: boolean() | {:error, String.t()}

This function allows the correct initialization of all data structures that will be used by the algorithm.

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
Return
  • retval: bool

Python prototype (for reference only):

init() -> retval
Link to this function

setImageHeight(named_args)

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

setImageHeight(self, val)

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

setImageHeight

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
  • val: integer()

Python prototype (for reference only):

setImageHeight(val) -> None
Link to this function

setImagesize(named_args)

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

setImagesize(self, w, h)

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

This is a utility function that allows to set the correct size (taken from the input image) in the corresponding variables that will be used to size the data structures of the algorithm.

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()

  • w: integer().

    width of input image

  • h: integer().

    height of input image

Python prototype (for reference only):

setImagesize(W, H) -> None
Link to this function

setImageWidth(named_args)

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

setImageWidth(self, val)

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

setImageWidth

Positional Arguments
  • self: Evision.Saliency.MotionSaliencyBinWangApr2014.t()
  • val: integer()

Python prototype (for reference only):

setImageWidth(val) -> None