|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoftware.common.ImageToCoordinatesInches
public class ImageToCoordinatesInches
Given an image, it finds all color spots (Clusters) on that image. It created a private copy of the image that is modified as a new cluster is found. Improvments can be made to not have a private copy of the image (same important memory)
| Constructor Summary | |
|---|---|
ImageToCoordinatesInches(java.awt.image.BufferedImage b,
double dpi,
java.util.Vector<Cluster> collorsSougth)
The discountinuity of the color spots is given in INCHES. |
|
| Method Summary | |
|---|---|
Cluster |
detectCircular(double startx,
double starty,
double halfSide,
Cluster sougthCollor1)
Looks for a cluster in concentric circles, starting from the center |
int |
getColumn()
|
int |
getFromx()
|
int |
getFromy()
|
java.awt.image.BufferedImage |
getImg()
|
Cluster |
getNextCluster()
Returns the next cluster found. |
int |
getNumberOfColumns()
|
int |
getTox()
|
int |
getToy()
|
static boolean |
isGivenColor(java.awt.Color sougthCollor,
java.awt.Color given,
java.awt.Color deviation)
|
void |
setFromx(int fromx)
|
void |
setFromy(int fromy)
|
void |
setNumberOfColumns(int numberOfColumns)
|
void |
setTox(int tox)
|
void |
setToy(int toy)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageToCoordinatesInches(java.awt.image.BufferedImage b,
double dpi,
java.util.Vector<Cluster> collorsSougth)
b - The image to be scanneddpi - the dpi of the imagecollorsSougth - - the collors to look for. Cannot contain white (it run run out of memory - stack), as
the color used for marking a pixel as visited is white.| Method Detail |
|---|
public Cluster getNextCluster()
public static boolean isGivenColor(java.awt.Color sougthCollor,
java.awt.Color given,
java.awt.Color deviation)
sougthCollor - given - deviation -
public int getFromx()
public void setFromx(int fromx)
public int getFromy()
public void setFromy(int fromy)
public int getNumberOfColumns()
public void setNumberOfColumns(int numberOfColumns)
public int getTox()
public void setTox(int tox)
public int getToy()
public void setToy(int toy)
public int getColumn()
public java.awt.image.BufferedImage getImg()
public Cluster detectCircular(double startx,
double starty,
double halfSide,
Cluster sougthCollor1)
startx - - the X coordinate of the centerstarty - - the Y coordinate of the centerhalfSide - - the radius of the disk to searchsougthCollor1 - - the color shougth
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||