Package gov.nih.mipav.view
Class ViewJPanelLUT
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.ViewJPanelLUT
- All Implemented Interfaces:
HistoLUTParent,ActionListener,ItemListener,KeyListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener
public class ViewJPanelLUT
extends JPanel
implements ItemListener, ActionListener, ChangeListener, KeyListener, HistoLUTParent
Deprecated.
Panel which contains the LUT / HistoLUT components and related GUI components.
- Version:
- 1.0
- Author:
- Evan McCreedy
- 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 JDialogCTDeprecated.DOCUMENT ME!private JDialogCTDeprecated.DOCUMENT ME!private intDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.private intDeprecated.Active mouse cursor index of the imageA, B and GM image A, B.static final StringDeprecated.private booleanDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ViewJPanelHistoLUTDeprecated.DOCUMENT ME!private ViewJPanelHistoLUTDeprecated.DOCUMENT ME!private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B.private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JLabelDeprecated.The opacity slider label.private JLabelDeprecated.The opacity slider label.private JSliderDeprecated.Opacity X scale sliders.private JSliderDeprecated.Opacity X scale sliders.private JLabel[]Deprecated.The labels below the opacity slider.private JLabel[]Deprecated.The labels below the opacity slider.private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JComboBoxDeprecated.DOCUMENT ME!private JComboBoxDeprecated.DOCUMENT ME!private JPanelDeprecated.DOCUMENT ME!private JPanelDeprecated.DOCUMENT ME!private ViewJFrameHistoLUTDeprecated.DOCUMENT ME!private JTextFieldDeprecated.X range text field in the imageA, B histogram dialog.private JTextFieldDeprecated.X range text field in the imageA, B histogram dialog.private floatDeprecated.X range value of the imageA, B and GM imageA, B.private floatDeprecated.X range value of the imageA, B and GM imageA, B.private intDeprecated.Scale range value according to the image min and max.private intDeprecated.Scale range value according to the image min and max.private static final longDeprecated.Use serialVersionUID for interoperability.private JTabbedPaneDeprecated.DOCUMENT ME!private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JToolBarDeprecated.DOCUMENT ME!private JToolBarDeprecated.center toolbarprivate ViewToolBarBuilderDeprecated.DOCUMENT ME!private JToolBarDeprecated.DOCUMENT ME!private JToolBarDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JLabelDeprecated.Used to display the volume or area of the voxels/pixels between the upper and lower bounds.private JTextFieldDeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.X range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.private JTextFieldDeprecated.Y range text field in the imageA, B and GM image A, B histogram dialog.Fields 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) Deprecated.Calls various methods depending on the action.static final JToolBarbuildLUTSelectionList(ActionListener listener) Deprecated.private voidbuildPanelA(ModelImage image, ModelLUT LUT, boolean entireFlag) Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelB(ModelImage image, ModelLUT LUT, boolean entireFlag) Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidcalcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag) Deprecated.Calculates histogram for the image(s).private voidDeprecated.Calculates the thresholded image based on the parameters of the threshold transfer function.private voidDeprecated.Calculates the volume (for 3D images) or area (for 2D images) of the image between the two values from the upper and lower bounds text areas.private voidcalculateThreshold(float lower, float upper) Deprecated.Calculates the volume or area of the image between the two values from the upper and lower bounds (inclusive).private voidcalculateThresholdArea(float lower, float upper) Deprecated.Calculates the area of the image between the two values from the upper and lower bounds (inclusive).private voidcalculateThresholdVolume(float lower, float upper) Deprecated.Calculates the volume of the image between the two values from the upper and lower bounds (inclusive).voidDeprecated.DOCUMENT ME!voiddispose()Deprecated.Disposes of components and frame.voiddragPoint(MouseEvent mouseEvent) Deprecated.Placeholder.Deprecated.final ViewJComponentHLUTBaseDeprecated.Get the histogram component for imageA.final ViewJComponentHLUTBaseDeprecated.Get the histogram component for imageB.floatDeprecated.Returns the lower threshold value.final ModelLUTgetLUTa()Deprecated.Get the imageA histo component lut.final ModelLUTgetLUTb()Deprecated.Get the imageB histo component lut.final ViewJComponentLUTDeprecated.Get the imageA LUT.final ViewJComponentLUTDeprecated.Get the imageB LUT.Deprecated.Get the LUT recorder reference.floatDeprecated.Returns the upper threshold value.voidinitGUI()Deprecated.Set up the panel components.booleanDeprecated.Returns whether the imageA LUT panel is the one being worked on.booleanDeprecated.Returns whether the imageB LUT panel is the one being worked on.booleanDeprecated.Indicates if real-time update of the image should take place.private booleanisLUT1Based(ModelLUT LUT) Deprecated.end HistoLUTParent.voiditemStateChanged(ItemEvent event) Deprecated.Sets the flags for the checkboxes.voidDeprecated.Unchanged.voidDeprecated.Unchanged.voidDeprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).static final BufferedReaderopenLUTFile(String lutName) Deprecated.voidDeprecated.Removes the tabbed pane for the histogram of image B.voidDeprecated.Placeholder.voidDeprecated.Replaces the LUT and builds a new LUT component.final voidDeprecated.Change the histogram component LUT.final voidDeprecated.Change the histogram component LUT.voidsetNColors(int value) Deprecated.Change the text field showing the number of colors.voidsetRangeText(float x, float y, int _index) Deprecated.Set the range value of the text field.voidDeprecated.Sets values based on knob along slider.voidDeprecated.Placeholder.voidupdateFrames(boolean flag) Deprecated.Update all of the image frames that display the image this histo lut is for.voidupdateHistoLUT(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, boolean progressFlag) Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.voidDeprecated.Placeholder.voidupdateThresholdFields(float lower, float upper) Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.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 serialVersionUIDDeprecated.Use serialVersionUID for interoperability.- See Also:
-
ctDialogA
Deprecated.DOCUMENT ME! -
ctDialogB
Deprecated.DOCUMENT ME! -
cursorIndex
private int cursorIndexDeprecated.Active mouse cursor index of the imageA, B and GM image A, B. -
cursorIndexB
private int cursorIndexBDeprecated.Active mouse cursor index of the imageA, B and GM image A, B. -
entireFlag
private boolean entireFlagDeprecated.DOCUMENT ME! -
histogramA
Deprecated.DOCUMENT ME! -
histogramB
Deprecated.DOCUMENT ME! -
histoPanelA
Deprecated.DOCUMENT ME! -
histoPanelB
Deprecated.DOCUMENT ME! -
indexColorATextF
Deprecated.DOCUMENT ME! -
indexColorBTextF
Deprecated.DOCUMENT ME! -
interpCheckBoxA
Deprecated.DOCUMENT ME! -
interpCheckBoxB
Deprecated.DOCUMENT ME! -
labelsTable
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B. -
labelsTableB
Deprecated.Histogram dialog slider labels of the imageA, B and GM imageA, B. -
logCheckBoxA
Deprecated.DOCUMENT ME! -
logCheckBoxB
Deprecated.DOCUMENT ME! -
mouseLabel
Deprecated.The opacity slider label. -
mouseLabelB
Deprecated.The opacity slider label. -
mouseSlider
Deprecated.Opacity X scale sliders. -
mouseSliderB
Deprecated.Opacity X scale sliders. -
mouseSliderLabels
Deprecated.The labels below the opacity slider. -
mouseSliderLabelsB
Deprecated.The labels below the opacity slider. -
nColorsATextF
Deprecated.DOCUMENT ME! -
nColorsBTextF
Deprecated.DOCUMENT ME! -
oneBasedLUTCheckBoxImageB
Deprecated.DOCUMENT ME! -
outputBox
Deprecated.DOCUMENT ME! -
outputBoxB
Deprecated.DOCUMENT ME! -
panelA
Deprecated.DOCUMENT ME! -
panelB
Deprecated.DOCUMENT ME! -
panelParent
Deprecated.DOCUMENT ME! -
rangeText
Deprecated.X range text field in the imageA, B histogram dialog. -
rangeTextB
Deprecated.X range text field in the imageA, B histogram dialog. -
rangeX
private float rangeXDeprecated.X range value of the imageA, B and GM imageA, B. -
rangeXB
private float rangeXBDeprecated.X range value of the imageA, B and GM imageA, B. -
scaleRangeA
private int scaleRangeADeprecated.Scale range value according to the image min and max. -
scaleRangeB
private int scaleRangeBDeprecated.Scale range value according to the image min and max. -
tabbedPane
Deprecated.DOCUMENT ME! -
threshLowerBF
Deprecated.DOCUMENT ME! -
threshUpperBF
Deprecated.DOCUMENT ME! -
threshFillBF
Deprecated.DOCUMENT ME! -
threshLowerF
Deprecated.threshold related. -
threshUpperF
Deprecated.threshold related. -
threshFillF
Deprecated.threshold related. -
toolBarBottom
Deprecated.DOCUMENT ME! -
toolBarCenter
Deprecated.center toolbar -
toolBarObj
Deprecated.DOCUMENT ME! -
toolBarThreshold
Deprecated.DOCUMENT ME! -
toolBarTop
Deprecated.DOCUMENT ME! -
updateCheckBoxA
Deprecated.DOCUMENT ME! -
updateCheckBoxB
Deprecated.DOCUMENT ME! -
voxelVolumeLabel
Deprecated.Used to display the volume or area of the voxels/pixels between the upper and lower bounds. -
xRangeTextA
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view. -
xRangeTextB
Deprecated.X range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view. -
yRangeTextA
Deprecated.Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view. -
yRangeTextB
Deprecated.Y range text field in the imageA, B and GM image A, B histogram dialog. Following text fields are used by the tri-planar volume view. -
customLUTsLocation
Deprecated.The location of custom LUT definitions, mostly used for volume rendering purposes. The original set were taken from the Osirix imaging application.- See Also:
-
-
Constructor Details
-
ViewJPanelLUT
Deprecated.Set up the LUT panel.- Parameters:
parent- DOCUMENT ME!
-
-
Method Details
-
actionPerformed
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Parameters:
event- event that triggered function
-
clearVoxelLabel
public void clearVoxelLabel()Deprecated.DOCUMENT ME! -
dispose
public void dispose()Deprecated.Disposes of components and frame. -
dragPoint
Deprecated.Placeholder.- Specified by:
dragPointin interfaceHistoLUTParent- Parameters:
mouseEvent- drag event
-
getHistoLUTComponentA
Deprecated.Get the histogram component for imageA.- Returns:
- the imageA histogram component
-
getHistoLUTComponentB
Deprecated.Get the histogram component for imageB.- Returns:
- the imageB histogram component
-
getLowerThreshold
public float getLowerThreshold()Deprecated.Returns the lower threshold value.- Returns:
- float lower thresh
-
getLUTa
Deprecated.Get the imageA histo component lut.- Returns:
- ModelLUT
-
getLUTb
Deprecated.Get the imageB histo component lut.- Returns:
- ModelLUT
-
getLUTComponentA
Deprecated.Get the imageA LUT.- Returns:
- the imageA LUT component
-
getLUTComponentB
Deprecated.Get the imageB LUT.- Returns:
- the imageB LUT component
-
getLUTRecorder
Deprecated.Get the LUT recorder reference.- Returns:
- JDialogRecordLUT reference to LUT recorder.
-
getUpperThreshold
public float getUpperThreshold()Deprecated.Returns the upper threshold value.- Returns:
- float upper thresh
-
initGUI
public void initGUI()Deprecated.Set up the panel components. -
buildLUTSelectionList
Deprecated.Build the center part of the LUT toolbar.- Parameters:
listener- The listener to attach to the created LUT selection combo box.- Returns:
- the top part of the LUT toolbar
-
getCustomLUTList
Deprecated. -
isImageASelected
public boolean isImageASelected()Deprecated.Returns whether the imageA LUT panel is the one being worked on.- Returns:
- whether the imageA LUT panel is the one being worked on
-
isImageBSelected
public boolean isImageBSelected()Deprecated.Returns whether the imageB LUT panel is the one being worked on.- Returns:
- whether the imageB LUT panel is the one being worked on
-
isImageUpdate
public boolean isImageUpdate()Deprecated.Indicates if real-time update of the image should take place.- Specified by:
isImageUpdatein interfaceHistoLUTParent- Returns:
trueif real time update should take place
-
itemStateChanged
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
event- event that triggered this function
-
keyPressed
Deprecated.Unchanged.- Specified by:
keyPressedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyReleased
Deprecated.Unchanged.- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyTyped
Deprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).- Specified by:
keyTypedin interfaceKeyListener- Parameters:
e- KeyEvent
-
removeHistoLUTb
public void removeHistoLUTb()Deprecated.Removes the tabbed pane for the histogram of image B. -
setAllOff
public void setAllOff()Deprecated.Placeholder.- Specified by:
setAllOffin interfaceHistoLUTParent
-
setLUT
Deprecated.Replaces the LUT and builds a new LUT component.- Specified by:
setLUTin interfaceHistoLUTParent- Parameters:
newLUT- New LUT
-
setLUTa
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setLUTb
Deprecated.Change the histogram component LUT.- Parameters:
lut- the new lut
-
setNColors
public void setNColors(int value) Deprecated.Change the text field showing the number of colors.- Parameters:
value- the number of colors
-
setRangeText
public void setRangeText(float x, float y, int _index) Deprecated.Set the range value of the text field.- Specified by:
setRangeTextin interfaceHistoLUTParent- Parameters:
x- the x threshold range valuey- the y threshold range value_index- the cursor index
-
stateChanged
Deprecated.Sets values based on knob along slider.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
e- event that triggered this function
-
updateComponentLUT
public void updateComponentLUT()Deprecated.Placeholder.- Specified by:
updateComponentLUTin interfaceHistoLUTParent
-
updateFrames
public void updateFrames(boolean flag) Deprecated.Update all of the image frames that display the image this histo lut is for.- Specified by:
updateFramesin interfaceHistoLUTParent- Parameters:
flag- this boolean indicates if the frame that displays the image should re-export the image and apply new LUT- See Also:
-
updateHistoLUT
public void updateHistoLUT(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, boolean progressFlag) Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.- Parameters:
_imageA- image A_LUTa- lookup table for image A_imageB- image B_LUTb- lookup table for image BprogressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed
-
updateLUTPositionString
Deprecated.Placeholder.- Specified by:
updateLUTPositionStringin interfaceHistoLUTParent- Parameters:
str- string
-
updateThresholdFields
public void updateThresholdFields(float lower, float upper) Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.- Specified by:
updateThresholdFieldsin interfaceHistoLUTParent- Parameters:
lower- the lower threshold valueupper- the upper threshold value
-
buildPanelA
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.- Parameters:
image- Model of imageLUT- Model of LUTentireFlag- Flag indicating if histogram should be made of entire image.
-
buildPanelB
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.- Parameters:
image- Model of imageLUT- Model of LUTentireFlag- Flag indicating if histogram should be made of entire image.
-
calcHistogram
private void calcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag) Deprecated.Calculates histogram for the image(s).- Parameters:
imageAorB- flag to indicate if histogram is to be calculated for imageA or imageB.entireFlag- if true calculate histogram for the entire image. if false uses areas defined by VOI regions.progressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed
-
calcThreshold
private void calcThreshold()Deprecated.Calculates the thresholded image based on the parameters of the threshold transfer function. Image A is thresholded if the selected panel is for imageA and likewise for image B. -
calculateThreshold
private void calculateThreshold()Deprecated.Calculates the volume (for 3D images) or area (for 2D images) of the image between the two values from the upper and lower bounds text areas. -
calculateThreshold
private void calculateThreshold(float lower, float upper) Deprecated.Calculates the volume or area of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
calculateThresholdArea
private void calculateThresholdArea(float lower, float upper) Deprecated.Calculates the area of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
calculateThresholdVolume
private void calculateThresholdVolume(float lower, float upper) Deprecated.Calculates the volume of the image between the two values from the upper and lower bounds (inclusive).- Parameters:
lower- Lower bound of the threshold (inclusive).upper- Upper bound of the threshold (inclusive).
-
isLUT1Based
Deprecated.end HistoLUTParent.- Parameters:
LUT- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
openLUTFile
Deprecated.Opens and returns a buffered reader for a given custom LUT name.- Parameters:
lutName- The name of the LUT file (without the extension).- Returns:
- A LUT file buffered reader.
- Throws:
IOException- See Also:
-