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

Summary

Types

t()

Type that represents an ImgHash.MarrHildrethHash struct.

Types

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

Type that represents an ImgHash.MarrHildrethHash struct.

  • ref. reference()

    The underlying erlang resource variable.

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(Keyword.t()) :: any() | {:error, String.t()}
@spec create([alpha: term(), scale: 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(Keyword.t()) :: any() | {:error, String.t()}
@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(Keyword.t()) :: any() | {:error, String.t()}
@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(named_args)

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