チェンジセット 1731
- コミット日時:
- 2008/10/28 17:08:49 (2 ヶ月前)
- ファイル:
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/FLARToolKit/trunk/src/org/libspark/flartoolkit/detector/FLARMultiMarkerDetector.as
r1727 r1731 54 54 * 55 55 */ 56 public class FLAR DetectMarker {56 public class FLARMultiMarkerDetector { 57 57 58 58 private static const AR_SQUARE_MAX:int = 300; … … 77 77 private var _patt:IFLARColorPatt; 78 78 79 private var _result_holder:FLAR DetectMarkerResultHolder = new FLARDetectMarkerResultHolder();79 private var _result_holder:FLARMultiMarkerDetectorResultHolder = new FLARMultiMarkerDetectorResultHolder(); 80 80 81 81 /** … … 93 93 * @throws FLARException 94 94 */ 95 public function FLAR DetectMarker(i_param:FLARParam, i_code:Array, i_marker_width:Array, i_number_of_code:int) {95 public function FLARMultiMarkerDetector(i_param:FLARParam, i_code:Array, i_marker_width:Array, i_number_of_code:int) { 96 96 const scr_size:FLARIntSize = i_param.getScreenSize(); 97 97 // 解析オブジェクトを作る … … 198 198 } 199 199 // i番目のパターン情報を保存する。 200 var result:FLAR DetectMarkerResult = this._result_holder.result_array[i];200 var result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i]; 201 201 result.arcode_id = code_index; 202 202 result.confidence = confidence; … … 217 217 */ 218 218 public function getTransmationMatrix(i_index:int, o_result:FLARTransMatResult):void { 219 const result:FLAR DetectMarkerResult = this._result_holder.result_array[i_index];219 const result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i_index]; 220 220 // 一番一致したマーカーの位置とかその辺を計算 221 221 if (_is_continue) { … … 229 229 public function getResult(i_index:int):Object 230 230 { 231 const result:FLAR DetectMarkerResult = this._result_holder.result_array[i_index];231 const result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i_index]; 232 232 var ret:Object = new Object(); 233 233 ret.square = result.ref_square; … … 284 284 import org.libspark.flartoolkit.core.FLARSquare; 285 285 286 class FLAR DetectMarkerResult {286 class FLARMultiMarkerDetectorResult { 287 287 288 288 public var arcode_id:int; … … 295 295 } 296 296 297 class FLAR DetectMarkerResultHolder {298 299 public var result_array:Array = new Array(1); //new FLAR DetectMarkerResult[1]; // FLARDetectMarkerResult[]297 class FLARMultiMarkerDetectorResultHolder { 298 299 public var result_array:Array = new Array(1); //new FLARMultiMarkerDetectorResult[1]; // FLARMultiMarkerDetectorResult[] 300 300 301 301 /** … … 307 307 if (i_reserve_size >= result_array.length) { 308 308 var new_size:int = i_reserve_size + 5; 309 result_array = new Array(new_size); //new FLAR DetectMarkerResult[new_size];309 result_array = new Array(new_size); //new FLARMultiMarkerDetectorResult[new_size]; 310 310 for (var i:int = 0; i < new_size; i++) { 311 result_array[i] = new FLAR DetectMarkerResult();311 result_array[i] = new FLARMultiMarkerDetectorResult(); 312 312 } 313 313 }
