|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object br.usp.ime.klava.segmentit.structures.PrimitiveCatchmentBasin
public class PrimitiveCatchmentBasin
Represents an atomic unit of partitions, associated to a regional minimum of an image.
Constructor Summary | |
---|---|
PrimitiveCatchmentBasin(int label)
Constructs a PrimitiveCatchmentBasin . |
Method Summary | |
---|---|
void |
addPixel(Pixel pixel)
Adds pixel to this PrimitiveCatchmentBasin . |
int[] |
getHistogram()
Returns the histogram of the gray levels of the Pixel s in this
PrimitiveCatchmentBasin . |
int |
getLabel()
Returns the label of this PrimitiveCatchmentBasin . |
int |
getMinimumLevel()
Returns the minimum gray level in this PrimitiveCatchmentBasin . |
java.awt.geom.Point2D.Double |
getMinimumVisualization()
Returns a double precision point located at the center of a pixel of the regional minimum of this PrimitiveCatchmentBasin for
visualization purposes. |
int |
getNumPixels()
Returns the number of Pixel s that belongs to this
PrimitiveCatchmentBasin . |
java.util.List<Pixel> |
getPixels()
Returns a List with the
Pixel |
Pixel |
getRegionalMinimumPixel()
Returns a Pixel of this PrimitiveCatchmentBasin
regional minimum. |
void |
paint(java.awt.image.BufferedImage image,
java.awt.Color color)
Paints this PrimitiveCatchmentBasin with the given
color . |
Pixel |
paintPathFromMinimumToPixel(Pixel pixel,
java.awt.image.BufferedImage image,
java.awt.Color color)
Paints a path from the given pixel to the regional minimum
of this PrimitiveCatchmentBasin . |
void |
paintRegionalMinimum(java.awt.image.BufferedImage image,
java.awt.Color color)
Paints the regional minimum of this PrimitiveCatchmentBasin . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveCatchmentBasin(int label)
PrimitiveCatchmentBasin
.
label
- the label of this PrimitiveCatchmentBasin
Method Detail |
---|
public int getLabel()
label
of this PrimitiveCatchmentBasin
.
label
of this PrimitiveCatchmentBasin
public int[] getHistogram()
Pixel
s in this
PrimitiveCatchmentBasin
.
Pixel
s in this
PrimitiveCatchmentBasin
public int getMinimumLevel()
PrimitiveCatchmentBasin
.
PrimitiveCatchmentBasin
public void addPixel(Pixel pixel)
pixel
to this PrimitiveCatchmentBasin
.
pixel
- the Pixel
to be added to this
PrimitiveCatchmentBasin
public java.awt.geom.Point2D.Double getMinimumVisualization()
PrimitiveCatchmentBasin
for
visualization purposes.
PrimitiveCatchmentBasin
for visualization
purposespublic int getNumPixels()
Pixel
s that belongs to this
PrimitiveCatchmentBasin
.
Pixel
s that belongs to this
PrimitiveCatchmentBasin
public java.util.List<Pixel> getPixels()
List
with the
Pixels that belongs to this
PrimitiveCatchmentBasin
.
- Returns:
- a
List
with the
Pixels that belongs to this
PrimitiveCatchmentBasin
public void paint(java.awt.image.BufferedImage image, java.awt.Color color)
PrimitiveCatchmentBasin
with the given
color
.
image
- the image where this PrimitiveCatchmentBasin
will be
paintedcolor
- the Color
to be used to paint this
PrimitiveCatchmentBasin
public void paintRegionalMinimum(java.awt.image.BufferedImage image, java.awt.Color color)
PrimitiveCatchmentBasin
.
image
- the image where the regional minimum of this
PrimitiveCatchmentBasin
will be paintedcolor
- the Color
to be used to paint the regional
minimumpublic Pixel getRegionalMinimumPixel()
Pixel
of this PrimitiveCatchmentBasin
regional minimum.
Pixel
of this PrimitiveCatchmentBasin
regional minimumpublic Pixel paintPathFromMinimumToPixel(Pixel pixel, java.awt.image.BufferedImage image, java.awt.Color color)
pixel
to the regional minimum
of this PrimitiveCatchmentBasin
.
pixel
- the origin of the pathimage
- the image where the path will be paintedcolor
- the Color
to be used to paint the path
Pixel
of the regional minimum that is the end of
the painted path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |