|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biocell.BioThread devs.visionpackage.org.cmotch.imageviewer.DisplayImage
public class DisplayImage
Threaded class that will capture images from a Framegrabber and process them depending on what processing is enabled
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
DisplayImage(ImagePanel ip,
FrameGrabber frameGrab,
PMotionCalculator pmc)
Constructor |
Method Summary | |
---|---|
int |
getFrameCount()
Get the current framecount |
void |
resetFrameCount()
Reset the framecount |
void |
run()
Start the thread, the thread runs through and checks to see what processing is enabled and executes the processing, then sleeps for 25ms |
void |
setEdgeType(int edgeType)
Set the edge type used by the edge detection processor |
void |
stopCapture()
Stop the capture / display thread from running |
void |
toggleBlackWhite()
Toggle the binarization image processor |
void |
toggleColorDetection()
Toggle the color detection processor |
void |
toggleFindEdges()
Toggle the edge detection processor on and off |
void |
toggleFindFullEdges()
Toggle the full edge detection processor, this processor combinins binirization, gaussian blur and horizontal and vertical edge detection |
void |
toggleFindMotion()
Toggle motion detection |
void |
toggleGaussianBlur()
Toggle gaussian blur processor |
void |
toggleGrayScale()
Toggle gray scale of the image |
Methods inherited from class biocell.BioThread |
---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DisplayImage(ImagePanel ip, FrameGrabber frameGrab, PMotionCalculator pmc)
ip
- The image panel that the image will be displayed onframeGrab
- The framegrabber that will capture the images from the cameraMethod Detail |
---|
public void stopCapture()
public void setEdgeType(int edgeType)
edgeType
- The edgetype that the edge detection processor will usepublic void toggleFindEdges()
public void toggleFindFullEdges()
public void toggleGrayScale()
public void toggleColorDetection()
public void toggleBlackWhite()
public void toggleFindMotion()
public void toggleGaussianBlur()
public int getFrameCount()
public void resetFrameCount()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |