|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.nyatla.nyar4psg.NyARBoard
public class NyARBoard
This class calculate a ARToolKit base transformation matrix from PImage. This class handles one marker, and calculates the transformation matrix that displays the object above the marker.
NyARBoard needs two an external configuration file "Marker file" and "Camera parameter" files. These are compatible with the original ARToolKit. Place those files to under the data directory of the sketch. (see example.)
NyARBoardは、2つの外部設定ファイル"マーカファイル"と"カメラパラメータ"ファイルを必要とします。 これらはARToolKitのものと互換性があります。 これらはスケッチのdataディレクトリ以下に配置をして下さい。(exampleを見てください。)
フィールドの概要 | |
---|---|
processing.core.PVector |
angle
The angle value in radian unit of "x,y,z" . |
double |
cfThreshold
The threshold value of marker pattern confidence. |
double |
confidence
The confidence value of detected marker. |
static int |
CS_LEFT
|
static int |
CS_RIGHT
|
int |
gsThreshold
The threshold value of labeling process from gray scale image. |
int |
lostCount
It is a number in which it continuously lost the marker. |
int |
lostDelay
NyARBoard ignores that it lost the marker while under specified number. |
int[][] |
pos2d
The position of 4 corner of marker. |
double[] |
projection
The projection matrix adday for OpenGL projection. |
processing.core.PVector |
trans
The translation value in radian unit of "x,y,z". |
double[] |
transmat
The transform matrix of detected marker. |
java.lang.String |
VERSION
version information. |
コンストラクタの概要 | |
---|---|
NyARBoard(processing.core.PApplet parent,
int i_width,
int i_htight,
java.lang.String i_cparam,
java.lang.String i_patt,
int i_patt_width)
This function is constructor same as i_projection_coord_system=CS_LEFT. |
|
NyARBoard(processing.core.PApplet parent,
int i_width,
int i_htight,
java.lang.String i_cparam,
java.lang.String i_patt,
int i_patt_width,
int i_projection_coord_system)
This function is constructor. |
メソッドの概要 | |
---|---|
void |
beginTransform(javax.media.opengl.GL i_gl)
|
void |
beginTransform(processing.opengl.PGraphicsOpenGL i_pgl)
This function sets corresponding transform matrix to the surface of the marker to OpenGL. |
boolean |
detect(processing.core.PImage i_image)
This function detect a marker which is must higher confidence in i_image. |
void |
endTransform()
This function recover coordinate system that was changed by beginTransform function. |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final int CS_RIGHT
public static final int CS_LEFT
public final java.lang.String VERSION
public int lostDelay
public int lostCount
public double cfThreshold
public final double[] projection
public final processing.core.PVector angle
public final processing.core.PVector trans
public double confidence
public final int[][] pos2d
public final double[] transmat
public int gsThreshold
コンストラクタの詳細 |
---|
public NyARBoard(processing.core.PApplet parent, int i_width, int i_htight, java.lang.String i_cparam, java.lang.String i_patt, int i_patt_width, int i_projection_coord_system)
parent
- Specify processing instance.
i_width
- Width of source image size for "detect()".
i_htight
- Height of source image size for "detect()".
i_cparam
- The file name of the camera parameter of ARToolKit format.
Place the file to "data" directory at sketch.
i_patt
- The file name of the marker pattern file of ARToolkit.
Place the file to "data" directory at sketch.
The marker resolution must be 16x16.
i_patt_width
- The length of one side of a square marker in millimeter unit.
i_projection_coord_system
- Coordinate system flag of projection Matrix. Should be NyARBoard.CS_RIGHT or NyARBoard.Left(default)
public NyARBoard(processing.core.PApplet parent, int i_width, int i_htight, java.lang.String i_cparam, java.lang.String i_patt, int i_patt_width)
parent
- Specify processing instance.
i_width
- Width of source image size for "detect()".
i_htight
- Height of source image size for "detect()".
i_cparam
- The file name of the camera parameter of ARToolKit format.
Place the file to "data" directory at sketch.
i_patt
- The file name of the marker pattern file of ARToolkit.
Place the file to "data" directory at sketch.
The marker resolution must be 16x16.
i_patt_width
- The length of one side of a square marker in millimeter unit.
メソッドの詳細 |
---|
public boolean detect(processing.core.PImage i_image)
i_image
- Specify source image.
public void beginTransform(processing.opengl.PGraphicsOpenGL i_pgl)
i_pgl
- Specify PGraphicsOpenGL instance.
Please cast and set a "g" member of processing.
public void beginTransform(javax.media.opengl.GL i_gl)
public void endTransform()
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |