public class CoreTracker
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected BlobComparator |
blobComparator |
protected BlobDetector |
blobDetector |
protected java.util.List<AbstractFilter> |
filters |
protected java.util.List<PostProcessor> |
postProcessors |
protected BaseBlob |
referenceBlob |
protected AbstractThresholder |
thresholder |
Constructor and Description |
---|
CoreTracker() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(AbstractFilter filter)
Adds a new filter to the list of filters.
|
void |
addPostProcessor(PostProcessor postProcessor)
Adds a new PostProcessor to the list of postprocessors.
|
BooleanImage |
getBinaryImage(ij.process.ImageProcessor ip)
Returns the result of binarization.
|
BlobComparator |
getBlobComparator()
Returns the current BlobComparator.
|
BlobDetector |
getBlobDetector()
Returns the current BlobDetector.
|
ObjectLocation |
getBlobPosition(ij.process.ImageProcessor ip)
Returns the location of the found blob.
|
java.util.List<BaseBlob> |
getBlobs(ij.process.ImageProcessor ip)
Returns the result of blob detection.
|
java.util.List<BaseBlob> |
getBlobs(ij.process.ImageProcessor ip,
boolean needPixelData)
Returns the result of blob detection.
|
ij.process.ImageProcessor |
getFilteredImage(ij.process.ImageProcessor ip)
Returns the result of filtering.
|
java.util.List<AbstractFilter> |
getFilters()
Returns the list of filters.
|
BaseBlob |
getMatchedBlob(ij.process.ImageProcessor ip)
Compares the last identified blob to all possible blobs and returns the
best matching blob.
|
BooleanImage |
getPostProcessedImage(ij.process.ImageProcessor ip)
Returns the result of postprocessing.
|
java.util.List<PostProcessor> |
getPostProcessors()
Returns the list of postprocessors.
|
BaseBlob |
getReferenceBlob()
Returns the last identified blob.
|
AbstractThresholder |
getThresholder()
Returns the current Thresholder.
|
void |
removeFilter(AbstractFilter filter)
Removes an existing filter from the list of filters.
|
void |
removePostProcessor(PostProcessor postProcessor)
Removes an existing PostProcessor from the list of postprocessors.
|
void |
setBlobComparator(BlobComparator blobComparator)
Sets the BlobComparator.
|
void |
setBlobDetector(BlobDetector blobDetector)
Sets the BlobDetector.
|
void |
setFilters(java.util.List<AbstractFilter> filters)
Sets the list of filters.
|
void |
setPostProcessors(java.util.List<PostProcessor> postProcessors)
Sets the list of postprocessors.
|
void |
setReferenceBlob(BaseBlob referenceBlob)
Sets the reference blob for blob comparison.
|
void |
setThresholder(AbstractThresholder thresholder)
Sets the Thresholder.
|
protected java.util.List<AbstractFilter> filters
protected java.util.List<PostProcessor> postProcessors
protected AbstractThresholder thresholder
protected BlobDetector blobDetector
protected BlobComparator blobComparator
protected BaseBlob referenceBlob
public ij.process.ImageProcessor getFilteredImage(ij.process.ImageProcessor ip)
ip
- original imagepublic BooleanImage getBinaryImage(ij.process.ImageProcessor ip)
ip
- original imagepublic BooleanImage getPostProcessedImage(ij.process.ImageProcessor ip)
ip
- original imagepublic java.util.List<BaseBlob> getBlobs(ij.process.ImageProcessor ip)
ip
- original imagepublic java.util.List<BaseBlob> getBlobs(ij.process.ImageProcessor ip, boolean needPixelData)
ip
- original imageneedPixelData
- true: get real pixels of blobspublic BaseBlob getMatchedBlob(ij.process.ImageProcessor ip)
ip
- original imagepublic ObjectLocation getBlobPosition(ij.process.ImageProcessor ip)
ip
- original imagepublic java.util.List<AbstractFilter> getFilters()
public void setFilters(java.util.List<AbstractFilter> filters)
filters
- public AbstractThresholder getThresholder()
public void setThresholder(AbstractThresholder thresholder)
thresholder
- public BlobDetector getBlobDetector()
public void setBlobDetector(BlobDetector blobDetector)
blobDetector
- public BlobComparator getBlobComparator()
public void setBlobComparator(BlobComparator blobComparator)
blobComparator
- public BaseBlob getReferenceBlob()
BlobComparator
public void setReferenceBlob(BaseBlob referenceBlob)
referenceBlob
- BlobComparator
public void addFilter(AbstractFilter filter)
filter
- public void removeFilter(AbstractFilter filter)
filter
- public void addPostProcessor(PostProcessor postProcessor)
postProcessor
- public void removePostProcessor(PostProcessor postProcessor)
postProcessor
- public java.util.List<PostProcessor> getPostProcessors()
public void setPostProcessors(java.util.List<PostProcessor> postProcessors)
postProcessors
-