チェンジセット 1728
- コミット日時:
- 2008/10/28 03:24:20 (2 ヶ月前)
- ファイル:
-
- as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/FLARSquareMarkerSample.as (更新) (1 diff)
- as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/MultiDetectorSample.as (追加)
- as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/SimpleFLARToolKitView.as (更新) (1 diff)
- as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/layers/FLARSingle3DModelLayer.as (更新) (3 diffs)
- as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/layers/FLARSingleMarkerLayer.as (更新) (4 diffs)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/FLARSquareMarkerSample.as
r1690 r1728 67 67 var param:FLARParam = new FLARParam(); 68 68 param.loadARParam(new CParam()as ByteArray); 69 var code:FLARCode = new FLARCode(16,16);70 69 71 70 this._capture = new Bitmap(new BitmapData(320, 240, false, 0), PixelSnapping.AUTO, true); as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/SimpleFLARToolKitView.as
r1636 r1728 50 50 public class SimpleFLARToolKitView extends ARAppBase { 51 51 52 private static const PATTERN_FILE:String = "Data/ patt.hiro";52 private static const PATTERN_FILE:String = "Data/top.pat"; 53 53 private static const CAMERA_FILE:String = "Data/camera_para.dat"; 54 54 as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/layers/FLARSingle3DModelLayer.as
r1690 r1728 40 40 import com.libspark.flartoolkit.detector.FLARSingleMarkerDetector; 41 41 import com.libspark.flartoolkit.scene.FLARBaseNode; 42 import org.libspark.flartoolkit.core.FLARCode; 43 import org.libspark.flartoolkit.core.param.FLARParam; 44 import org.libspark.flartoolkit.core.raster.rgb.IFLARRgbRaster; 45 import org.libspark.flartoolkit.pv3d.FLARBaseNode; 42 46 43 47 /** … … 55 59 * @param code 56 60 * @param markerWidth 61 * @param confidence 57 62 * @param thresh 58 63 */ 59 public function FLARSingle3DModelLayer(src: FLARBitmapData,64 public function FLARSingle3DModelLayer(src:IFLARRgbRaster, 60 65 param:FLARParam, 61 66 code:FLARCode, 62 67 markerWidth:Number, 63 68 model:FLARBaseNode, 69 confidence:Number = 0.65, 64 70 thresh:int=100) 65 71 { … … 70 76 override public function update():void 71 77 { 72 if (this._detector.detectMarkerLite(this._source, this._thresh) ) { 78 if (this._detector.detectMarkerLite(this._source, this._thresh) && 79 this._detector.getConfidence() > this._confidence) { 73 80 this._detector.getTranslationMatrix(this._resultMat); 74 81 this._model.setTranslationMatrix(this._resultMat); as3/FLARToolKit/trunk/samples/org/tarotaro/flash/ar/layers/FLARSingleMarkerLayer.as
r1690 r1728 49 49 protected var _detector:FLARSingleMarkerDetector; 50 50 protected var _resultMat:FLARTransMatResult; 51 51 protected var _confidence:Number; 52 52 53 /** 53 54 * 単一マーカ用レイヤ … … 56 57 * @param code 57 58 * @param markerWidth 59 * @param confidence 58 60 * @param thresh 59 61 */ … … 62 64 code:FLARCode, 63 65 markerWidth:Number, 66 confidence:Number = 0.65, 64 67 thresh:int = 100) 65 68 { … … 67 70 this._detector = new FLARSingleMarkerDetector(param, code, markerWidth); 68 71 this._resultMat = new FLARTransMatResult(); 72 this._confidence = confidence; 69 73 } 70 74 }
