Class ViewJFrameColocalizationRegression
- All Implemented Interfaces:
ViewImageUpdateInterface,ActionListener,ComponentListener,ItemListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
The LUT dialog can be used to set colors and transfer functions of the LUT table used by the 2D histogram display.
The dialog box for brightness and contrast has brightness and contrast sliders, an Apply button, and a Cancel button. The brightness will add an offset ranging from -255 to 255 to every scaled red, green, and blue in the image. Contrast will multiply every original red, green, and blue value by a floating point number ranging from 0.1 to 10.0. Before apply is pressed, slider changes are only temporarily made to the currently displayed slice. If apply is pressed, these changes are permanently made to the histogram image. Pressing cancel keeps all the histogram image in its original state.
The file menu only has 1 simple function - a close ViewJFrameColocalization structure function. The help menu only has 1 simple function - an about colocalization function.
ViewJFrameColocalizationRegression is called in AlgorithmColocalizationRegression. ViewJFrameColocalizationRegression calls ViewJComponentColocalizationRegression
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested 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 TypeFieldDescriptionDOCUMENT ME!private intDOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!DOCUMENT ME!private intDOCUMENT ME!private ViewJFrameBaseDOCUMENT ME!private ViewControlsImageDOCUMENT ME!private GridBagConstraintsDOCUMENT ME!private GridBagLayoutDOCUMENT ME!private StringDOCUMENT ME!private StringDOCUMENT ME!private ModelImageThe image containing the 2D histogram.private booleanDOCUMENT ME!private BorderDOCUMENT ME!private int[]DOCUMENT ME!private JToggleButtonDOCUMENT ME!private booleanDOCUMENT ME!private GridBagConstraintsDOCUMENT ME!private boolean[]true for pixels with calculated freeRangeRThreshold values.private boolean[]DOCUMENT ME!private ModelImageDOCUMENT ME!private ModelImageDOCUMENT ME!private float[]DOCUMENT ME!private JPanelDOCUMENT ME!private JLabelDOCUMENT ME!private JLabelprivate JLabel labelLineFunction;.private JLabelDOCUMENT ME!private JLabelDOCUMENT ME!private JLabelDOCUMENT ME!private JLabelDOCUMENT ME!private intThe spaces around the histogram bin area.private floatThe linear correlation coefficient for all points with either buffer[i] >= threshold1 or secondBuffer[i] >= threshold2.private doubleThe endpoints of the line segment in (buffer,secondBuffer) values.private doubleThe endpoints of the line segment in (buffer,secondBuffer) values.private doubleThe endpoints of the line segment in (buffer,secondBuffer) values.private doubleThe endpoints of the line segment in (buffer,secondBuffer) values.private JToggleButtonDOCUMENT ME!private booleanDOCUMENT ME!private ModelLUTDOCUMENT ME!private ModelLUTThe LUT for the 2D histogram.private doubleMinimum and maximum buffer and secondBuffer areas.private doubleMinimum and maximum buffer and secondBuffer areas.private ViewMenuBuilderDOCUMENT ME!private doubleMinimum and maximum buffer and secondBuffer areas.private doubleMinimum and maximum buffer and secondBuffer areas.private intDOCUMENT ME!private intDOCUMENT ME!private NumberFormatDOCUMENT ME!private intDOCUMENT ME!private floatDOCUMENT ME!private JMenuBarDOCUMENT ME!private intDOCUMENT ME!private floatred, green, and blue origBrightness remains constant until applyButton is pressed, restores brightness if cancelButton is pressed.private intDOCUMENT ME!private intDOCUMENT ME!private int[]DOCUMENT ME!private int[]DOCUMENT ME!private booleanDOCUMENT ME!private VOIDOCUMENT ME!private BorderDOCUMENT ME!private floatstatistic giving the portion of images generated with randomly scrambled blocks of pixels having a linear correlation coefficient less than that of the actual image.private BorderDOCUMENT ME!private booleanDOCUMENT ME!private JToggleButtonDOCUMENT ME!private ModelRGBset to give 6 digits to the right of the decimal.private intDOCUMENT ME!private float[]The linear correlation coefficients for all pixels with values either below color1 for buffer or below a*color1 + b for secondBuffer.private doublebin1 is generated from Math.round(scale1*(buffer[i]-min1)) and bin2 is generated from Math.round(scale2*(secondBuffer[i]-min2)).private doublebin1 is generated from Math.round(scale1*(buffer[i]-min1)) and bin2 is generated from Math.round(scale2*(secondBuffer[i]-min2)).private JScrollPaneDOCUMENT ME!private intDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private floatThe slope and offset of the total least squares line.private JPanelDOCUMENT ME!private intDOCUMENT ME!private booleanIf true, the matrix of linear correlation coefficients is taken along color 1 at unity spacings.private JToolBarDOCUMENT ME!private intDOCUMENT ME!private JPaneland innerPanel placed in scrollPane.private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private ViewUserInterfaceDOCUMENT ME!private ViewVOIVectorred, green, and blue origContrast remains constant until applyButton is pressed, restores contrast if cancelButton is pressed.private intDOCUMENT ME!private intDOCUMENT ME!private floatDOCUMENT ME!Fields inherited from class gov.nih.mipav.view.ViewJFrameBase
absoluteGoToButton, absoluteGoToPanel, absoluteLabel, absoluteLabelVals, absolutePanel, absoluteXLabel, absoluteXTextField, absoluteYLabel, absoluteYTextField, absoluteZLabel, absoluteZTextField, alphaBlend, defaultLUTa, defaultLUTb, displayMode, IMAGE_A, IMAGE_A_B, IMAGE_B, isClosing, linkedScrolling, linkFrame, linkTriFrame, LUTb, progressBar, scannerLPS_APLabel, scannerLPS_APTextField, scannerLPS_GoToButton, scannerLPS_GoToPanel, scannerLPS_ISLabel, scannerLPS_ISTextField, scannerLPS_RLLabel, scannerLPS_RLTextField, scannerLPSLabel, scannerLPSLabelVals, scannerLPSPanel, scannerRAS_APLabel, scannerRAS_APTextField, scannerRAS_GoToButton, scannerRAS_GoToPanel, scannerRAS_ISLabel, scannerRAS_ISTextField, scannerRAS_RLLabel, scannerRAS_RLTextField, scannerRASLabel, scannerRASLabelVals, scannerRASPanel, scannerTabbedPane, tabbedPane, talGoToButton, talGoToPanel, talXLabel, talXTextField, talYLabel, talYTextField, talZLabel, talZTextField, zoomModeFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionViewJFrameColocalizationRegression(AlgorithmColocalizationRegression alg, ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, ModelRGB _RGBTA, ModelImage destImage, ViewJFrameBase controlFrame, boolean useRed, boolean useGreen, boolean useBlue, float slope, float offset, float linearCorrelation, float PValue, boolean[] haveThreshold, float[] rThreshold, float[] colocSize, float[] colocIntensity1, float[] colocIntensity2, double min1, double max1, double min2, double max2, double scale1, double scale2, double lineMin1, double lineMax1, double lineMin2, double lineMax2, boolean thresholdOn1, int leftPad, int rightPad, int bottomPad, int topPad, boolean doSecondIteration, boolean pointCalculation) Makes a frame of the colocalization histogram. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Calls various methods depending on the action.private voidaddStatusPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Method that adds components to the control paenl.private JToolBarMethod to build the toolbar for the Animate frame.private voidThis method builds a menu which contains the option Close ColocalizationRegression.private voidMake a scroll frame and puts an image component into it.private voidPanel that builds the status display panel.voidResets current slice's brightness and contrast to original.voidcomponentResized(ComponentEvent event) Resizes frame and all components.voiddispose()Disposes of components and frame.Get control widgets for frame.Accessor that returns the reference to imageA.Accessor that returns the reference to imageB.voiditemStateChanged(ItemEvent event) Sets border painted or not painted depending on if the button was selected or deselected.private JButtonMakes a separator for the use in the toolbars.private voidPanel that builds the status display panel.voidpassFreeRangeArrays(boolean[] haveFreeRangeThreshold, float[] freeRangeRThreshold, float[] freeRangeColocSize, float[] freeRangeColocIntensity1, float[] freeRangeColocIntensity2) Passes arrays needed in free range mode.voidDOCUMENT ME!voidDoes nothing.voidsetActiveImage(int active) Does nothing.voidsetAlphaBlend(int value) Does nothing.voidsetBrightness(int brightness, float contrast) Sets the brightness and contrast of the component image.voidDoes nothing.voidsetCurrentLabels(String str1, String str2, String str3, String str4) DOCUMENT ME!voidsetEnabled(boolean flag) Does nothing.voidsetImageB(ModelImage _imageB) Does nothing.voidsetLUTdest(ModelLUT LUTdest) DOCUMENT ME!voidsetNewVar(float slope, float offset, float linearCorrelation, float PValue, boolean[] haveThreshold, float[] rThreshold, float[] colocSize, float[] colocIntensity1, float[] colocIntensity2, double min1, double max1, double min2, double max2, double scale1, double scale2, double lineMin1, double lineMax1, double lineMin2, double lineMax2, boolean thresholdOn1) Modifies a frame of the colocalization histogram after mouseRelased has indicated the contour VOI in the source image has been moved.voidsetPaintBitmapSwitch(boolean paintBitmapSwitch) Does nothing.voidSets the RGB LUT table for ARGB image A.voidSets the RGB LUT table for ARGB image B.voidsetSlice(int slice) Does nothing.voidsetTimeSlice(int slice) Does nothing.voidsetTitle()Set the title of the frame with the image name and magnification.voidSets values based on knob along slider.protected booleantestParameter(String str, double minValue, double maxValue) Tests that the entered parameter is in range.voidupdateFrame(float sX, float sY) Does nothing.booleanDoes nothing.final booleanDoes nothing.final booleanupdateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen.final booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) Does nothing.voidwindowActivated(WindowEvent event) Does nothing.voidwindowClosed(WindowEvent event) Does nothing.voidwindowClosing(WindowEvent event) Stops thread, calls close.voidwindowDeactivated(WindowEvent event) Does nothing.voidwindowDeiconified(WindowEvent event) Does nothing.voidwindowIconified(WindowEvent event) Does nothing.voidwindowOpened(WindowEvent event) Does nothing.Methods inherited from class gov.nih.mipav.view.ViewJFrameBase
about, buildLabelPanel, canCloseImageBAfterLoad, close, close, closeImageB, componentHidden, componentMoved, componentShown, finalize, getAlphaBlend, getDefaultLUTa, getDefaultLUTb, getDisplayMode, getImageNameA, getImageNameB, getLastState, getLUTa, getLUTb, getRGBTA, getRGBTB, getTriImg, getUserInterface, handleMaskPopupMenu, handlePaintToMaskPopupMenu, handleZoomPopupMenu, initExtents, initImageBuffer, initLUT, initNumSlices, initPixelBuffer, initResFactor, initResolutions, initRGB, initSlicePositions, initUnits, initZoom, loadAllVOIs, loadAllVOIsFrom, loadImage, loadLUT, loadLUTandTransferFunctionFrom, loadLUTandTransferFunctionFrom, makeString, newFrameBeenCreated, openVOI, openVOI, pickImageFile, save, save, save, saveAllVOIs, saveAllVOIsTo, saveLabels, saveLUT, saveLUTandTransferFunction, saveLUTandTransferFunction, saveLUTAs, saveLUTAs, saveVOI, saveVOIAs, saveVOIAs, saveVOIIntensities, saveVOIIntensitiesTo, setAbsPositionLabels, setEnableCloseImageBAfterLoad, setImageA, setLastState, setLinkedFrame, setLinkedTriFrame, setLUTa, setLUTb, setLUTs, setMessageText, setOpacityInfo, setpaintBitmap, setScannerPositionMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontMethods 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, validateTreeMethods 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, 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, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
alg
DOCUMENT ME! -
bottomPad
private int bottomPadDOCUMENT ME! -
colocIntensity1
private float[] colocIntensity1DOCUMENT ME! -
colocIntensity2
private float[] colocIntensity2DOCUMENT ME! -
colocSize
private float[] colocSizeDOCUMENT ME! -
componentImage
DOCUMENT ME! -
componentY
private int componentYDOCUMENT ME! -
controlFrame
DOCUMENT ME! -
controls
DOCUMENT ME! -
cpGBC
DOCUMENT ME! -
cpGBL
DOCUMENT ME! -
dataLine1
DOCUMENT ME! -
dataLine2
DOCUMENT ME! -
destImage
The image containing the 2D histogram. -
doSecondIteration
private boolean doSecondIterationDOCUMENT ME! -
etchedBorder
DOCUMENT ME! -
extents
private int[] extentsDOCUMENT ME! -
freeRangeButton
DOCUMENT ME! -
freeRangeMode
private boolean freeRangeModeDOCUMENT ME! -
gbcTP
DOCUMENT ME! -
haveFreeRangeThreshold
private boolean[] haveFreeRangeThresholdtrue for pixels with calculated freeRangeRThreshold values. -
haveThreshold
private boolean[] haveThresholdDOCUMENT ME! -
imageA
DOCUMENT ME! -
imageB
DOCUMENT ME! -
imageBufferDest
private float[] imageBufferDestDOCUMENT ME! -
innerPanel
DOCUMENT ME! -
labelCurrent
DOCUMENT ME! -
labelCurrentColoc
private JLabel labelLineFunction;. -
labelCurrentIntensity1
DOCUMENT ME! -
labelCurrentIntensity2
DOCUMENT ME! -
labelLinearCorrelation
DOCUMENT ME! -
labelPValue
DOCUMENT ME! -
leftPad
private int leftPadThe spaces around the histogram bin area. -
linearCorrelation
private float linearCorrelationThe linear correlation coefficient for all points with either buffer[i] >= threshold1 or secondBuffer[i] >= threshold2. -
lineMin1
private double lineMin1The endpoints of the line segment in (buffer,secondBuffer) values. -
lineMax1
private double lineMax1The endpoints of the line segment in (buffer,secondBuffer) values. -
lineMin2
private double lineMin2The endpoints of the line segment in (buffer,secondBuffer) values. -
lineMax2
private double lineMax2The endpoints of the line segment in (buffer,secondBuffer) values. -
logDisplayButton
DOCUMENT ME! -
logMagDisplay
private boolean logMagDisplayDOCUMENT ME! -
LUTa
DOCUMENT ME! -
LUTdest
The LUT for the 2D histogram. -
min1
private double min1Minimum and maximum buffer and secondBuffer areas. -
max1
private double max1Minimum and maximum buffer and secondBuffer areas. -
min2
private double min2Minimum and maximum buffer and secondBuffer areas. -
max2
private double max2Minimum and maximum buffer and secondBuffer areas. -
minimumHeight
private int minimumHeightDOCUMENT ME! -
minimumToolBarWidth
private int minimumToolBarWidthDOCUMENT ME! -
nf
DOCUMENT ME! -
nVOI
private int nVOIDOCUMENT ME! -
offset
private float offsetDOCUMENT ME! -
openingMenuBar
DOCUMENT ME! -
origBrightness
private int origBrightnessDOCUMENT ME! -
origContrast
private float origContrastred, green, and blue origBrightness remains constant until applyButton is pressed, restores brightness if cancelButton is pressed. -
originalX
private int originalXDOCUMENT ME! -
originalY
private int originalYDOCUMENT ME! -
paintBufferDest
private int[] paintBufferDestDOCUMENT ME! -
pixBufferDest
private int[] pixBufferDestDOCUMENT ME! -
pointCalculation
private boolean pointCalculationDOCUMENT ME! -
pointVOI
DOCUMENT ME! -
pressedBorder
DOCUMENT ME! -
PValue
private float PValuestatistic giving the portion of images generated with randomly scrambled blocks of pixels having a linear correlation coefficient less than that of the actual image. -
raisedBorder
DOCUMENT ME! -
regionLinesDisplay
private boolean regionLinesDisplayDOCUMENT ME! -
regionLinesDisplayButton
DOCUMENT ME! -
RGBTA
set to give 6 digits to the right of the decimal. -
rightPad
private int rightPadDOCUMENT ME! -
rThreshold
private float[] rThresholdThe linear correlation coefficients for all pixels with values either below color1 for buffer or below a*color1 + b for secondBuffer. -
scale1
private double scale1bin1 is generated from Math.round(scale1*(buffer[i]-min1)) and bin2 is generated from Math.round(scale2*(secondBuffer[i]-min2)). -
scale2
private double scale2bin1 is generated from Math.round(scale1*(buffer[i]-min1)) and bin2 is generated from Math.round(scale2*(secondBuffer[i]-min2)). -
scrollPane
DOCUMENT ME! -
scrollPaneSize
private int scrollPaneSizeDOCUMENT ME! -
slope
private float slopeThe slope and offset of the total least squares line. -
statusPanel
DOCUMENT ME! -
structureY
private int structureYDOCUMENT ME! -
thresholdOn1
private boolean thresholdOn1If true, the matrix of linear correlation coefficients is taken along color 1 at unity spacings. If false, along color 2. -
toolBar
DOCUMENT ME! -
topPad
private int topPadDOCUMENT ME! -
topPanel
and innerPanel placed in scrollPane. -
useBlue
private boolean useBlueDOCUMENT ME! -
useGreen
private boolean useGreenDOCUMENT ME! -
useRed
private boolean useRedDOCUMENT ME! -
userInterface
DOCUMENT ME! -
VOIs
red, green, and blue origContrast remains constant until applyButton is pressed, restores contrast if cancelButton is pressed. -
xScreen
private int xScreenDOCUMENT ME! -
yScreen
private int yScreenDOCUMENT ME! -
zoom
private float zoomDOCUMENT ME!
-
-
Constructor Details
-
ViewJFrameColocalizationRegression
public ViewJFrameColocalizationRegression(AlgorithmColocalizationRegression alg, ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, ModelRGB _RGBTA, ModelImage destImage, ViewJFrameBase controlFrame, boolean useRed, boolean useGreen, boolean useBlue, float slope, float offset, float linearCorrelation, float PValue, boolean[] haveThreshold, float[] rThreshold, float[] colocSize, float[] colocIntensity1, float[] colocIntensity2, double min1, double max1, double min2, double max2, double scale1, double scale2, double lineMin1, double lineMax1, double lineMin2, double lineMax2, boolean thresholdOn1, int leftPad, int rightPad, int bottomPad, int topPad, boolean doSecondIteration, boolean pointCalculation) Makes a frame of the colocalization histogram.- Parameters:
alg- AlgorithmColocalizationRegression parent_imageA- Model of imageA_LUTa- Model of LUT for image A_imageB- Model of imageB_LUTb- Model of LUT for image B_RGBTA- Model RGB LUT for color image (A) else nulldestImage- The destination imagecontrolFrame- ViewJFrameBase passed to ViewJComponentColocalizationRegressionuseRed- DOCUMENT ME!useGreen- DOCUMENT ME!useBlue- DOCUMENT ME!slope- DOCUMENT ME!offset- DOCUMENT ME!linearCorrelation- DOCUMENT ME!PValue- DOCUMENT ME!haveThreshold- DOCUMENT ME!rThreshold- DOCUMENT ME!colocSize- DOCUMENT ME!colocIntensity1- DOCUMENT ME!colocIntensity2- DOCUMENT ME!min1- DOCUMENT ME!max1- DOCUMENT ME!min2- DOCUMENT ME!max2- DOCUMENT ME!scale1- DOCUMENT ME!scale2- DOCUMENT ME!lineMin1- DOCUMENT ME!lineMax1- DOCUMENT ME!lineMin2- DOCUMENT ME!lineMax2- DOCUMENT ME!thresholdOn1- DOCUMENT ME!leftPad- DOCUMENT ME!rightPad- DOCUMENT ME!bottomPad- DOCUMENT ME!topPad- DOCUMENT ME!doSecondIteration- DOCUMENT ME!pointCalculation- DOCUMENT ME!
-
-
Method Details
-
actionPerformed
Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classViewJFrameBase- Parameters:
event- event that triggered function
-
cancelBrightness
public void cancelBrightness()Resets current slice's brightness and contrast to original. -
componentResized
Resizes frame and all components.- Specified by:
componentResizedin interfaceComponentListener- Overrides:
componentResizedin classViewJFrameBase- Parameters:
event- event that triggered function
-
dispose
public void dispose()Disposes of components and frame. -
getControls
Get control widgets for frame.- Specified by:
getControlsin classViewJFrameBase- Returns:
- controls
-
getImageA
Accessor that returns the reference to imageA.- Specified by:
getImageAin classViewJFrameBase- Returns:
- image
-
getImageB
Accessor that returns the reference to imageB.- Specified by:
getImageBin classViewJFrameBase- Returns:
- imageB
-
itemStateChanged
Sets border painted or not painted depending on if the button was selected or deselected. Changes the currently selected script.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
event- Event that triggered this function.
-
passFreeRangeArrays
public void passFreeRangeArrays(boolean[] haveFreeRangeThreshold, float[] freeRangeRThreshold, float[] freeRangeColocSize, float[] freeRangeColocIntensity1, float[] freeRangeColocIntensity2) Passes arrays needed in free range mode.- Parameters:
haveFreeRangeThreshold- DOCUMENT ME!freeRangeRThreshold- DOCUMENT ME!freeRangeColocSize- DOCUMENT ME!freeRangeColocIntensity1- DOCUMENT ME!freeRangeColocIntensity2- DOCUMENT ME!freeRangeColocIntensity2-
-
pointCalculate
public void pointCalculate()DOCUMENT ME! -
removeControls
public void removeControls()Does nothing.- Specified by:
removeControlsin classViewJFrameBase
-
setActiveImage
public void setActiveImage(int active) Does nothing.- Specified by:
setActiveImagein classViewJFrameBase- Parameters:
active- DOCUMENT ME!
-
setAlphaBlend
public void setAlphaBlend(int value) Does nothing.- Specified by:
setAlphaBlendin classViewJFrameBase- Parameters:
value- DOCUMENT ME!
-
setBrightness
public void setBrightness(int brightness, float contrast) Sets the brightness and contrast of the component image. Set all slices to have the new brightness and contrast. Results in createImage producing an Image img[slice] for every slice.- Parameters:
brightness- Brightness to set.contrast- Contrast to set.
-
setControls
public void setControls()Does nothing.- Specified by:
setControlsin classViewJFrameBase
-
setCurrentLabels
DOCUMENT ME!- Parameters:
str1- DOCUMENT ME!str2- DOCUMENT ME!str3- DOCUMENT ME!str4- DOCUMENT ME!
-
setEnabled
public void setEnabled(boolean flag) Does nothing.- Specified by:
setEnabledin classViewJFrameBase- Parameters:
flag- DOCUMENT ME!
-
setImageB
Does nothing.- Specified by:
setImageBin classViewJFrameBase- Parameters:
_imageB- DOCUMENT ME!
-
setLUTdest
DOCUMENT ME!- Parameters:
LUTdest- DOCUMENT ME!
-
setNewVar
public void setNewVar(float slope, float offset, float linearCorrelation, float PValue, boolean[] haveThreshold, float[] rThreshold, float[] colocSize, float[] colocIntensity1, float[] colocIntensity2, double min1, double max1, double min2, double max2, double scale1, double scale2, double lineMin1, double lineMax1, double lineMin2, double lineMax2, boolean thresholdOn1) Modifies a frame of the colocalization histogram after mouseRelased has indicated the contour VOI in the source image has been moved.- Parameters:
slope- DOCUMENT ME!offset- DOCUMENT ME!linearCorrelation- DOCUMENT ME!PValue- DOCUMENT ME!haveThreshold- DOCUMENT ME!rThreshold- DOCUMENT ME!colocSize- DOCUMENT ME!colocIntensity1- DOCUMENT ME!colocIntensity2- DOCUMENT ME!min1- DOCUMENT ME!max1- DOCUMENT ME!min2- DOCUMENT ME!max2- DOCUMENT ME!scale1- DOCUMENT ME!scale2- DOCUMENT ME!lineMin1- DOCUMENT ME!lineMax1- DOCUMENT ME!lineMin2- DOCUMENT ME!lineMax2- DOCUMENT ME!thresholdOn1- DOCUMENT ME!
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean paintBitmapSwitch) Does nothing.- Specified by:
setPaintBitmapSwitchin classViewJFrameBase- Parameters:
paintBitmapSwitch- DOCUMENT ME!
-
setRGBTA
Sets the RGB LUT table for ARGB image A.- Specified by:
setRGBTAin classViewJFrameBase- Parameters:
RGBT- the new RGB LUT to be applied to the image
-
setRGBTB
Sets the RGB LUT table for ARGB image B.- Specified by:
setRGBTBin classViewJFrameBase- Parameters:
RGBT- the new RGB LUT to be applied to the image
-
setSlice
public void setSlice(int slice) Does nothing.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- DOCUMENT ME!
-
setTimeSlice
public void setTimeSlice(int slice) Does nothing.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
slice- DOCUMENT ME!
-
setTitle
public void setTitle()Set the title of the frame with the image name and magnification.- Specified by:
setTitlein classViewJFrameBase
-
stateChanged
Sets values based on knob along slider.- Specified by:
stateChangedin interfaceChangeListener- Overrides:
stateChangedin classViewJFrameBase- Parameters:
e- Event that triggered this function
-
updateFrame
public void updateFrame(float sX, float sY) Does nothing.- Parameters:
sX- DOCUMENT ME!sY- DOCUMENT ME!
-
updateImageExtents
public boolean updateImageExtents()Does nothing.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Specified by:
updateImageExtentsin classViewJFrameBase- Returns:
- DOCUMENT ME!
- See Also:
-
updateImages
public final boolean updateImages()Does nothing.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- DOCUMENT ME!
-
updateImages
public final boolean updateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
forceShow- unused parameter- Returns:
- boolean confirming successful update
-
updateImages
Does nothing.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
LUTa- DOCUMENT ME!LUTb- DOCUMENT ME!forceShow- DOCUMENT ME!interpMode- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
windowActivated
Does nothing.- Specified by:
windowActivatedin interfaceWindowListener- Overrides:
windowActivatedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowClosed
Does nothing.- Specified by:
windowClosedin interfaceWindowListener- Overrides:
windowClosedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowClosing
Stops thread, calls close.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameBase- Parameters:
event- event that triggered function
-
windowDeactivated
Does nothing.- Specified by:
windowDeactivatedin interfaceWindowListener- Overrides:
windowDeactivatedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowDeiconified
Does nothing.- Specified by:
windowDeiconifiedin interfaceWindowListener- Overrides:
windowDeiconifiedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowIconified
Does nothing.- Specified by:
windowIconifiedin interfaceWindowListener- Overrides:
windowIconifiedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowOpened
Does nothing.- Specified by:
windowOpenedin interfaceWindowListener- Overrides:
windowOpenedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
testParameter
Tests that the entered parameter is in range.- Parameters:
str- the value entered by the userminValue- the minimum value this variable may be set tomaxValue- the maximum value this variable may be set to- Returns:
- boolean result of test
-
addStatusPanel
Method that adds components to the control paenl.- Parameters:
c- component added to the control panelgbc- GridBagConstraints of added componentx- grdix locationy- gridy locationw- gridwidthh- gridheight
-
buildColocalizeToolBar
Method to build the toolbar for the Animate frame.- Parameters:
al- Action listener (this frame)- Returns:
- The animation toolbar
-
buildMenu
private void buildMenu()This method builds a menu which contains the option Close ColocalizationRegression. -
buildScrollPane
private void buildScrollPane()Make a scroll frame and puts an image component into it. -
buildStatusPanel
private void buildStatusPanel()Panel that builds the status display panel. -
makeSeparator
Makes a separator for the use in the toolbars.- Returns:
- Separator button.
-
modifyStatusPanel
private void modifyStatusPanel()Panel that builds the status display panel.
-