Class JPanelDTIImportData
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.renderer.WildMagic.DTI_FrameWork.JPanelDTIImportData
-
- All Implemented Interfaces:
AlgorithmInterface,java.awt.event.ActionListener,java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,java.util.EventListener,javax.accessibility.Accessible
public class JPanelDTIImportData extends javax.swing.JPanel implements AlgorithmInterface, java.awt.event.ActionListener
The copyright below only pertains to methods within JDialogImageInfo that relate to the Gradient Table Creator for Philips PAR/REC files V3/V4 that is displayed in the DTI tab. Portions of code that relate to this copyright are denoted with comments giving credit to software and authors.Copyright (c) 2011, Bennett Landman All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JRadioButtonactiveDWIButtonprivate double[][]angCorrGTDOCUMENT ME!private javax.swing.JRadioButtonBMatrixButtonprivate javax.swing.JRadioButtonbrowseDWIButtonprivate javax.swing.JButtonbvalGradAppButtonDOCUMENT ME!private javax.swing.JLabelbvalGradFileLabelDOCUMENT ME!private booleancheckSiemensprivate javax.swing.JButtonclearDWITableButtonprivate java.lang.StringcurrDircurrent directory *private DTIParametersdtiparams(package private) javax.swing.JRadioButtondtiStudioButtonRadio button to save gradBval text file in DTIStudio formatprivate javax.swing.JPanelDWIButtonPanelprivate javax.swing.JPanelDWIOpenPanelprivate javax.swing.JComboBoxfatshiftBoxDOCUMENT ME!private javax.swing.JLabelfatShiftLabelDOCUMENT ME!(package private) java.lang.StringfilebvalGradTxtNamebValGrad test file name from userprivate FileInfoPARRECfileInfoPARRECprivate javax.swing.JComboBoxfoldOverBoxDOCUMENT ME!private javax.swing.JLabelfoldOverLabelDOCUMENT ME!ViewJFrameImageframe(package private) javax.swing.JRadioButtonfslButtonRadio button to save gradBval text file in FSL formatprivate intgradBvalTextint to determine which format user selects for gradBval test fileprivate double[][]gradCreatetableDOCUMENT ME!private javax.swing.JRadioButtongradientButtonprivate javax.swing.JComboBoxgradOPBoxDOCUMENT ME!private javax.swing.JLabelgradOPLabelDOCUMENT ME!private javax.swing.JComboBoxgradResBoxDOCUMENT ME!private javax.swing.JLabelgradResLabelDOCUMENT ME!private java.lang.StringgradResWOPprivate javax.swing.JComboBoxinvertedBoxDOCUMENT ME!private javax.swing.JLabelinvertedLabelDOCUMENT ME!private booleanisBmatFileprivate javax.swing.JCheckBoxisDWICellEditBoxDOCUMENT ME!private javax.swing.JCheckBoxisJonesBoxDOCUMENT ME!private javax.swing.JCheckBoxisKirbyBoxDOCUMENT ME!private booleanlastStackFlagprivate javax.swing.JButtonloadBValGradFileButtonprivate javax.swing.JPanelloadTableModelImagem_kDWIImageDiffusion Tensor image.ModelImagem_kT2ImageT2 image.(package private) javax.swing.JRadioButtonmipavStandardButtonRadio button to save gradBval text file in mipavStandard formatprivate AlgorithmMosaicToSlicesmosaicToSliceAlgoprivate javax.swing.JCheckBoxnegXCheckBoxDOCUMENT ME!private javax.swing.JCheckBoxnegYCheckBoxDOCUMENT ME!private javax.swing.JCheckBoxnegZCheckBoxDOCUMENT ME!private DTIParametersnewDTIparamsprivate intnumVolumesnumber of Volumes in DWI Imageprivate javax.swing.JButtonopenDWIButtonDOCUMENT ME!private javax.swing.JCheckBoxopenedImageCheckBoxDOCUMENT ME!private ViewOpenFileUIopenFile(package private) java.util.Vector<java.lang.String>openImageNamesprivate javax.swing.JButtonopenT2ButtonDOCUMENT ME!private javax.swing.JComboBoxosBoxDOCUMENT ME!private javax.swing.JLabelosLabelDOCUMENT ME!private javax.swing.JTextAreaoutputTextAreaTextArea of main dialogfor text outputprivate DTIParametersparDTIParamsprivate java.lang.StringparNExamNameprivate java.lang.StringparNfoldoverprivate double[]parNoffCentreprivate intparNorientprivate java.lang.StringparNPatientPositionprivate java.lang.StringparNProtocolNameprivate double[]parNsliceAngprivate java.lang.StringparNversionprivate javax.swing.JComboBoxpatientOrientBoxDOCUMENT ME!private javax.swing.JLabelpatientOrientLabelDOCUMENT ME!private javax.swing.JComboBoxpatientPosBoxDOCUMENT ME!private javax.swing.JLabelpatientPosLabelDOCUMENT ME!private javax.swing.JComboBoxphilRelBoxDOCUMENT ME!private javax.swing.JLabelphilRelLabelDOCUMENT ME!private DTIPipelinepipelineprivate double[][]rev_angCorrGTDOCUMENT ME!private javax.swing.JButtonsaveBvalGradButtonprivate javax.swing.JFileChoosersaveGradchooserchooser for save gradBval text dialogjavax.swing.JScrollPanescrollPaneprivate java.awt.Fontserif12private doublesliceAng0private doublesliceAng1private doublesliceAng2private java.lang.StringspaceDOCUMENT ME!private javax.swing.JTablesrcBvalGradTableprivate javax.swing.JPanelsrcPaneljavax.swing.table.DefaultTableModelsrcTableModeltable model for the srcimages.private javax.swing.JLabelt2FileLabelDOCUMENT ME!ViewJFrameImaget2frameprivate javax.swing.JPanelt2OpenPanelprivate javax.swing.JTextFieldtextBvalGradFileDOCUMENT ME!private javax.swing.JTextFieldtextDWIDataimageprivate javax.swing.JTextFieldtextT2imageDOCUMENT ME!private ViewUserInterfaceuijavax.swing.JCheckBoxuseT2CheckBoxDOCUMENT ME!-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description JPanelDTIImportData(DTIPipeline pipeline)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)When Apply button is pressed, applies changes to all three areas: image name, resolutions, and transformation matrix.voidalgorithmPerformed(AlgorithmBase algorithm)Called after an algorithm this listener is registered to exits (maybe successfully, maybe not).voidangulationCorrection(double[][] tablein)double[][]applyRotation(double[][] A, double[][] table)private java.util.HashMap<java.lang.String,java.lang.Integer>buildParSliceMap()private java.util.HashMap<java.lang.String,java.lang.String>buildParVolMap()private javax.swing.JPanelbuildSaveGradBvalPanel()private javax.swing.border.TitledBorderbuildTitledBorder(java.lang.String title)voidcheckSiemens3d()private doublecos(double a)booleancreateBVGradBMatFileTXT()This method creates the B-Value/Gradient file for DTI Tabprivate voidDWIJonesKirbyDialog()static double[][]getHigh()static double[][]getHighOP_24prev()static double[][]getHighOP_25post()static double[][]getHighOP_rel25()private voidgetImageDTIParams()static double[][]getJones30()static double[][]getJones30VMS()booleangetLastStackFlag()static double[][]getLow()static double[][]getLowOP()static double[][]getLowOP2()static double[][]getMedium()static double[][]getMediumOP()static double[][]getMediumOP2()private voidgradientTableCreator()private javax.swing.border.TitledBorderhighlightTitledBorder(java.lang.String title)voidinit()initvoidloadDWIFile()voidloadT2File()double[][]matrixMultiply(double[][] A, double[][] B)voidniftiParExtraction(java.io.File parFileName)private double[][]normalizeTable(double[][] table)private java.lang.String[]parse(java.lang.String inString)DOCUMENT ME!voidphilipsDicomGradExtract()booleanreadBVGradBMatfile(java.lang.String gradientFilePath)reads the bval/gradient file...dti studio format, BRUKER method, and fsl format are acceptedprivate java.lang.StringreadLine(java.io.RandomAccessFile raFile, boolean[] foundEOF)Reads lines of the file until a nonnull String results or the end of the file is reached.private doublesin(double a)-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods 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, update
-
Methods 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, validateTree
-
Methods 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 Detail
-
m_kDWIImage
public ModelImage m_kDWIImage
Diffusion Tensor image.
-
m_kT2Image
public ModelImage m_kT2Image
T2 image.
-
scrollPane
public javax.swing.JScrollPane scrollPane
-
dtiparams
private DTIParameters dtiparams
-
newDTIparams
private DTIParameters newDTIparams
-
parDTIParams
private DTIParameters parDTIParams
-
serif12
private java.awt.Font serif12
-
outputTextArea
private javax.swing.JTextArea outputTextArea
TextArea of main dialogfor text output.*
-
srcBvalGradTable
private javax.swing.JTable srcBvalGradTable
-
textDWIDataimage
private javax.swing.JTextField textDWIDataimage
-
invertedBox
private javax.swing.JComboBox invertedBox
DOCUMENT ME!
-
fslButton
javax.swing.JRadioButton fslButton
Radio button to save gradBval text file in FSL format
-
dtiStudioButton
javax.swing.JRadioButton dtiStudioButton
Radio button to save gradBval text file in DTIStudio format
-
mipavStandardButton
javax.swing.JRadioButton mipavStandardButton
Radio button to save gradBval text file in mipavStandard format
-
filebvalGradTxtName
java.lang.String filebvalGradTxtName
bValGrad test file name from user
-
numVolumes
private int numVolumes
number of Volumes in DWI Image
-
gradBvalText
private int gradBvalText
int to determine which format user selects for gradBval test file
-
saveGradchooser
private javax.swing.JFileChooser saveGradchooser
chooser for save gradBval text dialog
-
srcTableModel
public javax.swing.table.DefaultTableModel srcTableModel
table model for the srcimages.
-
isDWICellEditBox
private javax.swing.JCheckBox isDWICellEditBox
DOCUMENT ME!
-
negXCheckBox
private javax.swing.JCheckBox negXCheckBox
DOCUMENT ME!
-
negYCheckBox
private javax.swing.JCheckBox negYCheckBox
DOCUMENT ME!
-
negZCheckBox
private javax.swing.JCheckBox negZCheckBox
DOCUMENT ME!
-
openedImageCheckBox
private javax.swing.JCheckBox openedImageCheckBox
DOCUMENT ME!
-
openDWIButton
private javax.swing.JButton openDWIButton
DOCUMENT ME!
-
useT2CheckBox
public javax.swing.JCheckBox useT2CheckBox
DOCUMENT ME!
-
t2FileLabel
private javax.swing.JLabel t2FileLabel
DOCUMENT ME!
-
bvalGradFileLabel
private javax.swing.JLabel bvalGradFileLabel
DOCUMENT ME!
-
textT2image
private javax.swing.JTextField textT2image
DOCUMENT ME!
-
textBvalGradFile
private javax.swing.JTextField textBvalGradFile
DOCUMENT ME!
-
openT2Button
private javax.swing.JButton openT2Button
DOCUMENT ME!
-
bvalGradAppButton
private javax.swing.JButton bvalGradAppButton
DOCUMENT ME!
-
isJonesBox
private javax.swing.JCheckBox isJonesBox
DOCUMENT ME!
-
isKirbyBox
private javax.swing.JCheckBox isKirbyBox
DOCUMENT ME!
-
fatshiftBox
private javax.swing.JComboBox fatshiftBox
DOCUMENT ME!
-
gradResBox
private javax.swing.JComboBox gradResBox
DOCUMENT ME!
-
gradOPBox
private javax.swing.JComboBox gradOPBox
DOCUMENT ME!
-
philRelBox
private javax.swing.JComboBox philRelBox
DOCUMENT ME!
-
patientPosBox
private javax.swing.JComboBox patientPosBox
DOCUMENT ME!
-
patientOrientBox
private javax.swing.JComboBox patientOrientBox
DOCUMENT ME!
-
foldOverBox
private javax.swing.JComboBox foldOverBox
DOCUMENT ME!
-
osBox
private javax.swing.JComboBox osBox
DOCUMENT ME!
-
gradCreatetable
private double[][] gradCreatetable
DOCUMENT ME!
-
angCorrGT
private double[][] angCorrGT
DOCUMENT ME!
-
rev_angCorrGT
private double[][] rev_angCorrGT
DOCUMENT ME!
-
space
private java.lang.String space
DOCUMENT ME!
-
osLabel
private javax.swing.JLabel osLabel
DOCUMENT ME!
-
invertedLabel
private javax.swing.JLabel invertedLabel
DOCUMENT ME!
-
gradResLabel
private javax.swing.JLabel gradResLabel
DOCUMENT ME!
-
gradOPLabel
private javax.swing.JLabel gradOPLabel
DOCUMENT ME!
-
fatShiftLabel
private javax.swing.JLabel fatShiftLabel
DOCUMENT ME!
-
patientPosLabel
private javax.swing.JLabel patientPosLabel
DOCUMENT ME!
-
patientOrientLabel
private javax.swing.JLabel patientOrientLabel
DOCUMENT ME!
-
foldOverLabel
private javax.swing.JLabel foldOverLabel
DOCUMENT ME!
-
philRelLabel
private javax.swing.JLabel philRelLabel
DOCUMENT ME!
-
pipeline
private DTIPipeline pipeline
-
ui
private ViewUserInterface ui
-
currDir
private java.lang.String currDir
current directory *
-
lastStackFlag
private boolean lastStackFlag
-
srcPanel
private javax.swing.JPanel srcPanel
-
openImageNames
java.util.Vector<java.lang.String> openImageNames
-
frame
public ViewJFrameImage frame
-
t2frame
public ViewJFrameImage t2frame
-
browseDWIButton
private javax.swing.JRadioButton browseDWIButton
-
activeDWIButton
private javax.swing.JRadioButton activeDWIButton
-
DWIOpenPanel
private javax.swing.JPanel DWIOpenPanel
-
t2OpenPanel
private javax.swing.JPanel t2OpenPanel
-
loadTable
private javax.swing.JPanel loadTable
-
DWIButtonPanel
private javax.swing.JPanel DWIButtonPanel
-
openFile
private ViewOpenFileUI openFile
-
loadBValGradFileButton
private javax.swing.JButton loadBValGradFileButton
-
clearDWITableButton
private javax.swing.JButton clearDWITableButton
-
saveBvalGradButton
private javax.swing.JButton saveBvalGradButton
-
sliceAng0
private double sliceAng0
-
sliceAng1
private double sliceAng1
-
sliceAng2
private double sliceAng2
-
gradResWOP
private java.lang.String gradResWOP
-
mosaicToSliceAlgo
private AlgorithmMosaicToSlices mosaicToSliceAlgo
-
parNversion
private java.lang.String parNversion
-
parNExamName
private java.lang.String parNExamName
-
parNProtocolName
private java.lang.String parNProtocolName
-
parNPatientPosition
private java.lang.String parNPatientPosition
-
parNfoldover
private java.lang.String parNfoldover
-
parNsliceAng
private double[] parNsliceAng
-
parNoffCentre
private double[] parNoffCentre
-
parNorient
private int parNorient
-
isBmatFile
private boolean isBmatFile
-
fileInfoPARREC
private FileInfoPARREC fileInfoPARREC
-
checkSiemens
private boolean checkSiemens
-
gradientButton
private javax.swing.JRadioButton gradientButton
-
BMatrixButton
private javax.swing.JRadioButton BMatrixButton
-
-
Constructor Detail
-
JPanelDTIImportData
public JPanelDTIImportData(DTIPipeline pipeline)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
When Apply button is pressed, applies changes to all three areas: image name, resolutions, and transformation matrix. When OK button is pressed, applies changes and closes dialog box. When Cancel button is pressed, closes dialog without making any additional changes.- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener- Parameters:
event- Event that triggers this function.
-
init
public void init()
init
-
getImageDTIParams
private void getImageDTIParams()
-
buildTitledBorder
private javax.swing.border.TitledBorder buildTitledBorder(java.lang.String title)
-
highlightTitledBorder
private javax.swing.border.TitledBorder highlightTitledBorder(java.lang.String title)
-
buildSaveGradBvalPanel
private javax.swing.JPanel buildSaveGradBvalPanel()
-
DWIJonesKirbyDialog
private void DWIJonesKirbyDialog()
-
gradientTableCreator
private void gradientTableCreator()
-
getLowOP
public static final double[][] getLowOP()
-
getMediumOP
public static final double[][] getMediumOP()
-
getLowOP2
public static final double[][] getLowOP2()
-
getMediumOP2
public static final double[][] getMediumOP2()
-
getHighOP_24prev
public static final double[][] getHighOP_24prev()
-
getHighOP_rel25
public static final double[][] getHighOP_rel25()
-
getHighOP_25post
public static final double[][] getHighOP_25post()
-
getLow
public static final double[][] getLow()
-
getMedium
public static final double[][] getMedium()
-
getHigh
public static final double[][] getHigh()
-
getJones30
public static final double[][] getJones30()
-
getJones30VMS
public static final double[][] getJones30VMS()
-
cos
private double cos(double a)
-
sin
private double sin(double a)
-
matrixMultiply
public double[][] matrixMultiply(double[][] A, double[][] B)
-
applyRotation
public double[][] applyRotation(double[][] A, double[][] table)
-
normalizeTable
private double[][] normalizeTable(double[][] table)
-
angulationCorrection
public void angulationCorrection(double[][] tablein)
-
loadDWIFile
public void loadDWIFile()
-
niftiParExtraction
public void niftiParExtraction(java.io.File parFileName) throws java.io.IOException- Throws:
java.io.IOException
-
philipsDicomGradExtract
public void philipsDicomGradExtract()
-
checkSiemens3d
public void checkSiemens3d()
-
loadT2File
public void loadT2File()
-
getLastStackFlag
public boolean getLastStackFlag()
-
readBVGradBMatfile
public boolean readBVGradBMatfile(java.lang.String gradientFilePath)
reads the bval/gradient file...dti studio format, BRUKER method, and fsl format are accepted- Parameters:
gradientFilePath-- Returns:
-
parse
private java.lang.String[] parse(java.lang.String inString)
DOCUMENT ME!- Parameters:
inString- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
readLine
private java.lang.String readLine(java.io.RandomAccessFile raFile, boolean[] foundEOF) throws java.io.IOExceptionReads lines of the file until a nonnull String results or the end of the file is reached.- Returns:
- the line read in
- Throws:
java.io.IOException- if there is an error reading the file
-
createBVGradBMatFileTXT
public boolean createBVGradBMatFileTXT()
This method creates the B-Value/Gradient file for DTI Tab- Returns:
-
buildParVolMap
private java.util.HashMap<java.lang.String,java.lang.String> buildParVolMap()
-
buildParSliceMap
private java.util.HashMap<java.lang.String,java.lang.Integer> buildParSliceMap()
-
algorithmPerformed
public void algorithmPerformed(AlgorithmBase algorithm)
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
-
-