Package gov.nih.mipav.view
Class ViewJComponentColocalizationRegression
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
gov.nih.mipav.view.ViewJComponentBase
gov.nih.mipav.view.ViewJComponentColocalizationRegression
- All Implemented Interfaces:
MouseListener,MouseMotionListener,ImageObserver,MenuContainer,Serializable,EventListener
public class ViewJComponentColocalizationRegression
extends ViewJComponentBase
implements MouseMotionListener, MouseListener
DOCUMENT ME!
- See Also:
-
Nested Class Summary
Nested 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 TypeFieldDescriptionDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private intDOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private floatDOCUMENT ME!private ModelImageDOCUMENT ME!private booleanDOCUMENT ME!private ViewJComponentEditImageDOCUMENT ME!private ViewJComponentEditImageDOCUMENT ME!private floatDOCUMENT ME!protected ViewJFrameBaseframe - frame where the component image is displayed.private float[]DOCUMENT ME!private float[]DOCUMENT ME!private float[]DOCUMENT ME!private booleanDOCUMENT ME!private float[]DOCUMENT ME!private intDOCUMENT ME!private booleanDOCUMENT ME!private boolean[]DOCUMENT ME!private boolean[]DOCUMENT ME!protected ModelImageimageA - model for image A.protected ModelImageimageB - model for image B.private float[]DOCUMENT ME!private ImageDOCUMENT ME!protected intDOCUMENT ME!private intDOCUMENT ME!private floatDOCUMENT ME!private intDOCUMENT ME!private doubleDOCUMENT ME!private doubleDOCUMENT ME!private VOIDOCUMENT ME!DOCUMENT ME!private booleanDOCUMENT ME!private int[]DOCUMENT ME!private ModelLUTLUTa - lookup table for destImage.private doubleDOCUMENT ME!private doubleDOCUMENT ME!private doubleDOCUMENT ME!private MemoryImageSourceDOCUMENT ME!private doubleDOCUMENT ME!private doubleDOCUMENT ME!private doubleDOCUMENT ME!private intDOCUMENT ME!floatOpacity value used by the paint brush. value = 1.0 - opaque value = 0.25 - default (mostly see through)private floatDOCUMENT ME!private floatDOCUMENT ME!private BitSetBuffer used to indicate if the pixel location is painted (true) or unpainted (false).private int[]Buffer that displays the combined paintBitmap and pixBuffer buffers.private int[]Buffer used to store ARGB images of the image presently being displayed.private VOIDOCUMENT ME!private intDOCUMENT ME!private booleanDOCUMENT ME!private floatDOCUMENT ME!private floatDOCUMENT ME!protected ModelRGBtrue if selected red, green, blue components present in RGB image.protected ModelRGBDOCUMENT ME!private intDOCUMENT ME!private float[]DOCUMENT ME!private doubleDOCUMENT ME!private doubleDOCUMENT ME!private floatDOCUMENT ME!private static final longUse serialVersionUID for interoperability.private intNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA.private booleanDOCUMENT ME!private intDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private booleanDOCUMENT ME!private ViewUserInterfaceDOCUMENT ME!private ViewVOIVectorDOCUMENT ME!private float[]DOCUMENT ME!private doubleDOCUMENT ME!private intNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA.private float[]DOCUMENT ME!private doubleDOCUMENT ME!private intNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA.private float[]DOCUMENT ME!private intNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA.private floatDOCUMENT ME!private floatDOCUMENT ME!Fields inherited from class gov.nih.mipav.view.ViewJComponentBase
ANNOTATION, BOTH, CENTER_VOI, CUBE_BOUNDS, DEFAULT, DELETE_POINT, DROPPER_PAINT, ELLIPSE, ERASER_PAINT, IMAGE_A, IMAGE_B, imageDim, img, imgB, INTERPOLATE_A, INTERPOLATE_B, INTERPOLATE_BOTH, lastMouseX, lastMouseY, LEVELSET, LINE, LIVEWIRE, MAG_REGION, memImageA, memImageB, MOVE, MOVE_INTERSECTION_POINT, MOVE_POINT, MOVE_VOIPOINT, NEAREST_BOTH, NEW_POINT, NEW_VOI, OUT_OF_BOUNDS, PAINT_CAN, PAINT_VASC, PAINT_VOI, POINT_VOI, POLYLINE, POLYLINE_SLICE_VOI, PROBE, PROTRACTOR, QUICK_LUT, RECTANGLE, RECTANGLE3D, resolutionX, resolutionY, RETRACE, ROTATE, SELECT, showSliceNumber, sliceString, SMOOTH, SPLIT_VOI, textColor, TRANSLATE, VOI_3D, WAND, WIN_REGION, ZOOMING_IN, ZOOMING_OUTFields 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
ConstructorsConstructorDescriptionViewJComponentColocalizationRegression(AlgorithmColocalizationRegression alg, ViewJFrameBase _frame, ViewJFrameColocalizationRegression localizeFrame, ModelImage _imageA, ModelImage _imageB, ModelImage destImage, ModelLUT LUTdest, float[] imageBufferDest, boolean useRed, boolean useGreen, boolean useBlue, float originalLineSlope, float originalLineOffset, 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[] pixBufferDest, int[] paintBufferDest, float zoom, int[] extents, boolean logMagDisplay, boolean regionLinesDisplay, int leftPad, int rightPad, int bottomPad, int topPad, boolean doSecondIteration, float linearCorrelation, ViewUserInterface userInterface) Constructor: ImageA and ImageB are expected to be of the same dimensionality !! -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuildImageDestObject(ModelLUT _LUTdest, boolean forceShow) Shows the 2D histogram image.voiddispose(boolean gcFlag) Sets all variables to null, disposes, and garbage collects.voidClean up some resources!intgetblue()Accessor that returns int blue.intgetgreen()Accessor that returns int green.Accessor that returns the imageA.Accessor that returns the imageB.floatAccessor that returns float OPACITY.Accessor that returns BitSet paintBitmap.Size set to object size.intgetred()Accessor that returns int red.Gets the size of the object taking into account the zoom.floatgetZoomX()Magnification in the x - dimension.floatgetZoomY()Magnification in the y - dimension.voidimportImageDest(int[] data) Creates a Image object form an array of ints that have been formatted (packed) properly (i.e. aRGB)voidmouseClicked(MouseEvent mouseEvent) DOCUMENT ME!voidmouseDragged(MouseEvent mouseEvent) mouseDragged only updates the histogram display header when the mouse passes over a point for which the linear correlation coefficient and colocalizations have already been calculated.voidmouseEntered(MouseEvent mouseEvent) DOCUMENT ME!voidmouseExited(MouseEvent mouseEvent) DOCUMENT ME!voidmouseMoved(MouseEvent mouseEvent) DOCUMENT ME!voidmousePressed(MouseEvent mouseEvent) DOCUMENT ME!voidmouseReleased(MouseEvent mouseEvent) If the correlation coefficient and colocalizations have not already been calculated at the mouse release point, then a call to AlgorithmColocalizationRegression calculates them.voidPaints the image and border.voidpassFreeRangeArrays(boolean[] haveFreeRangeThreshold, float[] freeRangeRThreshold, float[] freeRangeColocSize, float[] freeRangeColocIntensity1, float[] freeRangeColocIntensity2) Passes arrays needed in free range mode.voidsetBrightness(int brightness, float contrast) Method to set the brightness and contrast of the animate images.voidsetFreeRangeMode(boolean freeRangeMode) Accessor that sets freeRangeMode.voidsetLogMagDisplay(boolean logMagDisplay) DOCUMENT ME!voidsetNewVar(float originalLineSlope, float originalLineOffset, 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, float linearCorrelation) Modifies component after mouseReleased in contour VOI indicating that the VOI has been moved.voidsetPaintMaskDest(BitSet mask) Accessor that sets the paint mask.voidsetPosition(int xS, int yS) DOCUMENT ME!voidsetRegionLinesDisplay(boolean regionLinesDisplay) DOCUMENT ME!voidSets the RGB table for the ARGB image A.voidSets the RGB table for the ARGB image B.voidsetZoom(float zX, float zY) Sets the magnification in both x and y directions.voidupdate()Method to call paint without erasing background this reduces flicker!voidMethod to call paint without erasing background this reduces flicker!Methods inherited from class gov.nih.mipav.view.ViewJComponentBase
disposeLocal, finalize, getImage, getInterpMode, getLastMouseX, getLastMouseY, getResolutionX, getResolutionY, getScaledX, getScaledY, getSelectedPaintColor, getShowMagIntensityEnabled, importImage, importImageB, LocalToScreen, makePaintBitmapBorder, makePaintImage, paintCursorBoxComponent, paintWindowComponent, paintWindowComponent, ScreenToLocal, setInterpolationMode, setResolutions, setShowSliceNumber, setSliceString, setTextColor, setZoomExactMethods 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, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, updateUIMethods 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, getAccessibleContext, 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 serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
OPACITY
public float OPACITYOpacity value used by the paint brush. value = 1.0 - opaque value = 0.25 - default (mostly see through) -
frame
frame - frame where the component image is displayed. -
imageA
imageA - model for image A. -
imageB
imageB - model for image B. -
interpMode
protected int interpModeDOCUMENT ME! -
RGBTA
true if selected red, green, blue components present in RGB image. -
RGBTB
DOCUMENT ME! -
alg
DOCUMENT ME! -
bin1
private int bin1DOCUMENT ME! -
bin2
private int bin2DOCUMENT ME! -
bottomPad
private int bottomPadDOCUMENT ME! -
brightness
private int brightnessDOCUMENT ME! -
colocIntensity1
private float[] colocIntensity1DOCUMENT ME! -
colocIntensity2
private float[] colocIntensity2DOCUMENT ME! -
colocSize
private float[] colocSizeDOCUMENT ME! -
contrast
private float contrastDOCUMENT ME! -
destImage
DOCUMENT ME! -
doSecondIteration
private boolean doSecondIterationDOCUMENT ME! -
editImageFrameA
DOCUMENT ME! -
editImageFrameB
DOCUMENT ME! -
firstIndex
private float firstIndexDOCUMENT ME! -
freeRangeColocIntensity1
private float[] freeRangeColocIntensity1DOCUMENT ME! -
freeRangeColocIntensity2
private float[] freeRangeColocIntensity2DOCUMENT ME! -
freeRangeColocSize
private float[] freeRangeColocSizeDOCUMENT ME! -
freeRangeMode
private boolean freeRangeModeDOCUMENT ME! -
freeRangeRThreshold
private float[] freeRangeRThresholdDOCUMENT ME! -
haveFiltered
private boolean haveFilteredDOCUMENT ME! -
haveFreeRangeThreshold
private boolean[] haveFreeRangeThresholdDOCUMENT ME! -
haveThreshold
private boolean[] haveThresholdDOCUMENT ME! -
imageBufferDest
private float[] imageBufferDestDOCUMENT ME! -
imgDest
DOCUMENT ME! -
leftPad
private int leftPadDOCUMENT ME! -
linearCorrelation
private float linearCorrelationDOCUMENT ME! -
lineMin
private int lineMinDOCUMENT ME! -
lineOffset
private double lineOffsetDOCUMENT ME! -
lineSlope
private double lineSlopeDOCUMENT ME! -
lineVOI
DOCUMENT ME! -
localizeFrame
DOCUMENT ME! -
logMagDisplay
private boolean logMagDisplayDOCUMENT ME! -
lutBufferRemappedDest
private int[] lutBufferRemappedDestDOCUMENT ME! -
LUTdest
LUTa - lookup table for destImage. -
memImageDest
DOCUMENT ME! -
min1
private double min1DOCUMENT ME! -
max1
private double max1DOCUMENT ME! -
min2
private double min2DOCUMENT ME! -
max2
private double max2DOCUMENT ME! -
minimumx
private double minimumxDOCUMENT ME! -
maximumx
private double maximumxDOCUMENT ME! -
nVOI
private int nVOIDOCUMENT ME! -
originalLineOffset
private float originalLineOffsetDOCUMENT ME! -
originalLineSlope
private float originalLineSlopeDOCUMENT ME! -
paintBitmapDest
Buffer used to indicate if the pixel location is painted (true) or unpainted (false). -
paintBufferDest
private int[] paintBufferDestBuffer that displays the combined paintBitmap and pixBuffer buffers. -
pixBufferDest
private int[] pixBufferDestBuffer used to store ARGB images of the image presently being displayed. -
pointVOI
DOCUMENT ME! -
red
private int redDOCUMENT ME! -
green
private int greenDOCUMENT ME! -
blue
private int blueDOCUMENT ME! -
regionLinesDisplay
private boolean regionLinesDisplayDOCUMENT ME! -
resX
private float resXDOCUMENT ME! -
resY
private float resYDOCUMENT ME! -
rightPad
private int rightPadDOCUMENT ME! -
rThreshold
private float[] rThresholdDOCUMENT ME! -
scale1
private double scale1DOCUMENT ME! -
scale2
private double scale2DOCUMENT ME! -
secondIndex
private float secondIndexDOCUMENT ME! -
thresholdOn1
private boolean thresholdOn1DOCUMENT ME! -
topPad
private int topPadDOCUMENT ME! -
useBlue
private boolean useBlueDOCUMENT ME! -
useGreen
private boolean useGreenDOCUMENT ME! -
useRed
private boolean useRedDOCUMENT ME! -
userInterface
DOCUMENT ME! -
VOIs
DOCUMENT ME! -
xArray
private float[] xArrayDOCUMENT ME! -
xdiff
private double xdiffDOCUMENT ME! -
ydiff
private double ydiffDOCUMENT ME! -
xDim
private int xDimNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA. -
yDim
private int yDimNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA. -
zDim
private int zDimNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA. -
tDim
private int tDimNote that xDim and yDim refer to destImage, while zDim and tDim refer to imageA. -
yArray
private float[] yArrayDOCUMENT ME! -
zArray
private float[] zArrayDOCUMENT ME! -
zoomX
private float zoomXDOCUMENT ME! -
zoomY
private float zoomYDOCUMENT ME!
-
-
Constructor Details
-
ViewJComponentColocalizationRegression
public ViewJComponentColocalizationRegression(AlgorithmColocalizationRegression alg, ViewJFrameBase _frame, ViewJFrameColocalizationRegression localizeFrame, ModelImage _imageA, ModelImage _imageB, ModelImage destImage, ModelLUT LUTdest, float[] imageBufferDest, boolean useRed, boolean useGreen, boolean useBlue, float originalLineSlope, float originalLineOffset, 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[] pixBufferDest, int[] paintBufferDest, float zoom, int[] extents, boolean logMagDisplay, boolean regionLinesDisplay, int leftPad, int rightPad, int bottomPad, int topPad, boolean doSecondIteration, float linearCorrelation, ViewUserInterface userInterface) Constructor: ImageA and ImageB are expected to be of the same dimensionality !!- Parameters:
alg- AlgorithmColocalizationRegression parent_frame- frame where the controls are obtainedlocalizeFrame- frame where 2D histogram is displayed_imageA- Model of the image that will be displayed_imageB- Model of the image that will be displayeddestImage- Image with histogram informationLUTdest- LUT used to display destImageimageBufferDest- storage buffer used to display destImageuseRed- DOCUMENT ME!useGreen- DOCUMENT ME!useBlue- DOCUMENT ME!originalLineSlope- DOCUMENT ME!originalLineOffset- 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!pixBufferDest- storage buffer used to build a displayable imagepaintBufferDest- DOCUMENT ME!zoom- initial magnification of imageextents- initial display dimensions of the imagelogMagDisplay- display log magnitude of imageregionLinesDisplay- DOCUMENT ME!leftPad- DOCUMENT ME!rightPad- DOCUMENT ME!bottomPad- DOCUMENT ME!topPad- DOCUMENT ME!doSecondIteration- DOCUMENT ME!linearCorrelation- DOCUMENT ME!userInterface- DOCUMENT ME!
-
-
Method Details
-
buildImageDestObject
Shows the 2D histogram image.- Parameters:
_LUTdest- LUTdest - to change to new LUT for imageA else nullforceShow- forces this method to import image and recalculate java image- Returns:
- boolean to indicate if the show was successful
-
dispose
public void dispose(boolean gcFlag) Sets all variables to null, disposes, and garbage collects.- Overrides:
disposein classViewJComponentBase- Parameters:
gcFlag- if true garbage collector should be called.
-
finalizeLocal
public void finalizeLocal()Clean up some resources! -
getblue
public int getblue()Accessor that returns int blue.- Returns:
- blue
-
getgreen
public int getgreen()Accessor that returns int green.- Returns:
- green
-
getImageA
Accessor that returns the imageA.- Returns:
- imageA
-
getImageB
Accessor that returns the imageB.- Returns:
- imageB
-
getOPACITY
public float getOPACITY()Accessor that returns float OPACITY.- Returns:
- OPACITY
-
getpaintBitmapDest
Accessor that returns BitSet paintBitmap.- Returns:
- paintBitmap
-
getPreferredSize
Size set to object size.- Overrides:
getPreferredSizein classViewJComponentBase- Returns:
- dimension with the size
-
getred
public int getred()Accessor that returns int red.- Returns:
- red
-
getSize
Gets the size of the object taking into account the zoom.- Overrides:
getSizein classViewJComponentBase- Parameters:
wh- dimension- Returns:
- dimension with the size
-
getZoomX
public float getZoomX()Magnification in the x - dimension.- Overrides:
getZoomXin classViewJComponentBase- Returns:
- magnificaiton in the x - dimension
-
getZoomY
public float getZoomY()Magnification in the y - dimension.- Overrides:
getZoomYin classViewJComponentBase- Returns:
- magnificaiton in the y - dimension
-
importImageDest
public void importImageDest(int[] data) Creates a Image object form an array of ints that have been formatted (packed) properly (i.e. aRGB)- Parameters:
data- Data (image) to be displayed that has been formatted (packed) properly (i.e. aRGB)
-
mouseClicked
DOCUMENT ME!- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseDragged
mouseDragged only updates the histogram display header when the mouse passes over a point for which the linear correlation coefficient and colocalizations have already been calculated.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseEntered
DOCUMENT ME!- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseExited
DOCUMENT ME!- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseMoved
DOCUMENT ME!- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mousePressed
DOCUMENT ME!- Specified by:
mousePressedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseReleased
If the correlation coefficient and colocalizations have not already been calculated at the mouse release point, then a call to AlgorithmColocalizationRegression calculates them.- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
paintComponent
Paints the image and border.- Overrides:
paintComponentin classViewJComponentBase- Parameters:
g- Graphics handle
-
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!
-
setBrightness
public void setBrightness(int brightness, float contrast) Method to set the brightness and contrast of the animate images.- Parameters:
brightness- int going from -255 to 255contrast- float scale factor
-
setFreeRangeMode
public void setFreeRangeMode(boolean freeRangeMode) Accessor that sets freeRangeMode.- Parameters:
freeRangeMode- DOCUMENT ME!
-
setLogMagDisplay
public void setLogMagDisplay(boolean logMagDisplay) DOCUMENT ME!- Parameters:
logMagDisplay- DOCUMENT ME!
-
setNewVar
public void setNewVar(float originalLineSlope, float originalLineOffset, 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, float linearCorrelation) Modifies component after mouseReleased in contour VOI indicating that the VOI has been moved.- Parameters:
originalLineSlope- DOCUMENT ME!originalLineOffset- 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!linearCorrelation- DOCUMENT ME!
-
setPaintMaskDest
Accessor that sets the paint mask.- Parameters:
mask- DOCUMENT ME!
-
setPosition
public void setPosition(int xS, int yS) DOCUMENT ME!- Parameters:
xS- DOCUMENT ME!yS- DOCUMENT ME!
-
setRegionLinesDisplay
public void setRegionLinesDisplay(boolean regionLinesDisplay) DOCUMENT ME!- Parameters:
regionLinesDisplay- DOCUMENT ME!
-
setRGBTA
Sets the RGB table for the ARGB image A.- Parameters:
RGBT- RGB table
-
setRGBTB
Sets the RGB table for the ARGB image B.- Parameters:
RGBT- RGB table
-
setZoom
public void setZoom(float zX, float zY) Sets the magnification in both x and y directions.- Overrides:
setZoomin classViewJComponentBase- Parameters:
zX- zoom in the x directionzY- zoom in the y direction
-
update
public void update()Method to call paint without erasing background this reduces flicker! -
update
Method to call paint without erasing background this reduces flicker!- Overrides:
updatein classViewJComponentBase- Parameters:
g- Graphics handle
-