org.shapelogic.imageprocessing
Class BaseParticleCounter

java.lang.Object
  extended by org.shapelogic.imageutil.BaseImageOperation
      extended by 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

Field Summary
protected  int _backgroundArea
           
protected  int _backgroundCount
           
protected  double _boundingBoxArea
           
protected  ColorHypothesis _colorHypothesis
           
protected  IColorHypothesisFinder _colorHypothesisFinder
           
protected  int _iterations
           
protected  double _maxDistance
           
protected  int _minPixelsInArea
           
protected  boolean _modifying
          Modifying colors
protected  java.lang.Integer _particleCount
           
protected  java.lang.Boolean _particleImage
           
protected  boolean _saveArea
           
protected  SBSegmentation _segmentation
           
 
Fields inherited from class org.shapelogic.imageutil.BaseImageOperation
_arg, _guiWrapper, _image, _setupReturnValue
 
Constructor Summary
BaseParticleCounter()
           
 
Method Summary
protected  boolean countBackground()
           
 IColorHypothesisFinder getColorHypothesisFinder()
           
 double getImageArea()
           
 int getIterations()
           
 double getMaxDistance()
           
 int getMinPixelsInArea()
           
 int getParticleCount()
           
 SBSegmentation getSegmentation()
           
 java.lang.String getStatus()
           
protected  void init()
          Setup all the needed factory methods based on what type the image has.
 boolean isParticleImage()
           
 void run()
           
 void setColorHypothesisFinder(IColorHypothesisFinder colorHypothesisFinder)
           
 void setIterations(int iterations)
           
 void setMaxDistance(double maxDistance)
           
 void setMinPixelsInArea(int minPixelsInArea)
           
 
Methods inherited from class org.shapelogic.imageutil.BaseImageOperation
getGuiWrapper, getImage, getSetupReturnValue, isImageValid, setGuiWrapper, 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, getSetupReturnValue, isImageValid, setGuiWrapper, setSetupReturnValue, setup, showAbout, showMessage
 

Field Detail

_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
Constructor Detail

BaseParticleCounter

public BaseParticleCounter()
Method Detail

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.