|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectio.visualize.MatchingViewer3D
public class MatchingViewer3D
Visualization of 3d matching results with the help of VTK (Visualization Toolkit)
| Field Summary | |
|---|---|
private Config |
config
|
private org.apache.log4j.Logger |
logger
Logging instance |
private CleanMatchingResult |
result
holds the matching result |
| Constructor Summary | |
|---|---|
MatchingViewer3D(CleanMatchingResult result)
Constructor. |
|
MatchingViewer3D(CleanMatchingResult result,
Config config)
Constructor. |
|
| Method Summary | |
|---|---|
private vtk.vtkActor |
createLineActor(Index index1,
Index index2,
Dimensions dim1,
Dimensions dim2,
int offset)
Create a vtkActor for a line. |
private vtk.vtkActor |
createSkeletonActor(int[][][] cube,
SkeletonObject so)
create an actor for a 3D skeleton cube. |
void |
show()
Show the matching result. |
private int[][][] |
SkeletonTo3DArray(SkeletonObject so)
Create a 3D cube from the specified skeleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final CleanMatchingResult result
private Config config
private final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public MatchingViewer3D(CleanMatchingResult result)
throws InvalidConfigParameterException
result - the matching result to be visualized
InvalidConfigParameterException
public MatchingViewer3D(CleanMatchingResult result,
Config config)
result - the matching result to be visualizedconfig - holding configuration parameters| Method Detail |
|---|
private vtk.vtkActor createSkeletonActor(int[][][] cube,
SkeletonObject so)
cube - - 3d array containing for each voxel index the skeleton
informationso - - the skeleton object
private int[][][] SkeletonTo3DArray(SkeletonObject so)
so - the skeleton object to be encoded in 3d array
private vtk.vtkActor createLineActor(Index index1,
Index index2,
Dimensions dim1,
Dimensions dim2,
int offset)
index1 - the index of the starting point of the lineindex2 - the index of the end point of the linedim1 - the dimensions of the first skeleton object to be visualizeddim2 - the dimensions of the second skeleton object to be visualizedoffset - the offset between the two skeleton objects
public void show()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||