@Deprecated public class Trainable_Segmentation extends Object implements ij.plugin.PlugIn
Constructor and Description |
---|
Trainable_Segmentation()
Deprecated.
Basic constructor
|
Trainable_Segmentation(ij.ImagePlus trainingImage)
Deprecated.
No GUI constructor
|
Modifier and Type | Method and Description |
---|---|
ij.ImagePlus |
applyClassifier(Instances data,
int w,
int h,
int numThreads)
Deprecated.
Apply current classifier to set of instances
|
void |
applyClassifierToTestData()
Deprecated.
Apply classifier to test data
|
ij.ImagePlus |
applyClassifierToTestImage(ij.ImagePlus testImage,
int numThreads)
Deprecated.
Apply current classifier to image
|
void |
createProbImgFromTestData()
Deprecated.
Apply classifier to a set of images and create a multi-channel
probability distribution image.
|
ij.ImagePlus |
createProbImgFromTestData(ij.ImagePlus testImage,
int numThreads)
Deprecated.
Create multi-channel probability distribution image from image
|
Instances |
createTrainingInstances()
Deprecated.
Create training instances out of the user markings
|
ij.ImagePlus |
getClassifiedImage()
Deprecated.
Get current classification result
|
ij.ImagePlus[] |
getClassifierDistribution(Instances data,
int w,
int h,
int numThreads)
Deprecated.
Apply current classifier to set of instances to get a probability
distribution.
|
void |
loadTrainingData()
Deprecated.
Load previously saved data
|
boolean |
loadTrainingData(String pathname)
Deprecated.
Load training data (no GUI)
|
Instances |
readDataFromARFF(String filename)
Deprecated.
Read ARFF file
|
void |
run(String arg)
Deprecated.
Plugin run method
|
void |
saveTrainingData()
Deprecated.
Save training model into a file
|
boolean |
showSettingsDialog()
Deprecated.
Show advanced settings dialog
|
void |
trainClassifier()
Deprecated.
Train classifier with the current instances
|
void |
writeDataToARFF(Instances data,
String filename)
Deprecated.
Write current instances into an ARFF file
|
public Trainable_Segmentation()
public Trainable_Segmentation(ij.ImagePlus trainingImage)
trainingImage
- input imagepublic void run(String arg)
run
in interface ij.plugin.PlugIn
public void writeDataToARFF(Instances data, String filename)
data
- set of instancesfilename
- ARFF file namepublic Instances readDataFromARFF(String filename)
filename
- ARFF file namepublic Instances createTrainingInstances()
public void trainClassifier()
public ij.ImagePlus applyClassifier(Instances data, int w, int h, int numThreads)
data
- set of instancesw
- image widthh
- image heightnumThreads
- number of threads to createpublic ij.ImagePlus[] getClassifierDistribution(Instances data, int w, int h, int numThreads)
data
- set of instancesw
- image widthh
- image heightnumThreads
- number of threads to be usedpublic void applyClassifierToTestData()
public void createProbImgFromTestData()
public ij.ImagePlus applyClassifierToTestImage(ij.ImagePlus testImage, int numThreads)
testImage
- test image (2D single image or stack)public ij.ImagePlus createProbImgFromTestData(ij.ImagePlus testImage, int numThreads)
testImage
- test image (2D single image or stack)numThreads
- number of threads to be usedpublic void loadTrainingData()
public void saveTrainingData()
public boolean showSettingsDialog()
public boolean loadTrainingData(String pathname)
pathname
- complete path name of the training data file (.arff)public ij.ImagePlus getClassifiedImage()
Copyright © 2015–2021 Fiji. All rights reserved.