public class LabelImgExporter extends AbstractTMAction
Modifier and Type | Class and Description |
---|---|
static class |
LabelImgExporter.Factory |
Modifier and Type | Field and Description |
---|---|
static String |
INFO_TEXT |
static String |
KEY |
static String |
NAME |
logger
Constructor and Description |
---|
LabelImgExporter() |
Modifier and Type | Method and Description |
---|---|
static ij.ImagePlus |
createLabelImagePlus(Model model,
ij.ImagePlus imp,
boolean exportSpotsAsDots,
boolean exportTracksOnly)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static ij.ImagePlus |
createLabelImagePlus(Model model,
ij.ImagePlus imp,
boolean exportSpotsAsDots,
boolean exportTracksOnly,
Logger logger)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static ij.ImagePlus |
createLabelImagePlus(Model model,
int[] dimensions,
double[] calibration,
boolean exportSpotsAsDots,
boolean exportTracksOnly)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static ij.ImagePlus |
createLabelImagePlus(Model model,
int[] dimensions,
double[] calibration,
boolean exportSpotsAsDots,
boolean exportTracksOnly,
Logger logger)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static ij.ImagePlus |
createLabelImagePlus(TrackMate trackmate,
boolean exportSpotsAsDots,
boolean exportTracksOnly)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static ij.ImagePlus |
createLabelImagePlus(TrackMate trackmate,
boolean exportSpotsAsDots,
boolean exportTracksOnly,
Logger logger)
Creates a new label
ImagePlus where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value. |
static Img<UnsignedShortType> |
createLabelImg(Model model,
long[] dimensions,
double[] calibration,
boolean exportSpotsAsDots,
boolean exportTracksOnly)
Creates a new label
Img of UnsignedShortType where the
spots of the specified model are painted as ellipsoids taken from their
shape, with their track ID as pixel value. |
static Img<UnsignedShortType> |
createLabelImg(Model model,
long[] dimensions,
double[] calibration,
boolean exportSpotsAsDots,
boolean exportTracksOnly,
Logger logger)
Creates a new label
Img of UnsignedShortType where the
spots of the specified model are painted as ellipsoids taken from their
shape, with their track ID as pixel value. |
void |
execute(TrackMate trackmate,
SelectionModel selectionModel,
DisplaySettings displaySettings,
Frame gui)
Executes this action within an application specified by the parameters.
|
setLogger
public static final String INFO_TEXT
public static final String KEY
public static final String NAME
public void execute(TrackMate trackmate, SelectionModel selectionModel, DisplaySettings displaySettings, Frame gui)
TrackMateAction
trackmate
- the TrackMate
instance to use to execute the action.selectionModel
- the SelectionModel
currently used in the application,displaySettings
- the DisplaySettings
used to render the views in the
application.gui
- the user-interface parent window.public static final ij.ImagePlus createLabelImagePlus(TrackMate trackmate, boolean exportSpotsAsDots, boolean exportTracksOnly)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.trackmate
- the trackmate instance from which we takes the spots to paint.
The label image will have the same calibration, name and
dimension from the input image stored in the trackmate
settings. The output label image will have the same size that
of this input image, except for the number of channels, which
will be 1.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.ImagePlus
.public static final ij.ImagePlus createLabelImagePlus(TrackMate trackmate, boolean exportSpotsAsDots, boolean exportTracksOnly, Logger logger)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.trackmate
- the trackmate instance from which we takes the spots to paint.
The label image will have the same calibration, name and
dimension from the input image stored in the trackmate
settings. The output label image will have the same size that
of this input image, except for the number of channels, which
will be 1.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.logger
- a Logger
instance, to report progress of the export
process.ImagePlus
.public static final ij.ImagePlus createLabelImagePlus(Model model, ij.ImagePlus imp, boolean exportSpotsAsDots, boolean exportTracksOnly)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.model
- the model from which we takes the spots to paint.imp
- a source image to read calibration, name and dimension from.
The output label image will have the same size that of this
source image, except for the number of channels, which will be
1.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.ImagePlus
.public static final ij.ImagePlus createLabelImagePlus(Model model, ij.ImagePlus imp, boolean exportSpotsAsDots, boolean exportTracksOnly, Logger logger)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.model
- the model from which we takes the spots to paint.imp
- a source image to read calibration, name and dimension from.
The output label image will have the same size that of this
source image, except for the number of channels, which will be
1.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.logger
- a Logger
instance, to report progress of the export
process.ImagePlus
.public static final ij.ImagePlus createLabelImagePlus(Model model, int[] dimensions, double[] calibration, boolean exportSpotsAsDots, boolean exportTracksOnly)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.model
- the model from which we takes the spots to paint.dimensions
- the desired dimensions of the output image (width, height,
nZSlices, nFrames) as a 4 element int array. Spots outside
these dimensions are ignored.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.ImagePlus
.public static final ij.ImagePlus createLabelImagePlus(Model model, int[] dimensions, double[] calibration, boolean exportSpotsAsDots, boolean exportTracksOnly, Logger logger)
ImagePlus
where the spots of the specified
model are painted as ellipsoids taken from their shape, with their track
ID as pixel value.model
- the model from which we takes the spots to paint.dimensions
- the desired dimensions of the output image (width, height,
nZSlices, nFrames) as a 4 element int array. Spots outside
these dimensions are ignored.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.logger
- a Logger
instance, to report progress of the export
process.ImagePlus
.public static final Img<UnsignedShortType> createLabelImg(Model model, long[] dimensions, double[] calibration, boolean exportSpotsAsDots, boolean exportTracksOnly)
Img
of UnsignedShortType
where the
spots of the specified model are painted as ellipsoids taken from their
shape, with their track ID as pixel value.model
- the model from which we takes the spots to paint.dimensions
- the desired dimensions of the output image (width, height,
nZSlices, nFrames) as a 4 element int array. Spots outside
these dimensions are ignored.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.Img
.public static final Img<UnsignedShortType> createLabelImg(Model model, long[] dimensions, double[] calibration, boolean exportSpotsAsDots, boolean exportTracksOnly, Logger logger)
Img
of UnsignedShortType
where the
spots of the specified model are painted as ellipsoids taken from their
shape, with their track ID as pixel value.model
- the model from which we takes the spots to paint.dimensions
- the desired dimensions of the output image (width, height,
nZSlices, nFrames) as a 4 element int array. Spots outside
these dimensions are ignored.exportSpotsAsDots
- if true
, spots will be painted as single dots
instead of ellipsoids.exportTracksOnly
- if true
, only the spots belonging to visible
tracks will be painted. If false
, spots not
belonging to a track will be painted with a unique ID,
different from the track IDs and different for each spot.logger
- a Logger
instance, to report progress of the export
process.Img
.Copyright © 2015–2021 Fiji. All rights reserved.