| 
 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
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. Please place these under the data directory of the sketch. (Look at example.)
NyARBoardは、2つの外部設定ファイル"マーカファイル"と"カメラパラメータ"ファイルを必要とします。 これらはARToolKitのものと互換性があります。 これらはスケッチのdataディレクトリ以下に配置をして下さい。(exampleを見てください。)
| フィールドの概要 | |
|---|---|
|  processing.core.PVector | angleThe angle value in radian unit of "x,y,z" . | 
|  double | cfThresholdThe threshold value of marker pattern confidence. | 
|  double | confidenceThe confidence value of detected marker. | 
|  int | gsThresholdThe threshold value of labeling process from gray scale image. | 
|  int | lostCountIt is a number in which it continuously lost the marker. | 
|  int | lostDelayNyARBoard ignores that it lost the marker while under specified number. | 
|  int[][] | pos2dThe position of 4 corner of marker. | 
|  double[] | projectionThe projection matrix adday for OpenGL projection. | 
|  processing.core.PVector | transThe translation value in radian unit of "x,y,z". | 
|  double[] | transmatThe transform matrix of detected marker. | 
|  java.lang.String | VERSIONversion 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. | |
| メソッドの概要 | |
|---|---|
|  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 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)
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 endTransform()
| 
 | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||