Package synapse.pipelines.color
Class ColorDetection
java.lang.Object
synapse.pipelines.color.ColorDetection
Represents the result of a color detection pipeline. Contains bounding box, center coordinates,
and area of the detected color region.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
bbox
public float[] bboxBounding box of the detected color region as [x, y, width, height]. -
center
public float[] centerCenter of the detected color region as [x, y]. -
area
public float areaArea of the detected color region in pixels squared.
-
-
Constructor Details
-
ColorDetection
public ColorDetection()Default constructor.
-
-
Method Details
-
hashCode
public int hashCode()Computes a hash code for this ColorResult. -
equals
Compares this ColorResult to another object for equality. Two ColorResult objects are equal if their bbox, center, and area are all equal.
-