Package boofcv.gui.image
Class ProcessImageSequence<T extends ImageGray<T>>
java.lang.Object
boofcv.gui.image.ProcessImageSequence<T>
- All Implemented Interfaces:
KeyListener
,MouseListener
,EventListener
- Direct Known Subclasses:
PlaybackImageSequence
public abstract class ProcessImageSequence<T extends ImageGray<T>> extends Object implements MouseListener, KeyListener
An abstract class that takes case of basic GUI and loading of images when processing a sequence.
-
Field Summary
Fields Modifier and Type Field Description protected int
imgHeight
protected int
imgWidth
protected int
savedIndex
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProcessImageSequence(SimpleImageSequence<T> sequence)
-
Method Summary
Modifier and Type Method Description void
addComponent(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(KeyEvent e)
void
keyReleased(KeyEvent e)
void
keyTyped(KeyEvent e)
void
mouseClicked(MouseEvent e)
void
mouseEntered(MouseEvent e)
void
mouseExited(MouseEvent e)
void
mousePressed(MouseEvent e)
void
mouseReleased(MouseEvent e)
void
process()
abstract void
processFrame(T image)
abstract void
updateGUI(BufferedImage guiImage, T origImage)
-
Field Details
-
imgWidth
protected int imgWidth -
imgHeight
protected int imgHeight -
savedIndex
protected int savedIndex
-
-
Constructor Details
-
ProcessImageSequence
-
-
Method Details
-
addComponent
If a component is added here then keyboard and mouse events will be used to control the image processing. -
process
public void process() -
processFrame
-
updateGUI
-
finishedSequence
public void finishedSequence()Called after all the frames in the sequence have been processed. -
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
-
keyTyped
- Specified by:
keyTyped
in interfaceKeyListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
keyPressed
- Specified by:
keyPressed
in interfaceKeyListener
-
keyReleased
- Specified by:
keyReleased
in interfaceKeyListener
-