public class TreeParser
extends java.lang.Object
implements sholl.parsers.Parser
Parser for extracting Sholl Profiles from a Tree.| Modifier and Type | Field and Description |
|---|---|
static int |
PRIMARY_NODES_ANY
Flag for defining the profile center as the average position of root nodes
of all primary Paths.
|
static int |
PRIMARY_NODES_APICAL_DENDRITE
Flag for defining the profile center as the average position of root nodes
of Paths tagged as Apical Dendrite.
|
static int |
PRIMARY_NODES_AXON
Flag for defining the profile center as the average position of root nodes
of Paths tagged as Axon.
|
static int |
PRIMARY_NODES_CUSTOM
Flag for defining the profile center as the average position of root nodes
of Paths tagged as Custom.
|
static int |
PRIMARY_NODES_DENDRITE
Flag for defining the profile center as the average position of root nodes
of Paths tagged as (Basal) Dendrite
|
static int |
PRIMARY_NODES_SOMA
Flag for defining the profile center as the average position of root nodes
of Paths tagged as Soma
|
static int |
PRIMARY_NODES_UNDEFINED
Flag for defining the profile center as the average position of root nodes
of Paths tagged as Undefined
|
HEMI_EAST, HEMI_NONE, HEMI_NORTH, HEMI_SOUTH, HEMI_WEST, INTG_MEAN, INTG_MEDIAN, INTG_MODE, KEY_2D3D, KEY_CALIBRATION, KEY_CENTER, KEY_CHANNEL_POS, KEY_FRAME_POS, KEY_HEMISHELLS, KEY_ID, KEY_NSAMPLES, KEY_NSAMPLES_INTG, KEY_SLICE_POS, KEY_SOURCE, KEY_THRESHOLD_RANGE, SRC_IMG, SRC_TABLE, SRC_TRACES, UNSET| Constructor and Description |
|---|
TreeParser(Tree tree)
Instantiates a new Tree Parser.
|
| Modifier and Type | Method and Description |
|---|---|
sholl.UPoint |
getCenter()
Returns the center coordinates
|
ij.ImagePlus |
getLabelsImage(ij.ImagePlus templateImg,
net.imglib2.display.ColorTable cTable)
Gets the labels image.
|
sholl.Profile |
getProfile() |
static void |
main(java.lang.String... args) |
void |
parse() |
void |
setCenter(int choice)
Computes the center of the Profile.
|
void |
setCenter(PointInImage center)
Sets the center of the profile.
|
void |
setStepSize(double stepSize)
Sets the radius step size.
|
boolean |
successful() |
void |
terminate() |
public static final int PRIMARY_NODES_ANY
public static final int PRIMARY_NODES_APICAL_DENDRITE
public static final int PRIMARY_NODES_AXON
public static final int PRIMARY_NODES_CUSTOM
public static final int PRIMARY_NODES_DENDRITE
public static final int PRIMARY_NODES_SOMA
public static final int PRIMARY_NODES_UNDEFINED
public TreeParser(Tree tree)
tree - the Tree to be profiledpublic void setCenter(int choice)
throws java.lang.IllegalArgumentException
choice - the flag specifying the center (e.g.,
PRIMARY_NODES_SOMA, PRIMARY_NODES_ANY, etc.)java.lang.IllegalArgumentException - if choice is not a recognized flag or if
no Paths in the Tree match the choice criteriapublic sholl.UPoint getCenter()
public void setCenter(PointInImage center)
center - the focal point of the profilepublic void setStepSize(double stepSize)
stepSize - the radius step sizepublic void parse()
parse in interface sholl.parsers.Parserpublic boolean successful()
successful in interface sholl.parsers.Parserpublic void terminate()
terminate in interface sholl.parsers.Parserpublic sholl.Profile getProfile()
getProfile in interface sholl.parsers.Parserpublic ij.ImagePlus getLabelsImage(ij.ImagePlus templateImg,
net.imglib2.display.ColorTable cTable)
templateImg - the template imgcTable - the c tablepublic static void main(java.lang.String... args)