View Source Evision.ImgHash.MarrHildrethHash (Evision v0.1.28)

Link to this section Summary

Types

t()

Type that represents an ImgHash.MarrHildrethHash struct.

Functions

create

create

self explain

self explain

Set Mh kernel parameters

Link to this section Types

@type t() :: %Evision.ImgHash.MarrHildrethHash{ref: reference()}

Type that represents an ImgHash.MarrHildrethHash struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec create() :: t() | {:error, String.t()}

create

Keyword Arguments
  • alpha: float.

    int scale factor for marr wavelet (default=2).

  • scale: float.

    int level of scale factor (default = 1)

Return
  • retval: Evision.ImgHash.MarrHildrethHash.t()

Python prototype (for reference only):

create([, alpha[, scale]]) -> retval
@spec create([{atom(), term()}, ...] | nil) :: t() | {:error, String.t()}

create

Keyword Arguments
  • alpha: float.

    int scale factor for marr wavelet (default=2).

  • scale: float.

    int level of scale factor (default = 1)

Return
  • retval: Evision.ImgHash.MarrHildrethHash.t()

Python prototype (for reference only):

create([, alpha[, scale]]) -> retval
@spec getAlpha(t()) :: number() | {:error, String.t()}

self explain

Positional Arguments
  • self: Evision.ImgHash.MarrHildrethHash.t()
Return
  • retval: float

Python prototype (for reference only):

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

self explain

Positional Arguments
  • self: Evision.ImgHash.MarrHildrethHash.t()
Return
  • retval: float

Python prototype (for reference only):

getScale() -> retval
Link to this function

setKernelParam(self, alpha, scale)

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

Set Mh kernel parameters

Positional Arguments
  • self: Evision.ImgHash.MarrHildrethHash.t()

  • alpha: float.

    int scale factor for marr wavelet (default=2).

  • scale: float.

    int level of scale factor (default = 1)

Python prototype (for reference only):

setKernelParam(alpha, scale) -> None