|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.visualize.SkeletonToBufferedImage
public class SkeletonToBufferedImage
create a buffered image for a specified skeleton object
| Field Summary | |
|---|---|
private static int |
backgroundColor
define background color |
private static int |
objectColor
define contour color |
private static int |
skeletonColor
define skeleton color |
| Constructor Summary | |
|---|---|
SkeletonToBufferedImage()
|
|
| Method Summary | |
|---|---|
private static void |
initImage(java.awt.image.BufferedImage bimg)
set image completely to background color. |
private static void |
setContourPixel(java.awt.image.BufferedImage bimg,
SkeletonObject o)
set the contour pixel. |
private static void |
setSkeletonPixel(java.awt.image.BufferedImage bimg,
SkeletonObject o)
set the skeleton pixel. |
static java.awt.image.BufferedImage |
skeletonToImage(SkeletonObject o)
create a nice image for the specified skeleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int backgroundColor
private static final int skeletonColor
private static final int objectColor
| Constructor Detail |
|---|
public SkeletonToBufferedImage()
| Method Detail |
|---|
public static java.awt.image.BufferedImage skeletonToImage(SkeletonObject o)
throws InvalidSkeletonException
o - the skeleton object to be visualized
InvalidSkeletonException - if the skeleton is invalidprivate static void initImage(java.awt.image.BufferedImage bimg)
private static void setContourPixel(java.awt.image.BufferedImage bimg,
SkeletonObject o)
bimg - the bufferedimage to be filledo - the skeleton object to be displayed.
private static void setSkeletonPixel(java.awt.image.BufferedImage bimg,
SkeletonObject o)
bimg - the bufferedimage to be filledo - the skeleton object to be displayed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||