public class ProcessingPipeline extends ArrayList<IProcessingAlgorithm> implements IProcessingAlgorithm
Represents an ordered chain of image processing algorithms.
modCount| Constructor and Description |
|---|
ProcessingPipeline()
Initializes a new instance of the
ProcessingPipeline class. |
ProcessingPipeline(List<IProcessingAlgorithm> algorithms)
Initializes a new instance of the
ProcessingPipeline class. |
| Modifier and Type | Method and Description |
|---|---|
static ProcessingPipeline |
getDefault()
Gets a default pipeline of image preprocessing algorithms
|
void |
process(OmrImage image,
Rectangle area)
Processes an image with a chain of image preprocessing algorithms.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic ProcessingPipeline()
Initializes a new instance of the ProcessingPipeline class.
public ProcessingPipeline(List<IProcessingAlgorithm> algorithms)
Initializes a new instance of the ProcessingPipeline class.
algorithms - The ordered collection of algorithms.public static ProcessingPipeline getDefault()
Gets a default pipeline of image preprocessing algorithms
public void process(OmrImage image, Rectangle area)
Processes an image with a chain of image preprocessing algorithms.
process in interface IProcessingAlgorithmimage - An image to process.area - Area of image to be processed.Copyright © 2014. All rights reserved.