Skip to content

Commit

Permalink
add getArea() method and add method to check visibility based on aver…
Browse files Browse the repository at this point in the history
…age event rate per pixel in the cluster.

Improve display for event rates.
  • Loading branch information
Tobi Delbruck authored and Tobi Delbruck committed Sep 20, 2024
1 parent 905c531 commit 85a3029
Show file tree
Hide file tree
Showing 3 changed files with 194 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public EventPacket<? extends BasicEvent> filterPacket(EventPacket<? extends Basi
int confidence = clst.getNumEvents();
if (confidence > this.confidenceThreshold) {
java.awt.geom.Point2D.Float location = clst.getLocation();
//log.info("ClusterNumEvents: " + clst.getNumEvents() + " AvgEventRate: "+clst.getAvgEventRate());
//log.info("ClusterNumEvents: " + clst.getNumEvents() + " AvgEventRate: "+clst.getAvgEventRateHz());
//log.info("ClusterLocation: ( " + location.x + " , " + location.y + " )");
if (connectToPanTiltThread == true) {
CommObjForPanTilt filterOutput = new CommObjForPanTilt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public interface ClusterInterface {
*/
public float getRadius();

/** Returns area in pixels.
*
* @return some measure of cluster area size.
*/
public float getArea();


/** Returns measure of cluster 'mass' or importance. This mass is increased by support (e.g. events) and decays away with lack of support.
*
* @return the mass measure.
Expand Down
Loading

0 comments on commit 85a3029

Please sign in to comment.