View Source Evision.BOWKMeansTrainer (Evision v0.2.9)
Summary
Types
@type t() :: %Evision.BOWKMeansTrainer{ref: reference()}
Type that represents an BOWKMeansTrainer
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@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>
@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
@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