public class FeatureStackArray extends Object
Constructor and Description |
---|
FeatureStackArray(ij.ImagePlus inputImage,
ij.ImagePlus filters)
Create a feature stack array based on specific filters
|
FeatureStackArray(int num)
Initialize a feature stack list of a specific size (with default values
for the rest of parameters).
|
FeatureStackArray(int num,
float minimumSigma,
float maximumSigma,
boolean useNeighbors,
int membraneSize,
int membranePatchSize,
boolean[] enabledFeatures)
Initialize a feature stack list of a specific size
|
Modifier and Type | Method and Description |
---|---|
FeatureStack |
get(int n)
Get n-th stack in the array (remember n>=0)
|
boolean[] |
getEnabledFeatures()
Get the features enabled for the reference stack
|
int |
getHeight()
Get the height of the feature stacks.
|
String |
getLabel(int index)
Get a specific label of the reference stack
|
int |
getNumOfFeatures()
Get the number of features of the reference stack (consistent all along the array)
|
int |
getReferenceSliceIndex()
Get the index of the reference slice in the feature stack array.
|
int |
getSize()
Get the number of feature stacks
|
int |
getWidth()
Get the width of the feature stacks.
|
boolean |
isEmpty()
Check if the array has not been yet initialized
|
boolean |
isOldColorFormat()
Check if the old color format is used.
|
boolean |
isOldoldHessianFormatFormat()
Check if the old Hessian format is used.
|
boolean |
isRGB()
Return if image stacks are RGB or grayscale.
|
boolean |
reorderFeatures(Instances data)
Reorder the features of each stack based on the order of attributes given
by a set of instances.
|
void |
resetReference()
Reset the reference index (used when the are
changes in the features)
|
void |
set(FeatureStack fs,
int index)
Set a member of the list
|
void |
setEnabledFeatures(boolean[] newFeatures)
Set the features enabled for the reference stack
|
void |
setMaximumSigma(float sigma)
Set maximum sigma.
|
void |
setMembranePatchSize(int patchSize)
Set membrane patch size.
|
void |
setMembraneSize(int thickness)
Set expected membrane thickness
|
void |
setMinimumSigma(float sigma)
Set minimum sigma.
|
void |
setOldColorFormat(boolean oldColorFormat)
Set the use of the old color format.
|
void |
setOldHessianFormat(boolean oldHessianFormat)
Specify the use of the old (wrong) Hessian format (fixed in
version 3.2.25 of TWS)
|
void |
setReference(int index)
Set the reference index (used when the are
changes in the features).
|
void |
setUseNeighbors(boolean useNeighbors)
Set the use of neighbor features.
|
void |
shutDownNow()
Shut down the executor service
|
Callable<Boolean> |
updateFeatures(FeatureStack fs)
Update features of a feature stack (to be submitted to an Executor Service)
|
boolean |
updateFeaturesMT()
Update all feature stacks in the list (multi-thread fashion)
|
boolean |
updateFeaturesMT(boolean[] update)
Update specific feature stacks in the list (multi-thread fashion)
|
boolean |
useNeighborhood()
Check if neighbor features are used.
|
public FeatureStackArray(int num)
num
- number of elements in the listpublic FeatureStackArray(int num, float minimumSigma, float maximumSigma, boolean useNeighbors, int membraneSize, int membranePatchSize, boolean[] enabledFeatures)
num
- number of elements in the listminimumSigma
- minimum sigma value (usually filter radius)maximumSigma
- maximum sigma value (usually filter radius)useNeighbors
- flag to use neighbor featuresmembraneSize
- expected membrane thicknessmembranePatchSize
- membrane patch sizeenabledFeatures
- array of flags to enable featurespublic FeatureStackArray(ij.ImagePlus inputImage, ij.ImagePlus filters)
inputImage
- original imagefilters
- stack of filters to apply to the original image in order to create the featurespublic int getSize()
public FeatureStack get(int n)
n
- position of the stack to getpublic boolean isRGB()
public void set(FeatureStack fs, int index)
fs
- new feature stackindex
- index of the new feature stack in the arraypublic boolean updateFeaturesMT(boolean[] update)
update
- boolean array indicating which feature stack to updatepublic boolean updateFeaturesMT()
public Callable<Boolean> updateFeatures(FeatureStack fs)
fs
- feature stack to be updatedpublic void resetReference()
public void setReference(int index)
index
- reference indexpublic void shutDownNow()
public boolean isEmpty()
public int getNumOfFeatures()
public String getLabel(int index)
index
- slice index (>=1)public boolean[] getEnabledFeatures()
public void setEnabledFeatures(boolean[] newFeatures)
newFeatures
- boolean flags for the features to usepublic void setMembraneSize(int thickness)
thickness
- expected membrane thickness in pixelspublic void setMembranePatchSize(int patchSize)
patchSize
- membrange patch size in pixelspublic void setMaximumSigma(float sigma)
sigma
- maximum sigmapublic void setMinimumSigma(float sigma)
sigma
- minimum sigmapublic void setUseNeighbors(boolean useNeighbors)
useNeighbors
- public boolean useNeighborhood()
public int getReferenceSliceIndex()
public int getWidth()
public int getHeight()
public void setOldColorFormat(boolean oldColorFormat)
oldColorFormat
- true if old color format is to be usedpublic boolean isOldColorFormat()
public void setOldHessianFormat(boolean oldHessianFormat)
oldHessianFormat
- true if old Hessian format is to be usedpublic boolean isOldoldHessianFormatFormat()
public boolean reorderFeatures(Instances data)
data
- set of instances to get the order fromCopyright © 2015–2021 Fiji. All rights reserved.