View Source Evision.BOWKMeansTrainer (Evision v0.2.9)

Summary

Types

t()

Type that represents an BOWKMeansTrainer struct.

Types

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

Type that represents an BOWKMeansTrainer struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

Link to this function

bowKMeansTrainer(named_args)

View Source
@spec bowKMeansTrainer(Keyword.t()) :: any() | {:error, String.t()}
@spec bowKMeansTrainer(integer()) :: t() | {:error, String.t()}

The constructor.

Positional Arguments
  • clusterCount: integer()
Keyword Arguments
  • termcrit: TermCriteria.
  • attempts: integer().
  • flags: integer().
Return
  • self: Evision.BOWKMeansTrainer.t()

@see cv::kmeans

Python prototype (for reference only):

BOWKMeansTrainer(clusterCount[, termcrit[, attempts[, flags]]]) -> <BOWKMeansTrainer object>
Link to this function

bowKMeansTrainer(clusterCount, opts)

View Source
@spec bowKMeansTrainer(
  integer(),
  [attempts: term(), flags: term(), termcrit: term()] | nil
) ::
  t() | {:error, String.t()}

The constructor.

Positional Arguments
  • clusterCount: integer()
Keyword Arguments
  • termcrit: TermCriteria.
  • attempts: integer().
  • flags: integer().
Return
  • self: Evision.BOWKMeansTrainer.t()

@see cv::kmeans

Python prototype (for reference only):

BOWKMeansTrainer(clusterCount[, termcrit[, attempts[, flags]]]) -> <BOWKMeansTrainer object>
@spec cluster(Keyword.t()) :: any() | {:error, String.t()}
@spec cluster(t()) :: Evision.Mat.t() | {:error, String.t()}

cluster

Positional Arguments
  • self: Evision.BOWKMeansTrainer.t()
Return
  • retval: Evision.Mat.t()

Python prototype (for reference only):

cluster() -> retval
Link to this function

cluster(self, descriptors)

View Source
@spec cluster(t(), Evision.Mat.maybe_mat_in()) ::
  Evision.Mat.t() | {:error, String.t()}

cluster

Positional Arguments
  • self: Evision.BOWKMeansTrainer.t()
  • descriptors: Evision.Mat
Return
  • retval: Evision.Mat.t()

Python prototype (for reference only):

cluster(descriptors) -> retval