Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 203 | chris | 1 | /* |
| 2 | * PROJECT: NyARToolkit |
||
| 3 | * -------------------------------------------------------------------------------- |
||
| 4 | * This work is based on the original ARToolKit developed by |
||
| 5 | * Hirokazu Kato |
||
| 6 | * Mark Billinghurst |
||
| 7 | * HITLab, University of Washington, Seattle |
||
| 8 | * http://www.hitl.washington.edu/artoolkit/ |
||
| 9 | * |
||
| 10 | * The NyARToolkit is Java version ARToolkit class library. |
||
| 11 | * Copyright (C)2008 R.Iizuka |
||
| 12 | * |
||
| 13 | * This program is free software; you can redistribute it and/or |
||
| 14 | * modify it under the terms of the GNU General Public License |
||
| 15 | * as published by the Free Software Foundation; either version 2 |
||
| 16 | * of the License, or (at your option) any later version. |
||
| 17 | * |
||
| 18 | * This program is distributed in the hope that it will be useful, |
||
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 21 | * GNU General Public License for more details. |
||
| 22 | * |
||
| 23 | * You should have received a copy of the GNU General Public License |
||
| 24 | * along with this framework; if not, write to the Free Software |
||
| 25 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
| 26 | * |
||
| 27 | * For further information please contact. |
||
| 28 | * http://nyatla.jp/nyatoolkit/ |
||
| 29 | * <airmail(at)ebony.plala.or.jp> |
||
| 30 | * |
||
| 31 | */ |
||
| 32 | package jp.nyatla.nyartoolkit.core; |
||
| 33 | |||
| 34 | import jp.nyatla.nyartoolkit.NyARException; |
||
| 35 | import jp.nyatla.nyartoolkit.core.raster.*; |
||
| 36 | |||
| 37 | public interface NyARColorPatt |
||
| 38 | { |
||
| 39 | // 消すかも。 |
||
| 40 | // /** |
||
| 41 | // * カラーパターンのサイズを変更します。 |
||
| 42 | // * 変更を行うと、既にgetPatArrayで参照中の配列内容は不定になり、インスタンスのパラメータは初期状態に戻ります。 |
||
| 43 | // * @param i_new_width |
||
| 44 | // * 新しいパターン幅 |
||
| 45 | // * @param i_new_height |
||
| 46 | // * 新しいパターン高 |
||
| 47 | // */ |
||
| 48 | // public void setSize(int i_new_width,int i_new_height); |
||
| 49 | /** |
||
| 50 | * カラーパターンの幅をピクセル値で返します。 |
||
| 51 | * @return |
||
| 52 | */ |
||
| 53 | public int getWidth(); |
||
| 54 | /** |
||
| 55 | * カラーパターンの高さをピクセル値で返します。 |
||
| 56 | * @return |
||
| 57 | */ |
||
| 58 | public int getHeight(); |
||
| 59 | /** |
||
| 60 | * カメラパターンを格納した配列への参照値を返します。 |
||
| 61 | * 配列は最低でも[height][wight][3]のサイズを持ちますが、 |
||
| 62 | * 配列のlengthとwidth,heightの数は一致しないことがあります。 |
||
| 63 | * setSize関数を実行すると、以前に呼び出されたgetPatArrayが返した値は不定になります。 |
||
| 64 | * @return |
||
| 65 | */ |
||
| 66 | public int[][][] getPatArray(); |
||
| 67 | /** |
||
| 68 | * ラスタイメージからi_marker部分のカラーパターンを抽出して、保持します。 |
||
| 69 | * @param image |
||
| 70 | * @param i_marker |
||
| 71 | * @return |
||
| 72 | * ラスターの取得に成功するとTRUE/失敗するとFALSE |
||
| 73 | * @throws NyARException |
||
| 74 | */ |
||
| 75 | public boolean pickFromRaster(NyARRaster image, NyARMarker i_marker) throws NyARException; |
||
| 76 | } |