View Source Evision.LineMod.ColorGradient (Evision v0.1.28)

Link to this section Summary



Type that represents an LineMod.ColorGradient struct.

Link to this section Types

@type t() :: %Evision.LineMod.ColorGradient{ref: reference()}

Type that represents an LineMod.ColorGradient struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

create(weak_threshold, num_features, strong_threshold)

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


Positional Arguments
  • weak_threshold: float
  • num_features: size_t
  • strong_threshold: float
  • retval: ColorGradient

\brief Constructor. \param weak_threshold When quantizing, discard gradients with magnitude less than this. \param num_features How many features a template must contain. \param strong_threshold Consider as candidate features only gradients whose norms are

                     larger than this.

Python prototype (for reference only):

create(weak_threshold, num_features, strong_threshold) -> retval
@spec get_num_features(t()) :: integer()
Link to this function


View Source
@spec get_strong_threshold(t()) :: number()
Link to this function


View Source
@spec get_weak_threshold(t()) :: number()