Class JDialogImageInfo

  • All Implemented Interfaces:
    AlgorithmInterface, DialogDefaultsInterface, java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class JDialogImageInfo
    extends JDialogBase
    implements java.awt.event.ActionListener, AlgorithmInterface
    The image attribute input dialog, which consists of six tabbled panes allowing the user to edit image name, resolutions, orientations, dataset origin, history, and transformation matrix.
    Version:
    0.1 Nov 23, 1999
    Author:
    Matthew J. McAuliffe, Ph.D.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.JDialog

        javax.swing.JDialog.AccessibleJDialog
      • Nested classes/interfaces inherited from class java.awt.Dialog

        java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
      • Nested classes/interfaces inherited from class java.awt.Window

        java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
      • Nested classes/interfaces inherited from class java.awt.Container

        java.awt.Container.AccessibleAWTContainer
      • Nested classes/interfaces inherited from class java.awt.Component

        java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
    • Constructor Summary

      Constructors 
      Constructor Description
      JDialogImageInfo​(java.awt.Frame theParentFrame, ModelImage im, int zSlice, int tSlice)
      Builds the image attribute input dialog, with three tabbled panes allowing the user to edit image name, orientation, resolutions, and transformation matrix.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent event)
      When Apply button is pressed, applies changes to all three areas: image name, resolutions, and transformation matrix.
      void algorithmPerformed​(AlgorithmBase algorithm)
      DOCUMENT ME!
      private javax.swing.JPanel buildComboBox()
      Builds the ComboBox panel editing units of measure.
      private javax.swing.JPanel buildGeneralPanel()
      Builds the "edit image name" panel.
      private javax.swing.JPanel buildMatrixPanel()
      Builds the panel usd in the tabbed pane "transform" as appropriate for the number of dimensions of the image.
      private javax.swing.JPanel buildOrientPanel()
      Builds the "orientation edit" panel.
      private javax.swing.JPanel buildResolutionPanel()
      Builds the panels which is edited in the tabbed pane "resolutions".
      private javax.swing.JPanel buildStartLocationsPanel()
      Builds the panels which is edited in the tabbed pane "Dataset Origin".
      private javax.swing.JScrollPane buildTalairachPanel()
      Builds the Talairach Transform scrollpane with all talairach related data.
      private void init​(java.lang.String addTitle)
      Initializes the dialog box and adds the components.
      protected static float[] initResFactor​(float[] imgResols, int[] imgUnits)
      Get the resolution correction needed for non-isotropic images.
      void itemStateChanged​(java.awt.event.ItemEvent e)
      DOCUMENT ME!
      java.lang.String matrixFileMenu()
      Allows the user to select matrix file.
      void populateTalairachTab()
      Looks at TalairachTransformInfo saved in ModelImage and populates the talairach scrollpane with the appropriate data.
      void readTransformMatrixFile​(java.lang.String fileName)
      Reads a matrix from a file.
      private TransMatrix reorientCoordSystem​(TransMatrix rkMatrix)
      Re-orient the matrix to world and left-hand coordinate systems if required.
      private void setComboBox​(javax.swing.JComboBox cBox)
      Sets combo box choices that match resolution units listed in FileInfoBase and in the same order.
      void setLeftHandSystem​(boolean leftHandSys)
      Sets the left-hand coordinate flag.
      void setMatrix​(TransMatrix newMatrix)
      update matrix and text matrix
      void setResolutionTag()
      Set the resolution tag in front view.
      void setSlice​(int z, int t)
      Update the title bar and resolution information.
      private boolean setVariables()
      Sets the variables appropriately from the GUI.
      void setWCSystem​(boolean wcSys)
      Sets the world coordinate flag.
      private void updateEndianess()
      Updates the image endianess.
      private void updateImageModality()
      Updates the image modality.
      private void updateImageOrientation()
      Updates the image orientation.
      private void updateMatrixBox​(boolean refreshFields)
      Refreshes the matrix combo box with the list of available matrices within the image.
      private void updateMatrixFields​(TransMatrix newMatrix)
      Updates the matrix fields (transform ID, jtextfields).
      private void updateMatrixInfo()
      Updates the image with the new Matrix information (for matrix replacement).
      private void updateOriginInfo()
      Updates the origin.
      private void updateResolInfo()
      Gives the image new resolutions.
      private void updateTalairachInfo()
      updates the talairach transform info.
      private void updateTransformInfo​(TransMatrix tMat)
      Applies the values in the JTabbedPane "Transform" to the transform matrix in the image.
      private void updateXMLLinkedFile()
      method to update the xml file infos with a new linked image path.
      • Methods inherited from class javax.swing.JDialog

        addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • Methods inherited from class java.awt.Dialog

        addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Use serialVersionUID for interoperability.
        See Also:
        Constant Field Values
      • acpcACFields

        private javax.swing.JTextField[] acpcACFields
        DOCUMENT ME!
      • acpcDimFields

        private javax.swing.JTextField[] acpcDimFields
        DOCUMENT ME!
      • acpcMaxFields

        private javax.swing.JTextField[] acpcMaxFields
        DOCUMENT ME!
      • acpcMinFields

        private javax.swing.JTextField[] acpcMinFields
        TLRC Specific info.
      • acpcPCFields

        private javax.swing.JTextField[] acpcPCFields
        DOCUMENT ME!
      • acpcResField

        private javax.swing.JTextField acpcResField
        DOCUMENT ME!
      • addReplaceMatrix

        private javax.swing.JButton addReplaceMatrix
        Add as New/Replace button (depending on selected matrix type).
      • applyButton

        private javax.swing.JButton applyButton
        DOCUMENT ME!
      • bigEnd

        private javax.swing.JRadioButton bigEnd
        Radio button to denote image is big endian.
      • buttonPanel

        private javax.swing.JPanel buttonPanel
        DOCUMENT ME!
      • comboBoxUnitOfMeasure1

        private javax.swing.JComboBox comboBoxUnitOfMeasure1
        DOCUMENT ME!
      • comboBoxUnitOfMeasure3

        private javax.swing.JComboBox comboBoxUnitOfMeasure3
        DOCUMENT ME!
      • comboBoxUnitOfMeasure4

        private javax.swing.JComboBox comboBoxUnitOfMeasure4
        DOCUMENT ME!
      • comboBoxUnitOfMeasure5

        private javax.swing.JComboBox comboBoxUnitOfMeasure5
        DOCUMENT ME!
      • DIM

        private int DIM
        DOCUMENT ME!
      • endianess

        private boolean endianess
        Indicates the endianess of the image.
      • fileTransMatrix

        private TransMatrix fileTransMatrix
        DOCUMENT ME!
      • font12B

        private final java.awt.Font font12B
        DOCUMENT ME!
      • image

        private final ModelImage image
        DOCUMENT ME!
      • isTLRCBox

        private javax.swing.JCheckBox isTLRCBox
        DOCUMENT ME!
      • leftHandSystem

        private boolean leftHandSystem
        If true change matrix to the left-hand coordinate system.
      • linkedImageButton

        private javax.swing.JButton linkedImageButton
        DOCUMENT ME!
      • linkedImageField

        private javax.swing.JTextField linkedImageField
        DOCUMENT ME!
      • littleEnd

        private javax.swing.JRadioButton littleEnd
        Radio button to denote image is little endian.
      • loadButton

        private javax.swing.JButton loadButton
        DOCUMENT ME!
      • matrix

        private double[][] matrix
        DOCUMENT ME!
      • matrixBox

        private javax.swing.JComboBox matrixBox
        Box to hold the matrices parsed from the MatrixHolder.
      • matrixFile

        private java.lang.String matrixFile
        DOCUMENT ME!
      • measure1

        private int measure1
        DOCUMENT ME!
      • measure3

        private int measure3
        DOCUMENT ME!
      • measure4

        private int measure4
        DOCUMENT ME!
      • measure5

        private int measure5
        DOCUMENT ME!
      • modality

        private int modality
        DOCUMENT ME!
      • modalityBox

        private javax.swing.JComboBox modalityBox
        DOCUMENT ME!
      • modalityStr

        private java.lang.String[] modalityStr
        DOCUMENT ME!
      • nameText

        private javax.swing.JTextField nameText
        DOCUMENT ME!
      • newImageName

        private java.lang.String newImageName
        DOCUMENT ME!
      • orient

        private int orient
        DOCUMENT ME!
      • orientationBox1

        private javax.swing.JComboBox orientationBox1
        DOCUMENT ME!
      • orientationBox2

        private javax.swing.JComboBox orientationBox2
        DOCUMENT ME!
      • orientationBox3

        private javax.swing.JComboBox orientationBox3
        DOCUMENT ME!
      • orientAxis

        private final int[] orientAxis
        DOCUMENT ME!
      • orientBox

        private javax.swing.JComboBox orientBox
        DOCUMENT ME!
      • orientFields

        private javax.swing.JTextField[] orientFields
        DOCUMENT ME!
      • origACFields

        private javax.swing.JTextField[] origACFields
        ACPC Specific info.
      • origDimFields

        private javax.swing.JTextField[] origDimFields
        DOCUMENT ME!
      • origOriginFields

        private javax.swing.JTextField[] origOriginFields
      • origin

        private float[] origin
        DOCUMENT ME!
      • origPCFields

        private javax.swing.JTextField[] origPCFields
        DOCUMENT ME!
      • origResFields

        private javax.swing.JTextField[] origResFields
        DOCUMENT ME!
      • resampleImage

        private final ModelImage resampleImage
        DOCUMENT ME!
      • resIndex

        private int resIndex
        DOCUMENT ME!
      • resolutionBox

        private javax.swing.JCheckBox resolutionBox
        DOCUMENT ME!
      • resolutions

        private float[] resolutions
        DOCUMENT ME!
      • saveButton

        private javax.swing.JButton saveButton
        DOCUMENT ME!
      • sliceThickness

        private float sliceThickness
        DOCUMENT ME!
      • tabbedPane

        private javax.swing.JTabbedPane tabbedPane
        DOCUMENT ME!
      • textMatrix

        private javax.swing.JTextField[][] textMatrix
        DOCUMENT ME!
      • textRes1

        private javax.swing.JTextField textRes1
        DOCUMENT ME!
      • textRes2

        private javax.swing.JTextField textRes2
        DOCUMENT ME!
      • textRes3

        private javax.swing.JTextField textRes3
        DOCUMENT ME!
      • textRes4

        private javax.swing.JTextField textRes4
        DOCUMENT ME!
      • textRes5

        private javax.swing.JTextField textRes5
        DOCUMENT ME!
      • textSt1

        private javax.swing.JTextField textSt1
        DOCUMENT ME!
      • textSt2

        private javax.swing.JTextField textSt2
        DOCUMENT ME!
      • textSt3

        private javax.swing.JTextField textSt3
        DOCUMENT ME!
      • textSt4

        private javax.swing.JTextField textSt4
        DOCUMENT ME!
      • textSliceThickness

        private javax.swing.JTextField textSliceThickness
        DOCUMENT ME!
      • titles

        private java.lang.String[] titles
        DOCUMENT ME!
      • tlrcACFields

        private javax.swing.JTextField[] tlrcACFields
        DOCUMENT ME!
      • tlrcDimFields

        private javax.swing.JTextField[] tlrcDimFields
        DOCUMENT ME!
      • tlrcPCFields

        private javax.swing.JTextField[] tlrcPCFields
        DOCUMENT ME!
      • tlrcResFields

        private javax.swing.JTextField[] tlrcResFields
        DOCUMENT ME!
      • transformIDBox

        private javax.swing.JComboBox transformIDBox
        DOCUMENT ME!
      • wcSystem

        private boolean wcSystem
        If true change matrix to the world coordinate system.
      • resizeOnClose

        private boolean resizeOnClose
    • Constructor Detail

      • JDialogImageInfo

        public JDialogImageInfo​(java.awt.Frame theParentFrame,
                                ModelImage im,
                                int zSlice,
                                int tSlice)
        Builds the image attribute input dialog, with three tabbled panes allowing the user to edit image name, orientation, resolutions, and transformation matrix.
        Parameters:
        theParentFrame - Parent frame of dialog.
        im - Image whose attributes the user is editing.
        zSlice - DOCUMENT ME!
        tSlice - DOCUMENT ME!
    • 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:
        actionPerformed in interface java.awt.event.ActionListener
        Overrides:
        actionPerformed in class JDialogBase
        Parameters:
        event - Event that triggers this function.
      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent e)
        DOCUMENT ME!
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener
        Overrides:
        itemStateChanged in class JDialogBase
        Parameters:
        e - DOCUMENT ME!
      • matrixFileMenu

        public java.lang.String matrixFileMenu()
        Allows the user to select matrix file.
        Returns:
        fileName
      • populateTalairachTab

        public void populateTalairachTab()
        Looks at TalairachTransformInfo saved in ModelImage and populates the talairach scrollpane with the appropriate data.
      • readTransformMatrixFile

        public void readTransformMatrixFile​(java.lang.String fileName)
        Reads a matrix from a file.
        Parameters:
        fileName - name of the matrix file.
      • setLeftHandSystem

        public void setLeftHandSystem​(boolean leftHandSys)
        Sets the left-hand coordinate flag. If true, change matrix to the left-hand coordinate system.
        Overrides:
        setLeftHandSystem in class JDialogBase
        Parameters:
        leftHandSys - true for left-handed
      • setMatrix

        public void setMatrix​(TransMatrix newMatrix)
        update matrix and text matrix
        Parameters:
        newMatrix - matrix to copy
      • setResolutionTag

        public void setResolutionTag()
        Set the resolution tag in front view.
      • setSlice

        public void setSlice​(int z,
                             int t)
        Update the title bar and resolution information.
        Parameters:
        z - int z-dim
        t - int t-dim
      • setWCSystem

        public void setWCSystem​(boolean wcSys)
        Sets the world coordinate flag. If true, change matrix to the world coordinate system.
        Overrides:
        setWCSystem in class JDialogBase
        Parameters:
        wcSys - DOCUMENT ME!
      • buildComboBox

        private javax.swing.JPanel buildComboBox()
        Builds the ComboBox panel editing units of measure.
        Returns:
        The combo box panel.
      • buildGeneralPanel

        private javax.swing.JPanel buildGeneralPanel()
        Builds the "edit image name" panel.
        Returns:
        The panel on which the user can edit the name of the image.
      • buildMatrixPanel

        private javax.swing.JPanel buildMatrixPanel()
        Builds the panel usd in the tabbed pane "transform" as appropriate for the number of dimensions of the image.
        Returns:
        The newly created matrix panel.
      • buildOrientPanel

        private javax.swing.JPanel buildOrientPanel()
        Builds the "orientation edit" panel.
        Returns:
        The panel on which the user can edit the name of the image.
      • buildResolutionPanel

        private javax.swing.JPanel buildResolutionPanel()
        Builds the panels which is edited in the tabbed pane "resolutions".
        Returns:
        The resolutions panel.
      • buildStartLocationsPanel

        private javax.swing.JPanel buildStartLocationsPanel()
        Builds the panels which is edited in the tabbed pane "Dataset Origin".
        Returns:
        The Dataset Origin panel.
      • buildTalairachPanel

        private javax.swing.JScrollPane buildTalairachPanel()
        Builds the Talairach Transform scrollpane with all talairach related data.
        Returns:
        JScrollPane talairach scrollpane
      • init

        private void init​(java.lang.String addTitle)
        Initializes the dialog box and adds the components.
        Parameters:
        addTitle - DOCUMENT ME!
      • setComboBox

        private void setComboBox​(javax.swing.JComboBox cBox)
        Sets combo box choices that match resolution units listed in FileInfoBase and in the same order.
        Parameters:
        cBox - Combo box to setup to display the units.
      • setVariables

        private boolean setVariables()
        Sets the variables appropriately from the GUI.
        Returns:
        Flag indicating successful set.
      • updateEndianess

        private void updateEndianess()
        Updates the image endianess.
      • updateImageModality

        private void updateImageModality()
        Updates the image modality.
      • updateImageOrientation

        private void updateImageOrientation()
        Updates the image orientation.
      • updateMatrixBox

        private void updateMatrixBox​(boolean refreshFields)
        Refreshes the matrix combo box with the list of available matrices within the image.
        Parameters:
        refreshFields - whether or not to refresh the matrix fields (not done in init() bc of order of operations)
      • updateMatrixFields

        private void updateMatrixFields​(TransMatrix newMatrix)
        Updates the matrix fields (transform ID, jtextfields).
        Parameters:
        newMatrix - new matrix to use in the update
      • updateMatrixInfo

        private void updateMatrixInfo()
        Updates the image with the new Matrix information (for matrix replacement).
      • updateOriginInfo

        private void updateOriginInfo()
        Updates the origin. Each image has a fileinfo where the origin are stored. Note that the start location for the Z (3rd) dimension change with the change is the slice. The origin is in the upper left corner and we are using the right hand rule. + x -> left to right; + y -> top to bottom and + z -> into screen.
      • updateResolInfo

        private void updateResolInfo()
        Gives the image new resolutions.
      • initResFactor

        protected static float[] initResFactor​(float[] imgResols,
                                               int[] imgUnits)
        Get the resolution correction needed for non-isotropic images.
        Parameters:
        imgResols - the image resolution
        imgUnits - the image units of measure
        Returns:
        the resolution correction factor in the x (the first element) and y (the second element) dimensions
      • updateTalairachInfo

        private void updateTalairachInfo()
        updates the talairach transform info.
      • updateTransformInfo

        private void updateTransformInfo​(TransMatrix tMat)
        Applies the values in the JTabbedPane "Transform" to the transform matrix in the image. Note that there are no visual changes made to the image itself.
        Parameters:
        tMat - DOCUMENT ME!
      • updateXMLLinkedFile

        private void updateXMLLinkedFile()
        method to update the xml file infos with a new linked image path.