|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface NapMarkerDetector
フィールドの概要 | |
---|---|
static int |
MAX_SQUARE
|
static int |
THRESHOLD_DEFAULT
|
static int |
THRESHOLD_MAX
|
static int |
THRESHOLD_MIN
|
メソッドの概要 | |
---|---|
boolean |
addMarker(NapMarker marker)
Add a marker to detect. |
boolean |
addMarkers(java.util.Set<NapMarker> markers)
Add markers to detect. |
Array<NapDetectionResult> |
detectMarker(java.lang.Object imageData)
Detect markers in the provided image. |
java.awt.image.BufferedImage |
getBinarizedImage()
Get the binarized image used for the last detection. |
double[] |
getCameraProjectionMatrix()
|
void |
getCameraProjectionMatrixOut(double[] cameraProjectionMatrix)
|
int |
getHeight()
|
Array<NapDetectionResult> |
getLastMarkerDetectionResult()
推奨されていません。 |
Array<ScreenRectangle> |
getLastSquareDetectionResult()
推奨されていません。 |
java.util.Set<NapMarker> |
getMarkers()
Get markers to be detected. |
NapDetectionResult |
getResult(NapMarker marker)
|
Array<NapDetectionResult> |
getResults()
|
Array<ScreenRectangle> |
getSquares()
|
int |
getThreshold()
Get the specified threshold value. |
int |
getWidth()
|
boolean |
isTransMatEnabled()
|
boolean |
loadCameraParameter(java.lang.String fileName)
Load a camera parameter from a file. |
boolean |
loadCameraParameter(java.lang.String fileName,
int width,
int height)
Load a camera parameter from a file, and specify width and height of the screen. |
void |
removeMarker(NapMarker marker)
Remove a marker to detect. |
void |
removeMarkers(java.util.Set<NapMarker> markers)
Remove markers to detect. |
boolean |
setPixelReader(java.lang.String readerName)
Set pixel reader by its name. Pixel reader is used for reading color of each pixel of the image data in detectMarker(Object) . |
void |
setSize(int width,
int height)
|
void |
setThreshold(int threshold)
Set threshold to binarize full color/gray scale image. |
void |
setTransMatEnabled(boolean isTransMatEnabled)
|
フィールドの詳細 |
---|
static final int MAX_SQUARE
static final int THRESHOLD_DEFAULT
static final int THRESHOLD_MIN
static final int THRESHOLD_MAX
メソッドの詳細 |
---|
java.util.Set<NapMarker> getMarkers()
boolean addMarkers(java.util.Set<NapMarker> markers)
markers
-
boolean addMarker(NapMarker marker)
marker
-
void removeMarkers(java.util.Set<NapMarker> markers)
markers
- void removeMarker(NapMarker marker)
marker
- boolean loadCameraParameter(java.lang.String fileName)
fileName
- Name of a camera parameter file.boolean loadCameraParameter(java.lang.String fileName, int width, int height)
fileName
- Name of a camera parameter file.width
- Width of the image captured by the camera.height
- Height of the image captured by the camera.int getWidth()
int getHeight()
void setSize(int width, int height)
void setThreshold(int threshold)
threshold
- int getThreshold()
java.awt.image.BufferedImage getBinarizedImage()
Array<NapDetectionResult> detectMarker(java.lang.Object imageData)
imageData
- Image data
boolean setPixelReader(java.lang.String readerName)
detectMarker(Object)
.
readerName
- Name of a pixel reader.
NapDetectionResult getResult(NapMarker marker)
Array<NapDetectionResult> getResults()
Array<ScreenRectangle> getSquares()
boolean isTransMatEnabled()
void setTransMatEnabled(boolean isTransMatEnabled)
double[] getCameraProjectionMatrix()
void getCameraProjectionMatrixOut(double[] cameraProjectionMatrix)
@Deprecated Array<NapDetectionResult> getLastMarkerDetectionResult()
getResults()
instead.
@Deprecated Array<ScreenRectangle> getLastSquareDetectionResult()
getSquares()
instead.
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |