View Source Evision.BOWKMeansTrainer (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.BOWKMeansTrainer struct.

Link to this section Types

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

Type that represents an Evision.BOWKMeansTrainer struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

bowKMeansTrainer(clusterCount)

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

The constructor.

Positional Arguments
  • clusterCount: int
Keyword Arguments
  • termcrit: TermCriteria.
  • attempts: int.
  • flags: int.
Return

@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(), [{atom(), term()}, ...] | nil) ::
  t() | {:error, String.t()}

The constructor.

Positional Arguments
  • clusterCount: int
Keyword Arguments
  • termcrit: TermCriteria.
  • attempts: int.
  • flags: int.
Return

@see cv::kmeans

Python prototype (for reference only):

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

cluster

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

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

Python prototype (for reference only):

cluster(descriptors) -> retval