public class Counter3D extends Object
Constructor and Description |
---|
Counter3D(ij.ImagePlus img)
Creates a new instance of Counter3D
|
Counter3D(ij.ImagePlus img,
int thr)
Creates a new instance of Counter3D.
|
Counter3D(ij.ImagePlus img,
int thr,
int min,
int max,
boolean exclude,
boolean redirect)
Creates a new instance of Counter3D.
|
Counter3D(int[] img,
String title,
int width,
int height,
int nbSlices)
Creates a new instance of Counter3D.
|
Counter3D(int[] img,
String title,
int width,
int height,
int nbSlices,
ij.measure.Calibration cal)
Creates a new instance of Counter3D.
|
Counter3D(int[] img,
String title,
int width,
int height,
int nbSlices,
int thr)
Creates a new instance of Counter3D.
|
Counter3D(int[] img,
String title,
int width,
int height,
int nbSlices,
int thr,
ij.measure.Calibration cal)
Creates a new instance of Counter3D.
|
Counter3D(int[] img,
String title,
int width,
int height,
int nbSlices,
int thr,
int min,
int max,
boolean exclude,
boolean redirect,
ij.measure.Calibration cal)
Creates a new instance of Counter3D.
|
Modifier and Type | Method and Description |
---|---|
void |
addObject(Object3D object)
Add the provided Object3D to the list
|
float[][] |
getCentreOfMassList()
Returns the centres of masses' list.
|
ij.ImagePlus |
getCentreOfMassMap()
Returns the centres of masses' map.
|
ij.ImagePlus |
getCentreOfMassMap(boolean drawNb,
boolean whiteNb,
int dotSize,
int fontSize)
Returns the centres of masses' map.
|
float[][] |
getCentroidList()
Returns the centroïds' list.
|
ij.ImagePlus |
getCentroidMap()
Returns the centroïds' map.
|
ij.ImagePlus |
getCentroidMap(boolean drawNb,
boolean whiteNb,
int dotSize,
int fontSize)
Returns the centroïds' map.
|
Object3D |
getObject(int index)
Returns the object at the provided index, as an Object3D
|
void |
getObjects()
Generates the objects list.
|
Vector |
getObjectsList()
Returns the list of all found objects.
|
ij.ImagePlus |
getObjMap()
Returns the objects map.
|
ij.ImagePlus |
getObjMap(boolean drawNb,
int fontSize)
Returns the objects map.
|
int[] |
getObjMapAsArray()
Returns the objects map as a 1D integer array.
|
int[][] |
getSurfPixCoord()
Returns the surface pixels coordinates' list.
|
int[] |
getSurfPixList()
Returns the surface pixels' list.
|
ij.ImagePlus |
getSurfPixMap()
Returns the surface pixels' map.
|
ij.ImagePlus |
getSurfPixMap(boolean drawNb,
boolean whiteNb,
int fontSize)
Returns the surface pixels' map.
|
void |
removeObject(int index)
Removes the Object3D stored at the provided index.
|
void |
showStatistics(boolean newRT)
Returns an ResultsTable containing statistics on objects:
Volume and Surface: number of pixel forming the structures and at its surface respectively.
StdDev, Median, IntDen, Min and Max: standard deviation, median, sum, minimum and maximum of all intensities for the current object.
X, Y and Z: coordinates of the current object's centroïd.
XM, YM and ZM: coordinates of the current object's centre of mass.
BX, BY and BZ: coordinates of the top-left corner of the current object's bounding box.
B-width, B-height and B-depth: current object's bounding box dimensions.
|
void |
showSummary()
Returns a summary containing the image name and the number of retrieved objects including the set filter size and threshold.
|
void |
showSurfPix()
Returns an ResultsTable containing coordinates of the surface pixels for all objects:
Object ID: current object number.
X, Y and Z: coordinates of the current object's surface pixel.
|
public Counter3D(ij.ImagePlus img, int thr, int min, int max, boolean exclude, boolean redirect)
img
- specifies the image to convert into an Counter3D.thr
- specifies the threshold value (should be an Integer).min
- specifies the MIN size threshold to be used (should be an Integer).max
- specifies the MAX size threshold to be used (should be an Integer).exclude
- specifies if the objects on the edges should be excluded (should be a boolean).redirect
- specifies if intensities measurements should be redirected to another image defined within the options window (should be a boolean).public Counter3D(ij.ImagePlus img, int thr)
img
- specifies the image to convert into an Counter3D.thr
- specifies the threshold value (should be an Integer).public Counter3D(ij.ImagePlus img)
img
- specifies the image to convert into an Counter3D.public Counter3D(int[] img, String title, int width, int height, int nbSlices, int thr, int min, int max, boolean exclude, boolean redirect, ij.measure.Calibration cal)
img
- specifies the array containing the image data.title
- specifies the image title.width
- specifies the image width.height
- specifies the image height.nbSlices
- specifies the image numbre of slices.thr
- specifies the threshold value (should be an Integer).min
- specifies the MIN size threshold to be used (should be an Integer).max
- specifies the MAX size threshold to be used (should be an Integer).exclude
- specifies if the objects on the edges should be excluded (should be a boolean).redirect
- specifies if intensities measurements should be redirected to another image defined within the options window (should be a boolean).cal
- specifies the image calibration to be used.public Counter3D(int[] img, String title, int width, int height, int nbSlices, int thr, ij.measure.Calibration cal)
img
- specifies the array containing the image data.title
- specifies the image title.width
- specifies the image width.height
- specifies the image height.nbSlices
- specifies the image number of slices.thr
- specifies the threshold value (should be an Integer).cal
- specifies the image calibration to be used.public Counter3D(int[] img, String title, int width, int height, int nbSlices, int thr)
img
- specifies the array containing the image data.title
- specifies the image title.width
- specifies the image width.height
- specifies the image height.nbSlices
- specifies the image number of slices.thr
- specifies the threshold value (should be an Integer).public Counter3D(int[] img, String title, int width, int height, int nbSlices, ij.measure.Calibration cal)
img
- specifies the array containing the image data.title
- specifies the image title.width
- specifies the image width.height
- specifies the image height.nbSlices
- specifies the image number of slices.cal
- specifies the image calibration to be used.public Counter3D(int[] img, String title, int width, int height, int nbSlices)
img
- specifies the array containing the image data.title
- specifies the image title.width
- specifies the image width.height
- specifies the image height.nbSlices
- specifies the image number of slices.public void getObjects()
public Object3D getObject(int index)
index
- the index of the object to returnpublic void addObject(Object3D object)
object
- Object3D to addpublic void removeObject(int index)
index
- index of the Object3D to be removedpublic Vector getObjectsList()
public ij.ImagePlus getObjMap(boolean drawNb, int fontSize)
drawNb
- should be true if numbers have to be drawn at each coordinate stored in cenArray (boolean).fontSize
- font size of the numbers to be shown (integer).* @return an ImagePlus containing all found objects, each one carrying pixel value equal to its ID.public ij.ImagePlus getObjMap()
public int[] getObjMapAsArray()
public float[][] getCentreOfMassList()
public ij.ImagePlus getCentreOfMassMap(boolean drawNb, boolean whiteNb, int dotSize, int fontSize)
drawNb
- should be true if numbers have to be drawn at each coordinate stored in cenArray (boolean).whiteNb
- should be true if numbers have to appear white (boolean).dotSize
- size of the dots to be drawn (integer).fontSize
- font size of the numbers to be shown (integer).* @return an ImagePlus containing all centres of masses, each one carrying pixel value equal to its ID.public ij.ImagePlus getCentreOfMassMap()
public float[][] getCentroidList()
public ij.ImagePlus getCentroidMap(boolean drawNb, boolean whiteNb, int dotSize, int fontSize)
drawNb
- should be true if numbers have to be drawn at each coordinate stored in cenArray (boolean).whiteNb
- should be true if numbers have to appear white (boolean).dotSize
- size of the dots to be drawn (integer).fontSize
- font size of the numbers to be shown (integer).* @return an ImagePlus containing all centroïds, each one carrying pixel value equal to its ID.public ij.ImagePlus getCentroidMap()
public int[] getSurfPixList()
public int[][] getSurfPixCoord()
public ij.ImagePlus getSurfPixMap(boolean drawNb, boolean whiteNb, int fontSize)
drawNb
- should be true if numbers have to be drawn at each coordinate stored in cenArray (boolean).whiteNb
- should be true if numbers have to appear white (boolean).fontSize
- font size of the numbers to be shown (integer).* @return an ImagePlus containing all pixels found at the surface of objects, each one carrying pixel value equal to its ID.public ij.ImagePlus getSurfPixMap()
public void showStatistics(boolean newRT)
newRT
- should be false if the result window is to be named "Results", allowing use of "Analyze/Distribution" and "Analyze/Summarize". If true, the window will be named "Statistics for "+image title.public void showSummary()
public void showSurfPix()
Copyright © 2015–2021 Fiji. All rights reserved.