public class WebcamMotionEvent
extends java.util.EventObject
| Constructor and Description |
|---|
WebcamMotionEvent(WebcamMotionDetector detector,
java.awt.image.BufferedImage previousImage,
java.awt.image.BufferedImage currentImage,
double strength,
java.awt.Point cog)
Create detected motion event.
|
WebcamMotionEvent(WebcamMotionDetector detector,
java.awt.image.BufferedImage previousImage,
java.awt.image.BufferedImage currentImage,
double strength,
java.awt.Point cog,
java.util.ArrayList<java.awt.Point> points)
Create detected motion event.
|
WebcamMotionEvent(WebcamMotionDetector detector,
double strength,
java.awt.Point cog)
Create detected motion event.
|
WebcamMotionEvent(WebcamMotionDetector detector,
double strength,
java.awt.Point cog,
java.util.ArrayList<java.awt.Point> points)
Create detected motion event.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getArea()
Get percentage fraction of image covered by motion.
|
java.awt.Point |
getCog() |
java.awt.image.BufferedImage |
getCurrentImage()
Returns image with the motion detected.
|
java.util.ArrayList<java.awt.Point> |
getPoints() |
java.awt.image.BufferedImage |
getPreviousImage()
Returns last image before the motion.
|
WebcamMotionDetector |
getSource() |
Webcam |
getWebcam() |
public WebcamMotionEvent(WebcamMotionDetector detector, double strength, java.awt.Point cog)
detector - strength - cog - center of motion gravitypublic WebcamMotionEvent(WebcamMotionDetector detector, double strength, java.awt.Point cog, java.util.ArrayList<java.awt.Point> points)
detector - strength - cog - center of motion gravitypoints - list of all detected pointspublic WebcamMotionEvent(WebcamMotionDetector detector, java.awt.image.BufferedImage previousImage, java.awt.image.BufferedImage currentImage, double strength, java.awt.Point cog)
detector - previousImage - currentImage - strength - cog - center of motion gravitypublic WebcamMotionEvent(WebcamMotionDetector detector, java.awt.image.BufferedImage previousImage, java.awt.image.BufferedImage currentImage, double strength, java.awt.Point cog, java.util.ArrayList<java.awt.Point> points)
detector - previousImage - currentImage - strength - cog - center of motion gravitypoints - list of all detected pointspublic java.util.ArrayList<java.awt.Point> getPoints()
public double getArea()
public java.awt.Point getCog()
public Webcam getWebcam()
public java.awt.image.BufferedImage getPreviousImage()
public java.awt.image.BufferedImage getCurrentImage()
public WebcamMotionDetector getSource()
getSource in class java.util.EventObjectCopyright © 2012-2018 Bartosz Firyn (SarXos). All Rights Reserved.