Class JPanelDTIEstimateTensor
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.renderer.WildMagic.DTI_FrameWork.JPanelDTIEstimateTensor
- All Implemented Interfaces:
AlgorithmInterface,ActionListener,ItemListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
public class JPanelDTIEstimateTensor
extends JPanel
implements AlgorithmInterface, ActionListener, ItemListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JButtonprivate JComboBoxmenu for selecting dti algorithm:static final intDifferent DTI algorithms:private JCheckBoxCheck boxes enable the user to save and display output images:private JCheckBoxprivate JCheckBoxprivate JPanelEPIDistortionCorrectionstatic final intstatic final intprivate String[][]private int[]private booleanprivate booleanprivate booleanprivate floatprivate floatprivate floatprivate floatprivate intprivate intprivate intprivate intprivate intprivate WildMagic.LibFoundation.Mathematics.GMatrixd(package private) ModelImageprivate Stringprivate JPanelmain panelprivate ModelImageMask image for the tensor calculationstatic final intprivate JTextFieldoutput directoryprivate DTIPipelineparent dialogstatic final intprivate JCheckBoxprivate JCheckBoxprivate JCheckBoxprivate static final longprivate Fontprivate ModelImageDiffusion tensor image:private JTextFieldDWI .list location:private JTextFieldmask image location:static final intFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) voidalgorithmPerformed(AlgorithmBase algorithm) Called after an algorithm this listener is registered to exits (maybe successfully, maybe not).private voidprivate voidvoidcalcTensor(ModelImage dwiImage) voidprivate voidprivate voidinit()voiditemStateChanged(ItemEvent event) private voidloadBMatrixFile(String kFileName) Loads the BMatrix file.voidLaunches the JFileChooser for the user to select the Diffusion Weighted Images .path file.private voidvoidloadPathFile(String kFileName, String kPathName) Loads the .path file.voidsetImage(ModelImage image) Set the input diffusion-weighted image (4D image series).Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, 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, updateMethods inherited from class java.awt.Container
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, validateTreeMethods inherited from class java.awt.Component
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, 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, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
DEFAULT
public static final int DEFAULTDifferent DTI algorithms:- See Also:
-
LLMSE
public static final int LLMSE- See Also:
-
LINEAR
public static final int LINEAR- See Also:
-
NON_LINEAR
public static final int NON_LINEAR- See Also:
-
RESTORE
public static final int RESTORE- See Also:
-
WEIGHTED_LINEAR
public static final int WEIGHTED_LINEAR- See Also:
-
comboBoxDTI_Algorithm
menu for selecting dti algorithm: -
mainPanel
main panel -
maskImage
Mask image for the tensor calculation -
outputDirTextField
output directory -
pipeline
parent dialog -
tensorImage
Diffusion tensor image: -
textMaskimage
mask image location: -
textListFile
DWI .list location: -
EPIpanel
-
displayExit
Check boxes enable the user to save and display output images: -
displayIntensity
-
displayTensor
-
saveExit
-
saveIntensity
-
saveTensor
-
serif12
-
calcTensor
-
m_iDimX
private int m_iDimX -
m_iDimY
private int m_iDimY -
m_iSlices
private int m_iSlices -
m_iWeights
private int m_iWeights -
m_kRawFormat
-
m_fResX
private float m_fResX -
m_fResY
private float m_fResY -
m_fResZ
private float m_fResZ -
m_fMeanNoise
private float m_fMeanNoise -
m_bUseXRes
private boolean m_bUseXRes -
m_bUseYRes
private boolean m_bUseYRes -
m_bUseZRes
private boolean m_bUseZRes -
m_kDWIImage
ModelImage m_kDWIImage -
m_aakDWIList
-
m_kBMatrix
private WildMagic.LibFoundation.Mathematics.GMatrixd m_kBMatrix -
m_aiMatrixEntries
private int[] m_aiMatrixEntries -
m_iBOrig
private int m_iBOrig
-
-
Constructor Details
-
JPanelDTIEstimateTensor
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
algorithmPerformed
Description copied from interface:AlgorithmInterfaceCalled after an algorithm this listener is registered to exits (maybe successfully, maybe not). If the algorithm is run in a separate thread, this call will be made within that thread. If not, this call will be made from that same, shared thread.- Specified by:
algorithmPerformedin interfaceAlgorithmInterface- Parameters:
algorithm- the algorithm which has just completed
-
calcTensor
-
getMaskImage
-
itemStateChanged
- Specified by:
itemStateChangedin interfaceItemListener
-
setImage
Set the input diffusion-weighted image (4D image series).- Parameters:
image-
-
buildTensorEstPanel
private void buildTensorEstPanel() -
buildMaskLoadPanel
private void buildMaskLoadPanel() -
finishTensorPanel
private void finishTensorPanel() -
init
private void init() -
loadMaskImage
private void loadMaskImage() -
loadDWIListFile
public void loadDWIListFile()Launches the JFileChooser for the user to select the Diffusion Weighted Images .path file. Loads the .path file. -
enableCalcButton
public void enableCalcButton() -
loadPathFile
Loads the .path file.- Parameters:
kFileName- path file name.kPathName- , parent directory.
-
loadBMatrixFile
Loads the BMatrix file.- Parameters:
kFileName- , name of BMatrix file.
-