org.shapelogic.imageprocessing
Class BaseParticleCounter
java.lang.Object
org.shapelogic.imageutil.BaseImageOperation
org.shapelogic.imageprocessing.BaseParticleCounter
- All Implemented Interfaces:
- java.lang.Runnable, IParticleCounter, ImageOperation
- Direct Known Subclasses:
- ParticleCounter
public class BaseParticleCounter
- extends BaseImageOperation
- implements IParticleCounter
ParticleCounter count number of particles in a particle image.
This is really just a slightly modified segmenter.
- Author:
- Sami Badawi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_particleImage
protected java.lang.Boolean _particleImage
_modifying
protected boolean _modifying
- Modifying colors
_segmentation
protected SBSegmentation _segmentation
_saveArea
protected boolean _saveArea
_colorHypothesisFinder
protected IColorHypothesisFinder _colorHypothesisFinder
_colorHypothesis
protected ColorHypothesis _colorHypothesis
_backgroundArea
protected int _backgroundArea
_backgroundCount
protected int _backgroundCount
_particleCount
protected java.lang.Integer _particleCount
_boundingBoxArea
protected double _boundingBoxArea
_iterations
protected int _iterations
_maxDistance
protected double _maxDistance
_minPixelsInArea
protected int _minPixelsInArea
BaseParticleCounter
public BaseParticleCounter()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
init
protected void init()
throws java.lang.Exception
- Setup all the needed factory methods based on what type the image has.
- Throws:
java.lang.Exception
getStatus
public java.lang.String getStatus()
- Specified by:
getStatus
in interface IParticleCounter
getSegmentation
public SBSegmentation getSegmentation()
- Specified by:
getSegmentation
in interface IParticleCounter
isParticleImage
public boolean isParticleImage()
- Specified by:
isParticleImage
in interface IParticleCounter
countBackground
protected boolean countBackground()
getImageArea
public double getImageArea()
getParticleCount
public int getParticleCount()
- Specified by:
getParticleCount
in interface IParticleCounter
getColorHypothesisFinder
public IColorHypothesisFinder getColorHypothesisFinder()
- Specified by:
getColorHypothesisFinder
in interface IParticleCounter
setColorHypothesisFinder
public void setColorHypothesisFinder(IColorHypothesisFinder colorHypothesisFinder)
- Specified by:
setColorHypothesisFinder
in interface IParticleCounter
getMaxDistance
public double getMaxDistance()
- Specified by:
getMaxDistance
in interface IParticleCounter
setMaxDistance
public void setMaxDistance(double maxDistance)
- Specified by:
setMaxDistance
in interface IParticleCounter
getMinPixelsInArea
public int getMinPixelsInArea()
- Specified by:
getMinPixelsInArea
in interface IParticleCounter
setMinPixelsInArea
public void setMinPixelsInArea(int minPixelsInArea)
- Specified by:
setMinPixelsInArea
in interface IParticleCounter
getIterations
public int getIterations()
- Specified by:
getIterations
in interface IParticleCounter
setIterations
public void setIterations(int iterations)
- Specified by:
setIterations
in interface IParticleCounter
Copyright © 2008. All Rights Reserved.