Monty.Frameworks.Utils.EdgeDetection.EdgeFeatures (ExTbpMonty.Core v0.1.0)

Copy Markdown View Source

What one patch of an image says about the edge in it.

Mirrors tbp/monty/frameworks/utils/edge_detection.py::EdgeFeatures.

angle is nil when there is no edge — a uniform patch, or one whose edge does not pass through the middle — and 0.0 would be a lie in that case: zero radians is a direction, and no edge has none. is_geometric_edge says whether the edge is a crease in the world (depth changes across it) rather than a change in ink; a texture edge on a surface that is not behind anything is still an edge, but it is not a boundary.

Summary

Functions

The answer for a patch with no edge in it.

Types

t()

@type t() :: %Monty.Frameworks.Utils.EdgeDetection.EdgeFeatures{
  angle: float() | nil,
  coherence: float(),
  has_edge: boolean(),
  is_geometric_edge: boolean(),
  strength: float()
}

Functions

no_edge()

@spec no_edge() :: t()

The answer for a patch with no edge in it.