|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.shapelogic.imageutil.BaseImageOperation
org.shapelogic.imageprocessing.DistanceBasedColorHypothesisFinder
public class DistanceBasedColorHypothesisFinder
Find a color hypothesis based on just distance of colors.
Should this be a BaseImageOperation?
What should go on in run and what in findBestColorHypothesis()?
findBestColorHypothesis() should be the workhorse.
What should I do about color and gray, should there be a separate class for each?
I would think that maybe
| Field Summary |
|---|
| Fields inherited from class org.shapelogic.imageutil.BaseImageOperation |
|---|
_arg, _guiWrapper, _image, _keyValueParser, _setupReturnValue |
| Constructor Summary | |
|---|---|
DistanceBasedColorHypothesisFinder()
|
|
DistanceBasedColorHypothesisFinder(double maxDistance)
|
|
DistanceBasedColorHypothesisFinder(java.lang.String arg,
SLImage image,
double maxDistance)
|
|
DistanceBasedColorHypothesisFinder(java.lang.String arg,
java.lang.String filePath,
double maxDistance)
|
|
DistanceBasedColorHypothesisFinder(java.lang.String arg,
java.lang.String dir,
java.lang.String fileName,
java.lang.String fileFormat,
double maxDistance)
|
|
| Method Summary | |
|---|---|
ColorHypothesis |
colorHypothesisIteration(ColorHypothesis lastColorHypothesis)
|
IColorRange |
findBestBackground(ColorHypothesis colorHypothesis)
|
ColorHypothesis |
findBestColorHypothesis()
|
ColorHypothesis |
getColorHypothesis()
|
int |
getIteration()
Number of the current iteration. XXX: Not sure that this is needed. |
int |
getIterations()
How many iterations to do. |
void |
putPixel(int x,
int y,
int color)
Handle a pixel with a color and a coordinate. |
void |
run()
|
void |
setIterations(int iterations)
How many iterations to do. |
void |
setMaxDistance(double maxDistance)
|
int |
setup(java.lang.String arg,
SLImage image)
If you are using the ImageOperation to fit into a ImageJ PlugInFilter use this to instantiate arg and image. |
boolean |
verifyColor(IColorRange colorRange)
|
| Methods inherited from class org.shapelogic.imageutil.BaseImageOperation |
|---|
getGuiWrapper, getImage, getKeyValueParser, getSetupReturnValue, isImageValid, setArg, setGuiWrapper, setKeyValueParser, setSetupReturnValue, showAbout, showMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DistanceBasedColorHypothesisFinder(java.lang.String arg,
SLImage image,
double maxDistance)
public DistanceBasedColorHypothesisFinder(java.lang.String arg,
java.lang.String filePath,
double maxDistance)
public DistanceBasedColorHypothesisFinder(java.lang.String arg,
java.lang.String dir,
java.lang.String fileName,
java.lang.String fileFormat,
double maxDistance)
public DistanceBasedColorHypothesisFinder()
public DistanceBasedColorHypothesisFinder(double maxDistance)
| Method Detail |
|---|
public ColorHypothesis findBestColorHypothesis()
findBestColorHypothesis in interface IColorHypothesisFinderpublic ColorHypothesis colorHypothesisIteration(ColorHypothesis lastColorHypothesis)
colorHypothesisIteration in interface IColorHypothesisFinder
public int setup(java.lang.String arg,
SLImage image)
BaseImageOperation
setup in interface ImageOperationsetup in class BaseImageOperationpublic void run()
run in interface java.lang.Runnable
public void putPixel(int x,
int y,
int color)
PixelHandler
putPixel in interface PixelHandlerpublic void setMaxDistance(double maxDistance)
public ColorHypothesis getColorHypothesis()
getColorHypothesis in interface IColorHypothesisFinderpublic int getIterations()
getIterations in interface IColorHypothesisFinderpublic void setIterations(int iterations)
setIterations in interface IColorHypothesisFinderpublic boolean verifyColor(IColorRange colorRange)
verifyColor in interface IColorHypothesisFinderpublic int getIteration()
getIteration in interface IColorHypothesisFinderpublic IColorRange findBestBackground(ColorHypothesis colorHypothesis)
findBestBackground in interface IColorHypothesisFinder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||