public class NyARPartialDifferentiationOptimize
extends java.lang.Object
アルゴリズム - 姿勢行列をX,Y,Zの回転方向について偏微分して、それぞれ誤差が最小になる点を求めます。 下位が2点ある場合は、前回の結果に近い値を採用することで、ジッタを減らします。
コンストラクタと説明 |
---|
NyARPartialDifferentiationOptimize(NyARPerspectiveProjectionMatrix i_projection_mat_ref)
コンストラクタです。
|
修飾子とタイプ | メソッドと説明 |
---|---|
void |
modifyMatrix(NyARDoubleMatrix33 io_rot,
NyARDoublePoint3d i_trans,
NyARDoublePoint3d[] i_vertex3d,
NyARDoublePoint2d[] i_vertex2d,
int i_number_of_vertex)
この関数は、回転行列を最適化します。
|
void |
modifyMatrix(NyARDoublePoint3d i_angle,
NyARDoublePoint3d i_trans,
NyARDoublePoint3d[] i_vertex3d,
NyARDoublePoint2d[] i_vertex2d,
int i_number_of_vertex,
NyARDoublePoint3d o_angle)
この関数は、回転角を最適化します。
|
public NyARPartialDifferentiationOptimize(NyARPerspectiveProjectionMatrix i_projection_mat_ref)
i_projection_mat_ref
- 射影変換オブジェクトの参照値。public void modifyMatrix(NyARDoubleMatrix33 io_rot, NyARDoublePoint3d i_trans, NyARDoublePoint3d[] i_vertex3d, NyARDoublePoint2d[] i_vertex2d, int i_number_of_vertex) throws NyARException
io_rot
- 調整する回転行列i_trans
- 平行移動量i_vertex3d
- 三次元オフセット座標i_vertex2d
- 理想座標系の頂点座標i_number_of_vertex
- 頂点数NyARException
public void modifyMatrix(NyARDoublePoint3d i_angle, NyARDoublePoint3d i_trans, NyARDoublePoint3d[] i_vertex3d, NyARDoublePoint2d[] i_vertex2d, int i_number_of_vertex, NyARDoublePoint3d o_angle) throws NyARException
i_angle
- 回転角i_trans
- 平行移動量i_vertex3d
- 三次元オフセット座標i_vertex2d
- 理想座標系の頂点座標i_number_of_vertex
- 頂点数o_angle
- 調整した回転角を受け取る配列NyARException