public class ImageMethods
extends org.eclipse.ui.part.ViewPart
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
ImageMethods() |
Modifier and Type | Method and Description |
---|---|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
static void |
deletePoints()
Deletes all point values, alpha values, ellipse values and species values
in the Points panel and repaints the Points panel.
|
void |
dispose() |
static int |
getFieldX()
Returns the x-size of the Area of Analysis.
|
static int |
getFieldY()
Returns the y-size of the Area of Analysis.
|
static java.awt.image.BufferedImage |
getImage() |
static ij.ImagePlus |
getPanelImage()
Returns the current image in the Points panel.
|
static int |
getPointScale()
Returns the scale factor for the coordinates of the points from the
particle analysis.
|
static org.eclipse.swt.widgets.Combo |
getTransferTypeCombo() |
static void |
imageFromR(int type,
java.lang.String name,
int transferDataType)
This method creates an ImageJ image from the given named data (matrix or
vector) in R.
|
static void |
imageToR(java.lang.String name,
boolean matrix,
int transferDataType,
ij.ImagePlus impPlus)
This methods transfers image data from ImageJ to R by means of Rserve.
|
static boolean |
isCentroid()
Returns if the centroid method is selected for the points.
|
static void |
setCentroid(boolean centroid)
Sets the method for adjusting the points in the Points panel (default =
centroid for the particle analysis).
|
static void |
setFieldSize(int x,
int y)
Sets the field size in the Points panel(Area of Analysis).
|
void |
setFocus() |
static void |
setPointScale(int pointScale)
Sets the scale factor for the coordinates of the points from the particle
analysis.
|
static void |
toImageJ()
Transfers the current image from the Points panel to the ImageJ panel.
|
static void |
transferImageInPlace(java.lang.String dataName,
int type)
A method to transfer byte information directly to an image as one
container.
|
getViewSite, init, init, saveState, setInitializationData
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final java.lang.String ID
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
public static void deletePoints()
public void setFocus()
setFocus
in interface org.eclipse.ui.IWorkbenchPart
setFocus
in class org.eclipse.ui.part.WorkbenchPart
public static void toImageJ()
public static ij.ImagePlus getPanelImage()
public static int getFieldX()
public static int getFieldY()
public static void setFieldSize(int x, int y)
x
- the x-size.y
- the y-size.public static int getPointScale()
public static void setPointScale(int pointScale)
pointScale
- an integer value of the scale factor.public static boolean isCentroid()
public static void setCentroid(boolean centroid)
centroid
- a boolean value.public static java.awt.image.BufferedImage getImage()
public static void imageToR(java.lang.String name, boolean matrix, int transferDataType, ij.ImagePlus impPlus)
name
- the name for the data.matrix
- a boolean, if true automatically a data matrix will be created
(only for double values - in case of an RGB transfer an
integer matrix will be created!).transferDataType
- an integer value for the data type which will be transfered.
(0=double, 1=integer, 2=byte, 3=RGB as single byte vectors or
integer matrix)impPlus
- an optional ImagePlus object as the default image source.public static void imageFromR(int type, java.lang.String name, int transferDataType)
type
- an integer which represents an ImageJ image
type.(0=ColourProcessor, 1=ByteProcessor, 2=FloatProcessor,
3=ShortProcessor)name
- a string identifier for the R data.transferDataType
- the data type as transfer type (0=double, 1=integer, 2=byte).public static org.eclipse.swt.widgets.Combo getTransferTypeCombo()
public static void transferImageInPlace(java.lang.String dataName, int type)
dataName
- the name of the R vector.type
- the type of the image (1 = byte, 2 = float).public void dispose()
dispose
in interface org.eclipse.ui.IWorkbenchPart
dispose
in class org.eclipse.ui.part.WorkbenchPart