public abstract class TrackVisualisation extends Object
In general all plots are added to image used to construct this object as overlay layer.
This super class contains methods for creating static plots in [x,y] domain from coordinates in [outline,frame] system (native for maps generated by Qanalysis).
Warning
It is assumed that plotted maps have frames on x-axis and indexes on y-axis
Modifier and Type | Field and Description |
---|---|
double |
circleRadius
Radius of circles plotted.
|
static Color[] |
color
Definition of colors used to plot tracks.
|
static Color |
MAXIMA_COLOR
Color for maxima points.
|
protected ij.ImagePlus |
originalImage
The original image.
|
protected Overlay |
overlay
The overlay.
|
Constructor and Description |
---|
TrackVisualisation(ij.ImagePlus originalImage)
Create correct object.
|
TrackVisualisation(String name,
ij.process.ImageProcessor imp)
Construct object from raw ImageProcessor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear overlay.
|
void |
flatten(int method,
boolean preserveStack)
Flatten stack according to given type.
|
protected Color |
getColor(com.github.celldynamics.quimp.plugin.protanalysis.Track track)
Helper method.
|
ij.ImagePlus |
getOriginalImage()
getOriginalImage.
|
void |
plotCircle(double x,
double y,
Color color,
double radius)
Plot filled circle on overlay.
|
public double circleRadius
public static Color MAXIMA_COLOR
public static Color[] color
These are:
protected ij.ImagePlus originalImage
protected Overlay overlay
public TrackVisualisation(ij.ImagePlus originalImage)
If input image contains any overlay data, they will be extended by new plots.
originalImage
- Image to be plotted on.public TrackVisualisation(String name, ij.process.ImageProcessor imp)
name
- Name of the imageimp
- ImageProcessorpublic void plotCircle(double x, double y, Color color, double radius)
x
- centery
- centercolor
- colorradius
- radiuspublic ij.ImagePlus getOriginalImage()
protected Color getColor(com.github.celldynamics.quimp.plugin.protanalysis.Track track)
Allows to convert enum to index of array of Colors.
track
- trackpublic void flatten(int method, boolean preserveStack)
Output has the same resolution (x,y,t) as input. For stacks, slices are duplicated. Refer to ij.plugin.ZProjector.setMethod(int)
method
- How to flatten - ZProjector methods.preserveStack
- - if true size of output stack is preserved (slices are
duplicated to form stack with the same number of slices as original one). Otherwise
only one slice is builtpublic void clear()
Copyright © 2002–2019 Department of Computer Science, Warwick University. All rights reserved.