Class ProcessImageSequence<T extends boofcv.struct.image.ImageGray<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.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 
      Constructor Description
      ProcessImageSequence​(boofcv.io.image.SimpleImageSequence<T> sequence)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • imgWidth

        protected int imgWidth
      • imgHeight

        protected int imgHeight
      • savedIndex

        protected int savedIndex
    • 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:
        mouseClicked in interface java.awt.event.MouseListener
      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent e)
        Specified by:
        mouseReleased in interface java.awt.event.MouseListener
      • mouseEntered

        public void mouseEntered​(java.awt.event.MouseEvent e)
        Specified by:
        mouseEntered in interface java.awt.event.MouseListener
      • mouseExited

        public void mouseExited​(java.awt.event.MouseEvent e)
        Specified by:
        mouseExited in interface java.awt.event.MouseListener
      • keyTyped

        public void keyTyped​(java.awt.event.KeyEvent e)
        Specified by:
        keyTyped in interface java.awt.event.KeyListener
      • keyPressed

        public void keyPressed​(java.awt.event.KeyEvent e)
        Specified by:
        keyPressed in interface java.awt.event.KeyListener
      • keyReleased

        public void keyReleased​(java.awt.event.KeyEvent e)
        Specified by:
        keyReleased in interface java.awt.event.KeyListener