View Source Evision.Quality.QualityGMSD (Evision v0.2.9)

Summary

Types

t()

Type that represents an Quality.QualityGMSD struct.

Functions

Implements Algorithm::clear()

Compute GMSD

static method for computing quality

static method for computing quality

Create an object which calculates image quality

Implements Algorithm::empty()

Types

@type t() :: %Evision.Quality.QualityGMSD{ref: reference()}

Type that represents an Quality.QualityGMSD struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

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

Implements Algorithm::clear()

Positional Arguments
  • self: Evision.Quality.QualityGMSD.t()

Python prototype (for reference only):

clear() -> None
@spec compute(Keyword.t()) :: any() | {:error, String.t()}
@spec compute(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.scalar() | {:error, String.t()}

Compute GMSD

Positional Arguments
  • self: Evision.Quality.QualityGMSD.t()

  • cmp: Evision.Mat.

    comparison image

Return
  • retval: Evision.scalar().t()

@returns cv::Scalar with per-channel quality value. Values range from 0 (worst) to 1 (best)

Python prototype (for reference only):

compute(cmp) -> retval

static method for computing quality

Positional Arguments
Return
  • retval: Evision.scalar().t()

  • qualityMap: Evision.Mat.t().

    output quality map, or cv::noArray()

@returns cv::Scalar with per-channel quality value. Values range from 0 (worst) to 1 (best)

Python prototype (for reference only):

compute(ref, cmp[, qualityMap]) -> retval, qualityMap
Link to this function

compute(self, ref, cmp, opts)

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

static method for computing quality

Positional Arguments
Return
  • retval: Evision.scalar().t()

  • qualityMap: Evision.Mat.t().

    output quality map, or cv::noArray()

@returns cv::Scalar with per-channel quality value. Values range from 0 (worst) to 1 (best)

Python prototype (for reference only):

compute(ref, cmp[, qualityMap]) -> retval, qualityMap
@spec create(Keyword.t()) :: any() | {:error, String.t()}
@spec create(Evision.Mat.maybe_mat_in()) :: t() | {:error, String.t()}

Create an object which calculates image quality

Positional Arguments
Return
  • retval: QualityGMSD

Python prototype (for reference only):

create(ref) -> retval
@spec empty(Keyword.t()) :: any() | {:error, String.t()}
@spec empty(t()) :: boolean() | {:error, String.t()}

Implements Algorithm::empty()

Positional Arguments
  • self: Evision.Quality.QualityGMSD.t()
Return
  • retval: bool

Python prototype (for reference only):

empty() -> retval