View Source Evision.GeneralizedHough (Evision v0.2.9)
Summary
Functions
Clears the algorithm state
detect
detect
detect
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
getCannyHighThresh
getCannyLowThresh
getDefaultName
getDp
getMaxBufferSize
getMinDist
Reads algorithm parameters from a file storage
save
setCannyHighThresh
setCannyLowThresh
setDp
setMaxBufferSize
setMinDist
setTemplate
setTemplate
setTemplate
setTemplate
Stores algorithm parameters in a file storage
write
Types
@type t() :: %Evision.GeneralizedHough{ref: reference()}
Type that represents an GeneralizedHough
struct.
ref.
reference()
The underlying erlang resource variable.
Functions
@spec clear(Keyword.t()) :: any() | {:error, String.t()}
@spec clear(t()) :: t() | {:error, String.t()}
Clears the algorithm state
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Python prototype (for reference only):
clear() -> None
@spec detect(t(), Evision.Mat.maybe_mat_in()) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
detect
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- image:
Evision.Mat
Return
- positions:
Evision.Mat.t()
. - votes:
Evision.Mat.t()
.
Python prototype (for reference only):
detect(image[, positions[, votes]]) -> positions, votes
@spec detect(t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
detect
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- image:
Evision.Mat
Return
- positions:
Evision.Mat.t()
. - votes:
Evision.Mat.t()
.
Python prototype (for reference only):
detect(image[, positions[, votes]]) -> positions, votes
@spec detect( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in() ) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
detect
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- edges:
Evision.Mat
- dx:
Evision.Mat
- dy:
Evision.Mat
Return
- positions:
Evision.Mat.t()
. - votes:
Evision.Mat.t()
.
Python prototype (for reference only):
detect(edges, dx, dy[, positions[, votes]]) -> positions, votes
@spec detect( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil ) :: {Evision.Mat.t(), Evision.Mat.t()} | {:error, String.t()}
detect
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- edges:
Evision.Mat
- dx:
Evision.Mat
- dy:
Evision.Mat
Return
- positions:
Evision.Mat.t()
. - votes:
Evision.Mat.t()
.
Python prototype (for reference only):
detect(edges, dx, dy[, positions[, votes]]) -> positions, votes
@spec empty(Keyword.t()) :: any() | {:error, String.t()}
@spec empty(t()) :: boolean() | {:error, String.t()}
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
bool
Python prototype (for reference only):
empty() -> retval
@spec getCannyHighThresh(Keyword.t()) :: any() | {:error, String.t()}
@spec getCannyHighThresh(t()) :: integer() | {:error, String.t()}
getCannyHighThresh
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
integer()
Python prototype (for reference only):
getCannyHighThresh() -> retval
@spec getCannyLowThresh(Keyword.t()) :: any() | {:error, String.t()}
@spec getCannyLowThresh(t()) :: integer() | {:error, String.t()}
getCannyLowThresh
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
integer()
Python prototype (for reference only):
getCannyLowThresh() -> retval
@spec getDefaultName(Keyword.t()) :: any() | {:error, String.t()}
@spec getDefaultName(t()) :: binary() | {:error, String.t()}
getDefaultName
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
String
Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.
Python prototype (for reference only):
getDefaultName() -> retval
@spec getDp(Keyword.t()) :: any() | {:error, String.t()}
@spec getDp(t()) :: number() | {:error, String.t()}
getDp
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
double
Python prototype (for reference only):
getDp() -> retval
@spec getMaxBufferSize(Keyword.t()) :: any() | {:error, String.t()}
@spec getMaxBufferSize(t()) :: integer() | {:error, String.t()}
getMaxBufferSize
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
integer()
Python prototype (for reference only):
getMaxBufferSize() -> retval
@spec getMinDist(Keyword.t()) :: any() | {:error, String.t()}
@spec getMinDist(t()) :: number() | {:error, String.t()}
getMinDist
Positional Arguments
- self:
Evision.GeneralizedHough.t()
Return
- retval:
double
Python prototype (for reference only):
getMinDist() -> retval
@spec read(t(), Evision.FileNode.t()) :: t() | {:error, String.t()}
Reads algorithm parameters from a file storage
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- func:
Evision.FileNode
Python prototype (for reference only):
read(fn) -> None
save
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- filename:
String
Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
Python prototype (for reference only):
save(filename) -> None
setCannyHighThresh
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- cannyHighThresh:
integer()
Python prototype (for reference only):
setCannyHighThresh(cannyHighThresh) -> None
setCannyLowThresh
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- cannyLowThresh:
integer()
Python prototype (for reference only):
setCannyLowThresh(cannyLowThresh) -> None
setDp
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- dp:
double
Python prototype (for reference only):
setDp(dp) -> None
setMaxBufferSize
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- maxBufferSize:
integer()
Python prototype (for reference only):
setMaxBufferSize(maxBufferSize) -> None
setMinDist
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- minDist:
double
Python prototype (for reference only):
setMinDist(minDist) -> None
@spec setTemplate(t(), Evision.Mat.maybe_mat_in()) :: t() | {:error, String.t()}
setTemplate
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- templ:
Evision.Mat
Keyword Arguments
- templCenter:
Point
.
Python prototype (for reference only):
setTemplate(templ[, templCenter]) -> None
@spec setTemplate(t(), Evision.Mat.maybe_mat_in(), [{:templCenter, term()}] | nil) :: t() | {:error, String.t()}
setTemplate
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- templ:
Evision.Mat
Keyword Arguments
- templCenter:
Point
.
Python prototype (for reference only):
setTemplate(templ[, templCenter]) -> None
@spec setTemplate( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in() ) :: t() | {:error, String.t()}
setTemplate
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- edges:
Evision.Mat
- dx:
Evision.Mat
- dy:
Evision.Mat
Keyword Arguments
- templCenter:
Point
.
Python prototype (for reference only):
setTemplate(edges, dx, dy[, templCenter]) -> None
@spec setTemplate( t(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in(), [{:templCenter, term()}] | nil ) :: t() | {:error, String.t()}
setTemplate
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- edges:
Evision.Mat
- dx:
Evision.Mat
- dy:
Evision.Mat
Keyword Arguments
- templCenter:
Point
.
Python prototype (for reference only):
setTemplate(edges, dx, dy[, templCenter]) -> None
@spec write(t(), Evision.FileStorage.t()) :: t() | {:error, String.t()}
Stores algorithm parameters in a file storage
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- fs:
Evision.FileStorage
Python prototype (for reference only):
write(fs) -> None
@spec write(t(), Evision.FileStorage.t(), binary()) :: t() | {:error, String.t()}
write
Positional Arguments
- self:
Evision.GeneralizedHough.t()
- fs:
Evision.FileStorage
- name:
String
Has overloading in C++
Python prototype (for reference only):
write(fs, name) -> None