public class LabelToValuePlugin extends Object implements ij.plugin.PlugIn, ij.gui.DialogListener
Constructor and Description |
---|
LabelToValuePlugin() |
Modifier and Type | Method and Description |
---|---|
boolean |
dialogItemChanged(ij.gui.GenericDialog gd,
AWTEvent evt) |
static ij.ImagePlus |
process(ij.ImagePlus labelImage,
ij.measure.ResultsTable table,
String columnName)
Combines a label image and the values within a column of a ResultsTable
to generate a parametric map of values that associates to each pixel /
voxel the value of the row associated to the label it belongs to.
|
static ij.ImagePlus |
process(ij.ImagePlus labelImage,
ij.measure.ResultsTable table,
String columnName,
double minValue,
double maxValue)
Combines a label image and the values within a column of a ResultsTable
to generate a parametric map of values that associates to each pixel /
voxel the value of the row associated to the label it belongs to.
|
static void |
process(String tableNameArg,
String columnNameArg,
String minValueArg,
String maxValueArg)
Process the current image as a label image using the provided string
arguments.
|
static void |
record(String command,
String... args)
Macro-record a specific command.
|
void |
run(String arg0) |
public void run(String arg0)
run
in interface ij.plugin.PlugIn
public boolean dialogItemChanged(ij.gui.GenericDialog gd, AWTEvent evt)
dialogItemChanged
in interface ij.gui.DialogListener
public static final ij.ImagePlus process(ij.ImagePlus labelImage, ij.measure.ResultsTable table, String columnName)
labelImage
- the image containing the regions labelstable
- the ResultsTable containing the values to mapcolumnName
- the name of the column containing the values to map (one row
per label)public static final ij.ImagePlus process(ij.ImagePlus labelImage, ij.measure.ResultsTable table, String columnName, double minValue, double maxValue)
labelImage
- the image containing the regions labelstable
- the ResultsTable containing the values to mapcolumnName
- the name of the column containing the values to map (one row
per label)minValue
- the value that will be displayed in blackmaxValue
- the value that will be displayed in whitepublic static final void record(String command, String... args)
command
- name of the command including package infoargs
- set of arguments for the commandpublic static final void process(String tableNameArg, String columnNameArg, String minValueArg, String maxValueArg)
tableNameArg
- the name of the result table to usecolumnNameArg
- the name of the column (within the table) containing the
valuesminValueArg
- the minimal value to display as black in result imagemaxValueArg
- the maximal value to display as white in result imagerecord(String, String...)
,
process(ImagePlus, ResultsTable, String, double, double)
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.