Package boofcv.gui.image
Class ProcessImageSequence<T extends boofcv.struct.image.ImageGray<T>>
- java.lang.Object
-
- boofcv.gui.image.ProcessImageSequence<T>
-
- All Implemented Interfaces:
java.awt.event.KeyListener,java.awt.event.MouseListener,java.util.EventListener
- Direct Known Subclasses:
PlaybackImageSequence
public abstract class ProcessImageSequence<T extends boofcv.struct.image.ImageGray<T>> extends java.lang.Object implements java.awt.event.MouseListener, java.awt.event.KeyListenerAn 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 intimgHeightprotected intimgWidthprotected intsavedIndex
-
Constructor Summary
Constructors Constructor Description ProcessImageSequence(boofcv.io.image.SimpleImageSequence<T> sequence)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddComponent(javax.swing.JComponent comp)If a component is added here then keyboard and mouse events will be used to control the image processing.voidfinishedSequence()Called after all the frames in the sequence have been processed.voidkeyPressed(java.awt.event.KeyEvent e)voidkeyReleased(java.awt.event.KeyEvent e)voidkeyTyped(java.awt.event.KeyEvent e)voidmouseClicked(java.awt.event.MouseEvent e)voidmouseEntered(java.awt.event.MouseEvent e)voidmouseExited(java.awt.event.MouseEvent e)voidmousePressed(java.awt.event.MouseEvent e)voidmouseReleased(java.awt.event.MouseEvent e)voidprocess()abstract voidprocessFrame(T image)abstract voidupdateGUI(java.awt.image.BufferedImage guiImage, T origImage)
-
-
-
Constructor Detail
-
ProcessImageSequence
public ProcessImageSequence(boofcv.io.image.SimpleImageSequence<T> sequence)
-
-
Method Detail
-
addComponent
public 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.- Parameters:
comp-
-
process
public void process()
-
processFrame
public abstract void processFrame(T image)
-
updateGUI
public abstract void updateGUI(java.awt.image.BufferedImage guiImage, T origImage)
-
finishedSequence
public void finishedSequence()
Called after all the frames in the sequence have been processed.
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent e)
- Specified by:
mouseClickedin interfacejava.awt.event.MouseListener
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressedin interfacejava.awt.event.MouseListener
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleasedin interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent e)
- Specified by:
mouseEnteredin interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent e)
- Specified by:
mouseExitedin interfacejava.awt.event.MouseListener
-
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTypedin interfacejava.awt.event.KeyListener
-
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressedin interfacejava.awt.event.KeyListener
-
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleasedin interfacejava.awt.event.KeyListener
-
-