public class MTBNeurite2DProfile extends Object
Objects of this type are usually generated by applying methods from class
NeuriteMolProfExtractor2D
to neuron images. An object of this class is
empty per default (apart from the associated neurite region), so all data has
to calculated externally and then be passed to the object using its
set-routines.
Modifier and Type | Field and Description |
---|---|
private MTBNeurite2D |
neurite |
private double[] |
profile
Profile data along longest skeleton path.
|
private Vector<Vector<Point2D.Double>> |
profilePoints
Points of the profile (neurite region) belonging to the longest path.
|
private MTBImageRGB |
voronoiImg
Image filled with voronoi tesselation data during profile calculation if
non-null.
|
Constructor and Description |
---|
MTBNeurite2DProfile() |
MTBNeurite2DProfile(MTBNeurite2D _neurite,
double[] _profile,
Vector<Vector<Point2D.Double>> _profilePoints,
MTBImageRGB _voronoiImg)
Constructor to create a new MTBNeuriteProfile object from the given
MTBRegion2D.
|
Modifier and Type | Method and Description |
---|---|
MTBNeurite2D |
getNeurite() |
double[] |
getProfile()
Get profile data of the neurite region.
|
Vector<Vector<Point2D.Double>> |
getProfilePoints() |
int |
getProfileSize() |
MTBImageRGB |
getVoronoiImg()
Get voronoi tesselation image.
|
void |
setNeurite(MTBNeurite2D neurite) |
void |
setProfile(double[] profileData)
Pass profile data to the profile.
|
void |
setProfilePoints(Vector<Vector<Point2D.Double>> profPoints)
Set the points of the neurite region where the profiles are calculated
from.
|
void |
setVoronoiImg(MTBImageRGB voronoiImg)
Specify an image to be filled with voronoi data.
|
private MTBNeurite2D neurite
private double[] profile
private Vector<Vector<Point2D.Double>> profilePoints
private MTBImageRGB voronoiImg
Note: Memory needs to be allocated externally, please use the
setVoronoiImg()
-routine for passing a
suitable image to the object.
public MTBNeurite2DProfile()
public MTBNeurite2DProfile(MTBNeurite2D _neurite, double[] _profile, Vector<Vector<Point2D.Double>> _profilePoints, MTBImageRGB _voronoiImg)
region
- Neurite region the profile is calculated for.public MTBNeurite2D getNeurite()
public void setNeurite(MTBNeurite2D neurite)
public double[] getProfile()
Attention: May be null!
public void setProfile(double[] profileData)
profileData
- Data of the profile as calculated by profile extractor.public int getProfileSize()
public MTBImageRGB getVoronoiImg()
Attention: May be null!
public void setVoronoiImg(MTBImageRGB voronoiImg)
Attention: Correct size is mandatory!
voronoiImg
- Allocated image to be filled with voronoi data.public Vector<Vector<Point2D.Double>> getProfilePoints()
public void setProfilePoints(Vector<Vector<Point2D.Double>> profPoints)
profPoints
- points in the neurite region for profile calculatingCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.