public class VideoFrameComponent
extends org.openimaj.image.DisplayUtilities.ImageComponent
implements org.openimaj.video.VideoDisplayListener<org.openimaj.image.MBFImage>
org.openimaj.image.DisplayUtilities.ImageComponent.ImageComponentListener
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
VideoFrameComponent() |
Modifier and Type | Method and Description |
---|---|
void |
afterUpdate(org.openimaj.video.VideoDisplay<org.openimaj.image.MBFImage> display) |
void |
beforeUpdate(org.openimaj.image.MBFImage frame) |
void |
calculateHue(org.openimaj.image.MBFImage in) |
void |
calculateSaturation(org.openimaj.image.MBFImage in) |
boolean |
isShowFpsStats()
Determines if frame per second stats are to be painted.
|
void |
mouseDragged(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
onFilter(CamFilterEvent ev) |
void |
onMirror(CamMirrorFilterEvent ev) |
void |
onPictureRequest(CamPictureRequestEvent ev) |
void |
onRgb(CamRgbFilterEvent ev) |
void |
paint(Graphics g) |
void |
RGB_TO_CIEXYZ(org.openimaj.image.MBFImage in) |
void |
RGB_TO_HSV(org.openimaj.image.MBFImage in) |
void |
setFpsObserver(FpsObserver observer) |
void |
setMouseListener(ViewportMouseListener mouseListener) |
void |
setShowFpsStats(boolean showFpsStats) |
void |
solarize(org.openimaj.image.MBFImage in) |
addImageComponentListener, getCurrentDisplayedPixelColour, getCurrentMouseImagePosition, getCurrentMousePosition, getCurrentPixelColour, getDisplayedImage, mouseClicked, mouseEntered, mousePressed, mouseReleased, moveTo, removeImageComponentListener, setAllowPanning, setAllowZoom, setAutoFit, setAutoPack, setAutoResize, setImage, setKeepAspect, setOriginalImage, setScaleFactor, setScaleFactorX, setScaleFactorY, setShowPixelColours, setShowXYPosition, setTransparencyGrid, updatePixelColours, zoom
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public void onFilter(CamFilterEvent ev)
public void onMirror(CamMirrorFilterEvent ev)
public void onRgb(CamRgbFilterEvent ev)
public void afterUpdate(org.openimaj.video.VideoDisplay<org.openimaj.image.MBFImage> display)
afterUpdate
in interface org.openimaj.video.VideoDisplayListener<org.openimaj.image.MBFImage>
public void onPictureRequest(CamPictureRequestEvent ev)
public void beforeUpdate(org.openimaj.image.MBFImage frame)
beforeUpdate
in interface org.openimaj.video.VideoDisplayListener<org.openimaj.image.MBFImage>
public void solarize(org.openimaj.image.MBFImage in)
public void calculateHue(org.openimaj.image.MBFImage in)
public void calculateSaturation(org.openimaj.image.MBFImage in)
public void RGB_TO_HSV(org.openimaj.image.MBFImage in)
public void RGB_TO_CIEXYZ(org.openimaj.image.MBFImage in)
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class org.openimaj.image.DisplayUtilities.ImageComponent
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class org.openimaj.image.DisplayUtilities.ImageComponent
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class org.openimaj.image.DisplayUtilities.ImageComponent
public void setMouseListener(ViewportMouseListener mouseListener)
public void paint(Graphics g)
paint
in class org.openimaj.image.DisplayUtilities.ImageComponent
public boolean isShowFpsStats()
public void setShowFpsStats(boolean showFpsStats)
showFpsStats
- true if FPS stats should be drawn; false if they
should be turned offpublic void setFpsObserver(FpsObserver observer)
Copyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.