|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.imageutil.BaseImageOperation org.shapelogic.imageprocessing.BaseParticleCounter org.shapelogic.imageprocessing.ColorParticleAnalyzer
public class ColorParticleAnalyzer
Analyzes a particle image in gray or RGB and group the particles according
to shape rules.
Find a place in the base class where there is a hook for this extended functionality.
Some of the methods can be moved to ColorParticleAnalyzer to remove dependency of ImageJ.
Fields inherited from class org.shapelogic.imageutil.BaseImageOperation |
---|
_arg, _guiWrapper, _image, _keyValueParser, _setupReturnValue |
Constructor Summary | |
---|---|
ColorParticleAnalyzer()
|
Method Summary | |
---|---|
protected void |
categorizeStreams()
Analyzes particles and group them. Not sure if I should use named streams or try to avoid it to make it more thread safe. |
protected void |
customStreamDefinitions()
Define extra streams. |
protected void |
defaultColumnDefinitions()
Setup all the stream and other needed things. |
protected void |
defaultStreamDefinitions()
Define extra streams and also extra columns. |
protected void |
defineNeuralNetwork()
Method to override if you want to define your own neural network. The default network is very simple it is marking particles Dark or Light. |
protected void |
defineRules()
Method to override if you want to define your own rule set. The default network is very simple it is marking particles Tall, Flat based on their aspect ratio. |
java.lang.StringBuffer |
getInternalInfo()
|
java.util.List |
getTableBuilderOutputList()
This is only for testing the result table. |
void |
init()
Setup all the needed factory methods based on what type the image has. |
protected void |
makeBBoxStreams()
|
protected void |
populateResultsTable()
Populate the table with the streams. |
void |
setNeuralNetworkFile(java.lang.String neuralNetworkFile)
|
protected void |
setupTableBuilder()
|
void |
setUseNeuralNetwork(boolean useNeuralNetwork)
|
Methods inherited from class org.shapelogic.imageutil.BaseImageOperation |
---|
getGuiWrapper, getImage, getKeyValueParser, getSetupReturnValue, isImageValid, setArg, setGuiWrapper, setKeyValueParser, setSetupReturnValue, setup, showAbout, showMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.shapelogic.imageutil.ImageOperation |
---|
getGuiWrapper, getImage, getKeyValueParser, getSetupReturnValue, isImageValid, setArg, setGuiWrapper, setKeyValueParser, setSetupReturnValue, setup, showAbout, showMessage |
Field Detail |
---|
protected WrappedListStream<IColorAndVariance> _particleStream
protected ListStream<Polygon> _polygonStream
protected IEdgeTracer _edgeTracer
protected NumberedStream<java.lang.Double> _aspectRatioStream
protected NumberedStream<java.lang.Integer> _grayValueStream
protected NumberedStream<java.lang.Integer> _hardCornerCountStream
protected ListCalcStream1<IColorAndVariance,java.lang.Boolean> _roundishStream
protected NumberedStream<java.lang.Integer> _inflectionPointCountStream
protected NumberedStream<java.lang.Integer> _curveArchCountStream
protected LoadPolygonStreams loadPolygonStreams
protected LoadParticleStreams loadParticleStreams
protected LoadLetterStreams loadLetterStreams
protected NumberedStream<java.lang.Double> _xMinStream
protected NumberedStream<java.lang.Double> _yMinStream
protected NumberedStream<java.lang.Double> _xMaxStream
protected NumberedStream<java.lang.Double> _yMaxStream
protected NumberedStream<java.lang.Double> _perimeterStream
protected NumberedStream<java.lang.Integer> _areaStream
protected TableDefinition _tableDefinition
protected BaseTableBuilder _tableBuilder
protected boolean _useNeuralNetwork
protected java.lang.String _neuralNetworkFile
protected java.util.List<java.lang.String> _printListOverwrite
Constructor Detail |
---|
public ColorParticleAnalyzer()
Method Detail |
---|
public void init() throws java.lang.Exception
BaseParticleCounter
init
in class BaseParticleCounter
java.lang.Exception
protected void defaultStreamDefinitions()
BaseParticleCounter
defaultStreamDefinitions
in class BaseParticleCounter
protected void makeBBoxStreams()
protected void categorizeStreams()
categorizeStreams
in class BaseParticleCounter
protected void defineRules()
protected void defineNeuralNetwork()
protected void customStreamDefinitions()
customStreamDefinitions
in class BaseParticleCounter
protected void defaultColumnDefinitions()
BaseParticleCounter
defaultColumnDefinitions
in class BaseParticleCounter
protected void populateResultsTable()
BaseParticleCounter
populateResultsTable
in class BaseParticleCounter
protected void setupTableBuilder()
setupTableBuilder
in class BaseParticleCounter
public java.lang.StringBuffer getInternalInfo()
getInternalInfo
in class BaseParticleCounter
public void setNeuralNetworkFile(java.lang.String neuralNetworkFile)
public void setUseNeuralNetwork(boolean useNeuralNetwork)
public java.util.List getTableBuilderOutputList()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |