public class NyARMatchPatt_Color_WITH_PCA extends NyARMatchPatt_Color_WITHOUT_PCA
NyARMatchPattDeviationColorData
クラスの物を使います。
bug - このクラスは動作確認が不十分です。動作しないかもしれませんので、注意してください。
コンストラクタと説明 |
---|
NyARMatchPatt_Color_WITH_PCA(int i_width,
int i_height)
コンストラクタ。
|
NyARMatchPatt_Color_WITH_PCA(NyARCode i_code_ref)
コンストラクタ。
|
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
evaluate(NyARMatchPattDeviationColorData i_patt,
NyARMatchPattResult o_result)
この関数は、現在の基準パターンと検査パターンを比較して、類似度を計算します。
|
setARCode
public NyARMatchPatt_Color_WITH_PCA(int i_width, int i_height)
NyARMatchPatt_Color_WITHOUT_PCA.setARCode(jp.nyatla.nyartoolkit.core.NyARCode)
関数で設定してください。i_width
- 基準パターンのサイズi_height
- 基準パターンのサイズpublic NyARMatchPatt_Color_WITH_PCA(NyARCode i_code_ref)
i_code_ref
- セットする基準パターンpublic boolean evaluate(NyARMatchPattDeviationColorData i_patt, NyARMatchPattResult o_result) throws NyARException
evaluate
クラス内 NyARMatchPatt_Color_WITHOUT_PCA
i_patt
- 検査パターンを格納したオブジェクトです。このサイズは、基準パターンと一致している必要があります。o_result
- 結果を受け取るオブジェクトです。NyARException