public class F_TestThresholdSelector
extends javax.swing.JPanel
VoxelClassify
,
Serialized FormTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
F_TestThresholdSelector(double[][][][] data,
int ord,
double backgroundThresh,
double csfThresh) |
F_TestThresholdSelector(double[][][][] data,
int ord,
double backgroundThresh,
double csfThresh,
double f1,
double f2,
double f3) |
Modifier and Type | Method and Description |
---|---|
boolean |
getAutoUpdate()
Returns status of auto update
|
static double[][][][] |
loadData(java.lang.String filename,
int xSize,
int ySize,
int zSize,
int components,
java.lang.String datatype)
Loads the data into a 4D array.
|
static void |
main(java.lang.String[] args) |
void |
paintComponent(java.awt.Graphics g)
Draws the image (and crosshairs, if needed).
|
void |
setFTestThresholds(double f1,
double f2,
double f3)
Sets the thresholds for the F-test.
|
void |
setSlice()
Called if slice is moved, the plane view is switched, or the data
changes.
|
void |
setSliceMarkers(java.awt.event.MouseEvent e)
Called when user left-clicks in the image.
|
void |
setSliceOrientation(int orientation)
Sets the slice orientation to XY, XZ, or YZ, then updates the slice list
and display.
|
void |
toggleAutoUpdate()
Toggles automatic updating.
|
void |
update()
Updates data and then display.
|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
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, 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
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
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, 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, 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 F_TestThresholdSelector(double[][][][] data, int ord, double backgroundThresh, double csfThresh)
data
- from loadData.ord
- max order.backgroundThresh
- background thresholdcsfThresh
- csf threshold.f1
- f-test threshold (order 0/2).f2
- f-test threshold (order 2/4).f3
- f-test threshold (order 4/6).public F_TestThresholdSelector(double[][][][] data, int ord, double backgroundThresh, double csfThresh, double f1, double f2, double f3)
data
- from loadData.ord
- max order.backgroundThresh
- background thresholdcsfThresh
- csf threshold.f1
- f-test threshold (order 0/2).f2
- f-test threshold (order 2/4).f3
- f-test threshold (order 4/6).public static void main(java.lang.String[] args)
public static double[][][][] loadData(java.lang.String filename, int xSize, int ySize, int zSize, int components, java.lang.String datatype)
filename
- The name of the datafile.xSize
- The number of voxels in the x-dimension of the data.ySize
- The number of voxels in the y-dimension of the data.zSize
- The number of voxels in the z-dimension of the data.components
- The number of values in each voxel.public boolean getAutoUpdate()
public void toggleAutoUpdate()
public void update()
public void setFTestThresholds(double f1, double f2, double f3)
public void setSliceOrientation(int orientation)
public void setSliceMarkers(java.awt.event.MouseEvent e)
public void setSlice()
public void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent