Property | Type | Description | |
---|---|---|---|
motionpic |
Method | Description | |
---|---|---|
DoNextScanLine ( int x, int y, |
Recursave function for scanlines
|
|
GetBoundsFromMotion ( byte &motion, Point size, Point seed ) : |
Uses a FloodFill scanline algorithm to get a targets bounds
|
|
GetTargets ( ) : IEnumerable |
||
MotionDetector ( ) : System |
The engine in which detects the motion and put it in an easy to use format
|
|
MotionDetector ( Image last_img, Image cur_img ) : System |
Compare to images to one another
|
|
SetNextImages ( Image Last, Image Current ) : void |
Set the next images to compare
|
|
SubtractPixels ( |
Subtract any pixels that havent changed, set those that have to 255
|
|
UpdateIgnoreMotion ( ) : void |
Set the byte array up for fast access to thes pixels
|
Method | Description | |
---|---|---|
Distance ( int x, int y, int a, int b ) : int |
Calculate the distance between to points
|
|
Error ( string error ) : void |
Error without halting on release builds
|
|
GetAverage ( |
Gets the average color in a cerain area
|
|
InRangeOfTarget ( |
Checks to see if movement pixels are in range of a target
|
|
IsInsideIgnoreArea ( int x, int y ) : bool |
Is the pixel inside of the ignore position?
|
|
NotInsideOfTarget ( |
Is the target inside of a specific X and Y
|
public DoNextScanLine ( int x, int y, |
||
x | int | |
y | int | |
motion | ||
return | void |
public GetBoundsFromMotion ( byte &motion, Point size, Point seed ) : |
||
motion | byte | |
size | Point | |
seed | Point | |
return |
public MotionDetector ( Image last_img, Image cur_img ) : System | ||
last_img | Image | The previous image |
cur_img | Image | The current image |
return | System |
public SetNextImages ( Image Last, Image Current ) : void | ||
Last | Image | Image to compare to |
Current | Image | Image at this moment in time |
return | void |
public SubtractPixels ( |
||
curimg | Current image | |
lastimg | Last image | |
pixeldata | byte | 2 Dem byte array to place movement |
return |