public class Clustering extends Object
Modifier and Type | Field and Description |
---|---|
float |
cutoff
how far overlapped two things must be before they can be in the same cluster
|
ScaleIndexRectangle[] |
windows
The windows to compare
|
Constructor and Description |
---|
Clustering()
sets a default cutoff of .5f
|
Modifier and Type | Method and Description |
---|---|
void |
clusterConfidentIndices()
Clusters the overlap of each window to each other window and
sets the results in the
DetectionResult instance. |
void |
release()
the pointer to windows is set to null
|
public ScaleIndexRectangle[] windows
public float cutoff
public Clustering()
public void release()
public void clusterConfidentIndices()
DetectionResult
instance.
2 things are saved to DetectionResult
:
- The number of clusters (1 means we have a very good grouping of windows)
- the detector bounding box, a mean of all the bounding boxes in the single cluster