public abstract class ProcessImageSequence<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
implements java.awt.event.MouseListener, java.awt.event.KeyListener
| Modifier and Type | Field and Description |
|---|---|
protected int |
imgHeight |
protected int |
imgWidth |
protected int |
savedIndex |
| Constructor and Description |
|---|
ProcessImageSequence(boofcv.io.image.SimpleImageSequence<T> sequence) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(javax.swing.JComponent comp)
If a component is added here then keyboard and mouse events will be used to control the
image processing.
|
void |
finishedSequence()
Called after all the frames in the sequence have been processed.
|
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
process() |
abstract void |
processFrame(T image) |
abstract void |
updateGUI(java.awt.image.BufferedImage guiImage,
T origImage) |
protected int imgWidth
protected int imgHeight
protected int savedIndex
public ProcessImageSequence(boofcv.io.image.SimpleImageSequence<T> sequence)
public void addComponent(javax.swing.JComponent comp)
comp - public void process()
public abstract void processFrame(T image)
public abstract void updateGUI(java.awt.image.BufferedImage guiImage,
T origImage)
public void finishedSequence()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListenerpublic void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListener