public class NyARPerspectiveParamGenerator_Reference extends NyARPerspectiveParamGenerator
NyARPerspectiveParamGenerator_O1
関数を使用してください。コンストラクタと説明 |
---|
NyARPerspectiveParamGenerator_Reference(int i_local_x,
int i_local_y)
コンストラクタです。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
getParam(int i_dest_w,
int i_dest_h,
double x1,
double y1,
double x2,
double y2,
double x3,
double y3,
double x4,
double y4,
double[] o_param)
この関数は、遠近法のパラメータを計算して、返却します。
|
getParam, getParam, getParam, getParam
public NyARPerspectiveParamGenerator_Reference(int i_local_x, int i_local_y)
i_local_x
- パラメータ計算の基準点を指定します。i_local_y
- パラメータ計算の基準点を指定します。public final boolean getParam(int i_dest_w, int i_dest_h, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double[] o_param) throws NyARException
getParam
クラス内 NyARPerspectiveParamGenerator
i_dest_w
- 出力先矩形の幅を指定します。i_dest_h
- 出力先矩形の高さを指定します。x1
- 変換元四角形の頂点1のX座標です。y1
- 変換元四角形の頂点1のY座標です。x2
- 変換元四角形の頂点2のX座標です。y2
- 変換元四角形の頂点2のY座標です。x3
- 変換元四角形の頂点3のX座標です。y3
- 変換元四角形の頂点3のY座標です。x4
- 変換元四角形の頂点4のX座標です。y4
- 変換元四角形の頂点4のY座標です。o_param
- 結果を受け取る配列を指定します。NyARException