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

Link to this section Summary

Types

t()

Type that represents an ImgHash.BlockMeanHash struct.

Functions

create

create

getMean

Create BlockMeanHash object

Link to this section Types

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

Type that represents an ImgHash.BlockMeanHash struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

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

create

Keyword Arguments
  • mode: int.
Return
  • retval: BlockMeanHash

Python prototype (for reference only):

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

create

Keyword Arguments
  • mode: int.
Return
  • retval: BlockMeanHash

Python prototype (for reference only):

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

getMean

Positional Arguments
  • self: Evision.ImgHash.BlockMeanHash.t()
Return
  • retval: [double]

Python prototype (for reference only):

getMean() -> retval
@spec setMode(t(), integer()) :: t() | {:error, String.t()}

Create BlockMeanHash object

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

  • mode: int.

    the mode

Python prototype (for reference only):

setMode(mode) -> None