boofcv.demonstrations.feature.associate
Class VisualizeAssociationScoreApp<T extends ImageGray,D extends ImageGray>
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- boofcv.gui.SelectAlgorithmAndInputPanel
-
- boofcv.demonstrations.feature.associate.VisualizeAssociationScoreApp<T,D>
-
- All Implemented Interfaces:
- VisualizeScorePanel.Listener, VisualizeApp, java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible
public class VisualizeAssociationScoreApp<T extends ImageGray,D extends ImageGray> extends SelectAlgorithmAndInputPanel implements VisualizeScorePanel.Listener
Shows how tightly focused the score is around the best figure by showing the relative size and number of features which have a similar score visually in the image. For example, lots of other features with similar sized circles means the distribution is spread widely while only one or two small figures means it is very narrow.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Field Summary
-
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor and Description VisualizeAssociationScoreApp(java.lang.Class<T> imageType, java.lang.Class<D> derivType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidchangedSetting()voidchangeInput(java.lang.String name, int index)A request to change the input image has been made.booleangetHasProcessedImage()voidloadConfigurationFile(java.lang.String fileName)static voidmain(java.lang.String[] args)voidprocess(java.awt.image.BufferedImage buffLeft, java.awt.image.BufferedImage buffRight)voidrefreshAll(java.lang.Object[] cookies)Provides the current state of all selected algorithms.voidsetActiveAlgorithm(int indexFamily, java.lang.String name, java.lang.Object cookie)A request has been made to change the processing algorithm.-
Methods inherited from class boofcv.gui.SelectAlgorithmAndInputPanel
actionPerformed, addAlgorithm, addToToolbar, doRefreshAll, loadInputData, removeFromToolbar, setBaseDirectory, setInputImage, setInputList, setMainGUI, setMediaManager
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, 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, 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, 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
-
-
-
-
Method Detail
-
process
public void process(java.awt.image.BufferedImage buffLeft, java.awt.image.BufferedImage buffRight)
-
loadConfigurationFile
public void loadConfigurationFile(java.lang.String fileName)
- Specified by:
loadConfigurationFilein interfaceVisualizeApp
-
refreshAll
public void refreshAll(java.lang.Object[] cookies)
Description copied from class:SelectAlgorithmAndInputPanelProvides the current state of all selected algorithms.- Specified by:
refreshAllin classSelectAlgorithmAndInputPanel- Parameters:
cookies- state of each selected algorithm.
-
setActiveAlgorithm
public void setActiveAlgorithm(int indexFamily, java.lang.String name, java.lang.Object cookie)Description copied from class:SelectAlgorithmAndInputPanelA request has been made to change the processing algorithm. NOT called from a GUI thread.- Specified by:
setActiveAlgorithmin classSelectAlgorithmAndInputPanelname- Display name of the algorithm.cookie- Reference to user defined data.
-
changeInput
public void changeInput(java.lang.String name, int index)Description copied from class:SelectAlgorithmAndInputPanelA request to change the input image has been made. The input image's label and its index in the manager are returned.- Specified by:
changeInputin classSelectAlgorithmAndInputPanel- Parameters:
name- Display name of the image.index- Which image in the list.
-
getHasProcessedImage
public boolean getHasProcessedImage()
- Specified by:
getHasProcessedImagein interfaceVisualizeApp
-
changedSetting
public void changedSetting()
- Specified by:
changedSettingin interfaceVisualizeScorePanel.Listener
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG