View Source Evision.LineMod.Modality (Evision v0.1.34)
Summary
Types
@type t() :: %Evision.LineMod.Modality{ref: reference()}
Type that represents an LineMod.Modality
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec create(Evision.FileNode.t()) :: t() | {:error, String.t()}
@spec create(binary()) :: t() | {:error, String.t()}
Variant 1:
create
Positional Arguments
- fn_:
Evision.FileNode.t()
Return
- retval:
Modality
\brief Load a modality from file.
Python prototype (for reference only):
create(fn_) -> retval
Variant 2:
create
Positional Arguments
- modality_type:
String
Return
- retval:
Modality
\brief Create modality by name. The following modality types are supported:
- "ColorGradient"
- "DepthNormal"
Python prototype (for reference only):
create(modality_type) -> retval
name
Positional Arguments
- self:
Evision.LineMod.Modality.t()
Return
- retval:
String
Python prototype (for reference only):
name() -> retval
@spec process(t(), Evision.Mat.maybe_mat_in()) :: Evision.LineMod.QuantizedPyramid.t() | {:error, String.t()}
process
Positional Arguments
- self:
Evision.LineMod.Modality.t()
- src:
Evision.Mat.t()
Keyword Arguments
- mask:
Evision.Mat.t()
.
Return
- retval:
QuantizedPyramid
\brief Form a quantized image pyramid from a source image. \param[in] src The source image. Type depends on the modality. \param[in] mask Optional mask. If not empty, unmasked pixels are set to zero
in quantized image and cannot be extracted as features.
Python prototype (for reference only):
process(src[, mask]) -> retval
@spec process(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) :: Evision.LineMod.QuantizedPyramid.t() | {:error, String.t()}
process
Positional Arguments
- self:
Evision.LineMod.Modality.t()
- src:
Evision.Mat.t()
Keyword Arguments
- mask:
Evision.Mat.t()
.
Return
- retval:
QuantizedPyramid
\brief Form a quantized image pyramid from a source image. \param[in] src The source image. Type depends on the modality. \param[in] mask Optional mask. If not empty, unmasked pixels are set to zero
in quantized image and cannot be extracted as features.
Python prototype (for reference only):
process(src[, mask]) -> retval
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}
read
Positional Arguments
- self:
Evision.LineMod.Modality.t()
- fn_:
Evision.FileNode.t()
Python prototype (for reference only):
read(fn_) -> None