public class NyARContourPickup_ARToolKit extends NyARContourPickup
NyARContourPickup
に、NyARLabelingImage
の処理機能を追加したクラスです。
@bug
この輪郭線抽出は、特定のパターンで1ドット幅の輪郭を正しく抽出できません。ARToolKit互換の画像処理では
問題になることは少ないので、大きな影響はありませんが、必要に応じてNyARContourPickup
を参考に直してください。
NyARContourPickup.ImageDriverFactory, NyARContourPickup.IRasterDriver
コンストラクタと説明 |
---|
NyARContourPickup_ARToolKit() |
修飾子とタイプ | メソッドと説明 |
---|---|
boolean |
getContour(NyARLabelingImage i_raster,
int i_entry_x,
int i_entry_y,
NyARIntCoordinates o_coord)
この関数は、ラスタの指定点を基点に、輪郭線を抽出します。
|
getContour, getContour
public NyARContourPickup_ARToolKit() throws NyARException
NyARException
public boolean getContour(NyARLabelingImage i_raster, int i_entry_x, int i_entry_y, NyARIntCoordinates o_coord) throws NyARException
i_raster
- 輪郭線を抽出するラスタを指定します。i_entry_x
- 輪郭抽出の開始点です。i_entry_y
- 輪郭抽出の開始点です。o_coord
- 輪郭点を格納するオブジェクトを指定します。NyARException