|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.visualize.MatchingViewer
public class MatchingViewer
visualize a matching between two skeletons.
| Field Summary | |
|---|---|
static int |
backgroundColor
|
private java.awt.image.BufferedImage |
bimg
the bufferedimage containing the visualization in the end |
private MatchList |
correspondences
the correspondences to be displayed |
private static org.apache.log4j.Logger |
logger
|
static int |
objectColor
|
private static long |
serialVersionUID
|
static int |
skeletonColor
|
private SkeletonObject |
so1
the first skeleton object that has been matched |
private SkeletonObject |
so2
the second skeleton object that has been matched |
static int |
xoffset
the x-offset, where the "right" image has to be displayed |
static int |
yoffset
the y-offset, where the "right" image will be shifted vertical by this offset |
| Constructor Summary | |
|---|---|
MatchingViewer(SkeletonObject so1,
SkeletonObject so2,
MatchList ml)
constructor. |
|
| Method Summary | |
|---|---|
private void |
createSkeletonVisualization()
create the skeleton- and matching visualization |
java.awt.image.BufferedImage |
getVisualization()
Get an image, displaying both skeleton objects, with corresponding nodes linked by lines. |
private void |
initBufferedImage()
set width and height of the buffered image. |
private void |
setContourPixel(SkeletonObject so,
int totalOffsetX,
int totalOffsetY)
set the contour pixel in the buffered image. |
private void |
setCorrespondenceLines(int totalOffsetX,
int totalOffsetY)
display line for each correspondence. |
private void |
setSkeletonPixel(SkeletonObject so,
int totalOffsetX,
int totalOffsetY)
set the object's skeleton pixel. |
void |
setVisualization(java.awt.image.BufferedImage bimg)
Set the image viualizing the two skeleton objects and their correspondences. |
private void |
visualize()
visualize the Skeletons and their correspondences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private java.awt.image.BufferedImage bimg
private final SkeletonObject so1
private final SkeletonObject so2
private final MatchList correspondences
private static org.apache.log4j.Logger logger
public static final int backgroundColor
public static final int objectColor
public static final int skeletonColor
public static final int xoffset
public static final int yoffset
| Constructor Detail |
|---|
public MatchingViewer(SkeletonObject so1,
SkeletonObject so2,
MatchList ml)
so1 - first skeleton that has been matchedso2 - second skeleton that has been matchedml - a list of endnode correspondences between the first and second
skeleton, given by their index in the list of end nodes| Method Detail |
|---|
private void visualize()
private void createSkeletonVisualization()
private void initBufferedImage()
private void setContourPixel(SkeletonObject so,
int totalOffsetX,
int totalOffsetY)
so - the skeleton object to be display.totalOffsetX - the x-offset of the object to the left border of the imagetotalOffsetY -
private void setSkeletonPixel(SkeletonObject so,
int totalOffsetX,
int totalOffsetY)
so - the skeletonObject to be displayedtotalOffsetX - the x-offset to the left border of the imagetotalOffsetY -
private void setCorrespondenceLines(int totalOffsetX,
int totalOffsetY)
totalOffsetX - the offset between the two displayed skeletons.totalOffsetY - public java.awt.image.BufferedImage getVisualization()
public void setVisualization(java.awt.image.BufferedImage bimg)
bimg - the visualization image to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||