public class Particle_Analyzer_3D extends Object implements ij.plugin.filter.PlugInFilter
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
Particle_Analyzer_3D() |
Particle_Analyzer_3D(ij.ImagePlus imp,
int th,
boolean showStatus)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
calculateIntensities(ij.ImagePlus intImp) |
void |
calculateSizes() |
ij.ImagePlus |
classesAsImage()
Returns an image whose pixel values are the class
labels.
|
int |
classesCount()
Returns the number of classes (excluding the
'background' class)
|
int[] |
getClasses()
Returns an array of ints, where each
int is one class label.
|
int |
getLargestClass()
Returns the label of the largest class
|
ij.ImagePlus |
getResultAsByteImage() |
int |
getSize(int classlabel)
Returns the size of the specified class
|
ij.ImagePlus |
imageForClass(int classlabel,
String label)
Returns the part of the original picture which
belongs to the specified class
|
ij.ImagePlus |
imageOfLargestClass()
Returns the image of the largest class
|
void |
keepNLargest(int n) |
void |
run(ij.process.ImageProcessor ip) |
int |
setup(String arg,
ij.ImagePlus imp) |
void |
showChart() |
void |
showResultWindow() |
int[] |
sizes()
Returns an array which contains the number of
pixels for each class.
|
void |
sortResults() |
public Particle_Analyzer_3D()
public Particle_Analyzer_3D(ij.ImagePlus imp, int th, boolean showStatus)
public int setup(String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
public ij.ImagePlus getResultAsByteImage()
public void keepNLargest(int n)
public void sortResults()
public void showResultWindow()
public void showChart()
public int[] getClasses()
public int[] sizes()
public int classesCount()
public ij.ImagePlus classesAsImage()
public ij.ImagePlus imageForClass(int classlabel, String label)
classlabel
- id number of the classlabel
- title for the new imagepublic int getSize(int classlabel)
classlabel
- id number of the classpublic int getLargestClass()
public ij.ImagePlus imageOfLargestClass()
public void calculateSizes()
public void calculateIntensities(ij.ImagePlus intImp)
Copyright © 2015–2021 Fiji. All rights reserved.