jp.digitalmuseum.napkit
クラス NapMarker
java.lang.Object
jp.digitalmuseum.napkit.NapMarker
-
public class NapMarker
- extends java.lang.Object
Marker class. Immutable.
- 作成者:
- Jun KATO
コンストラクタの概要 |
NapMarker(java.lang.String fileName,
double size)
Constructor with a marker file name and real size in [mm] specified. |
メソッドの概要 |
int |
getHeight()
Get height of the pattern image. |
java.awt.Image |
getImage(int direction)
Get marker image. |
jp.nyatla.nyartoolkit.core.match.NyARMatchPatt_Color_WITHOUT_PCA |
getPattern()
Get the pattern image.. |
double |
getRealSize()
Get real size(width and height) of the marker in [mm]. |
int |
getWidth()
Get width of the pattern image. |
static java.awt.Image[] |
load(java.lang.String fileName)
Load marker pattern file and return images. |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NapMarker
public NapMarker(java.lang.String fileName,
double size)
- Constructor with a marker file name and real size in [mm] specified.
-
例外:
jp.nyatla.nyartoolkit.NyARException
getPattern
public jp.nyatla.nyartoolkit.core.match.NyARMatchPatt_Color_WITHOUT_PCA getPattern()
- Get the pattern image..
getWidth
public int getWidth()
- Get width of the pattern image.
getHeight
public int getHeight()
- Get height of the pattern image.
getRealSize
public double getRealSize()
- Get real size(width and height) of the marker in [mm].
getImage
public java.awt.Image getImage(int direction)
- Get marker image.
- パラメータ:
-
direction
- Direction of the image.
load
public static java.awt.Image[] load(java.lang.String fileName)
- Load marker pattern file and return images.
- パラメータ:
-
fileName
-
- 戻り値:
- An array of loaded images.
Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/