|
|||||||||
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.BaseVectorizer org.shapelogic.imageprocessing.BaseMaxDistanceVectorizer org.shapelogic.imageprocessing.StreamVectorizer org.shapelogic.imageprocessing.StreamVectorizerIJ DigitStreamVectorizer_
public class DigitStreamVectorizer_
Class running StreamVectorizer and matching polygons to digits.
The main purpose of this is to demonstrate how users of ShapeLogic relatively easily can define their own match. This class did not need to be in the ShapeLogic jar file.
Field Summary |
---|
Fields inherited from class org.shapelogic.imageprocessing.StreamVectorizerIJ |
---|
_displayInputDialogStatic, _displayInternalInfoStatic, _displayResultTableStatic, _gd, _neuralNetworkFileStatic, _noMatchStatic, _rt, _toMaskStatic, _useNeuralNetworkStatic |
Fields inherited from class org.shapelogic.imageprocessing.StreamVectorizer |
---|
_categorizer, _context, _displayAll, _displayResultTable, _neuralNetworkFile, _printListOverwrite, _tableBuilder, _tableDefinition, _useNeuralNetwork, loadLetterStreams |
Fields inherited from class org.shapelogic.imageprocessing.BaseMaxDistanceVectorizer |
---|
_chainCodeHandler |
Fields inherited from class org.shapelogic.imageprocessing.BaseVectorizer |
---|
_cleanedupPolygon, _currentDirection, _currentPixelIndex, _currentPoint, _cyclePoints, _displayInternalInfo, _endPointsClusters, _errorMessage, _firstPointInLineIndex, _firstPointInMultiLine, _matchingOH, _maxX, _maxY, _minX, _minY, _nextCount, _numberOfPointsInAllLines, _pixels, _pixelTypeCalculator, _pixelTypeFinder, _rulesArrayForLetterMatching, _stream, _streamName, _unfinishedPoints, _yForUnporcessedPixel, MAX_DISTANCE_BETWEEN_CLUSTER_POINTS, STRAIGHT_LINE_COLOR |
Fields inherited from class org.shapelogic.imageutil.BaseImageOperation |
---|
_arg, _guiWrapper, _image, _keyValueParser, _setupReturnValue |
Fields inherited from interface ij.plugin.filter.ExtendedPlugInFilter |
---|
KEEP_PREVIEW |
Fields inherited from interface ij.plugin.filter.PlugInFilter |
---|
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Constructor Summary | |
---|---|
DigitStreamVectorizer_()
|
Method Summary | |
---|---|
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. |
void |
loadDigitStream()
|
void |
makeDigitStream()
|
void |
rule(java.lang.String letter,
java.lang.String streamName,
java.lang.String predicate,
double value)
|
void |
run(ij.process.ImageProcessor ip)
|
int |
setup(java.lang.String arg,
ij.ImagePlus imp)
|
Methods inherited from class org.shapelogic.imageprocessing.StreamVectorizerIJ |
---|
displayResultsTable, populateResultsTableRow, setNPasses, setupTableBuilder, showDialog |
Methods inherited from class org.shapelogic.imageprocessing.StreamVectorizer |
---|
categorizeStreams, customStreamDefinitions, defaultColumnDefinitions, defaultStreamDefinitions, defineNeuralNetwork, getContext, getParentContext, init, matchLines, matchSetup, populateResultsTable, printTable, readFFNeuralNetworkWeights, run, setNeuralNetworkFile, setUseNeuralNetwork |
Methods inherited from class org.shapelogic.imageprocessing.BaseMaxDistanceVectorizer |
---|
findMultiLine, findMultiLinePostProcess, findMultiLinePreProcess, findNextLinePoint, handleProblematicPoints, internalFactory, lastPixelOk |
Methods inherited from class org.shapelogic.imageprocessing.BaseVectorizer |
---|
addToUnfinishedPoints, cleanPolygon, countRegionCrossingsAroundPoint, drawLine, drawLines, findAllLines, findFirstLinePoint, findPointType, getCleanedupPolygon, getCyclePoints, getErrorMessage, getImageProcessor, getMatchingOH, getMaxX, getMaxY, getMinX, getMinY, getPixels, getPoints, getPolygon, getStream, getStreamName, hasNext, isPixelUsed, moveCurrentPointForwards, next, oppesiteDirection, pixelIndexToPoint, pointToPixelIndex, pointToPixelIndex, polygonFactory, remove, setStreamName |
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 |
Constructor Detail |
---|
public DigitStreamVectorizer_()
Method Detail |
---|
protected void defineRules()
StreamVectorizer
defineRules
in class StreamVectorizer
public void loadDigitStream()
public void rule(java.lang.String letter, java.lang.String streamName, java.lang.String predicate, double value)
public void makeDigitStream()
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
run
in class StreamVectorizerIJ
public int setup(java.lang.String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
setup
in class StreamVectorizerIJ
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |