jp.digitalmuseum.napkit
クラス NapMarkerDetectorImpl

java.lang.Object
  上位を拡張 jp.digitalmuseum.napkit.NapMarkerDetectorImpl
すべての実装されたインタフェース:
NapMarkerDetector

public class NapMarkerDetectorImpl
extends java.lang.Object
implements NapMarkerDetector

フィールドの概要
 
インタフェース jp.digitalmuseum.napkit.NapMarkerDetector から継承されたフィールド
MAX_SQUARE, THRESHOLD_DEFAULT, THRESHOLD_MAX, THRESHOLD_MIN
 
コンストラクタの概要
NapMarkerDetectorImpl()
           
 
メソッドの概要
 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.
 void setMaximumViewDistance(double viewDistanceMax)
           
 void setMinimumViewDistance(double viewDistanceMin)
           
 boolean setPixelReader(java.lang.Class<? extends jp.nyatla.nyartoolkit.core.rasterreader.INyARRgbPixelReader> pixelReaderClassObject)
           
 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 NapMarkerDetector.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)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
コンストラクタの詳細

NapMarkerDetectorImpl

public NapMarkerDetectorImpl()
メソッドの詳細

addMarkers

public boolean addMarkers(java.util.Set<NapMarker> markers)
インタフェース NapMarkerDetector の記述:
Add markers to detect.
定義:
インタフェース NapMarkerDetector 内の addMarkers
戻り値:
Returns false if the given set is null or specified markers have mixed formats.

addMarker

public boolean addMarker(NapMarker marker)
インタフェース NapMarkerDetector の記述:
Add a marker to detect.
定義:
インタフェース NapMarkerDetector 内の addMarker
戻り値:
Returns false if the specified marker has different formats from the existing markers.

removeMarkers

public void removeMarkers(java.util.Set<NapMarker> markers)
インタフェース NapMarkerDetector の記述:
Remove markers to detect.
定義:
インタフェース NapMarkerDetector 内の removeMarkers

removeMarker

public void removeMarker(NapMarker marker)
インタフェース NapMarkerDetector の記述:
Remove a marker to detect.
定義:
インタフェース NapMarkerDetector 内の removeMarker

detectMarker

public Array<NapDetectionResult> detectMarker(java.lang.Object imageData)
インタフェース NapMarkerDetector の記述:
Detect markers in the provided image.
定義:
インタフェース NapMarkerDetector 内の detectMarker
パラメータ:
imageData - Image data
戻り値:
Detection results

getMarkers

public java.util.Set<NapMarker> getMarkers()
インタフェース NapMarkerDetector の記述:
Get markers to be detected.
定義:
インタフェース NapMarkerDetector 内の getMarkers
戻り値:
Set of markers to be detected.

getResult

public NapDetectionResult getResult(NapMarker marker)
定義:
インタフェース NapMarkerDetector 内の getResult

getResults

public Array<NapDetectionResult> getResults()
定義:
インタフェース NapMarkerDetector 内の getResults

getSquares

public Array<ScreenRectangle> getSquares()
定義:
インタフェース NapMarkerDetector 内の getSquares

loadCameraParameter

public boolean loadCameraParameter(java.lang.String fileName)
インタフェース NapMarkerDetector の記述:
Load a camera parameter from a file.
定義:
インタフェース NapMarkerDetector 内の loadCameraParameter
パラメータ:
fileName - Name of a camera parameter file.

loadCameraParameter

public boolean loadCameraParameter(java.lang.String fileName,
                                   int width,
                                   int height)
インタフェース NapMarkerDetector の記述:
Load a camera parameter from a file, and specify width and height of the screen.
定義:
インタフェース NapMarkerDetector 内の loadCameraParameter
パラメータ:
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.

getWidth

public int getWidth()
定義:
インタフェース NapMarkerDetector 内の getWidth

getHeight

public int getHeight()
定義:
インタフェース NapMarkerDetector 内の getHeight

setSize

public void setSize(int width,
                    int height)
定義:
インタフェース NapMarkerDetector 内の setSize

getThreshold

public int getThreshold()
インタフェース NapMarkerDetector の記述:
Get the specified threshold value.
定義:
インタフェース NapMarkerDetector 内の getThreshold
戻り値:

setThreshold

public void setThreshold(int threshold)
インタフェース NapMarkerDetector の記述:
Set threshold to binarize full color/gray scale image.
定義:
インタフェース NapMarkerDetector 内の setThreshold

getBinarizedImage

public java.awt.image.BufferedImage getBinarizedImage()
インタフェース NapMarkerDetector の記述:
Get the binarized image used for the last detection.
定義:
インタフェース NapMarkerDetector 内の getBinarizedImage
戻り値:

isTransMatEnabled

public boolean isTransMatEnabled()
定義:
インタフェース NapMarkerDetector 内の isTransMatEnabled

setTransMatEnabled

public void setTransMatEnabled(boolean isTransMatEnabled)
定義:
インタフェース NapMarkerDetector 内の setTransMatEnabled

setPixelReader

public boolean setPixelReader(java.lang.String readerName)
インタフェース NapMarkerDetector の記述:
Set pixel reader by its name.
Pixel reader is used for reading color of each pixel of the image data in NapMarkerDetector.detectMarker(Object).
BYTE1D_B8G8R8_24
Image data is provided as a byte array in BGRBGR... order. (default)
BYTE1D_R8G8B8_24
Image data is provided as a byte array in RGBRGB... order.
BYTE1D_B8G8R8X8_32
Image data is provided as a byte array in BGRXBGRX... order where X means alpha value.
BYTE1D_X8R8G8B8_32
Image data is provided as a byte array in XRGBXRGB... order where X means alpha value.
INT1D_GRAY_8
Image data is provided as an integer array, each of whose element represents gray-scaled value.
INT1D_X8R8G8B8_32
Image data is provided as an integer array, each of whose element represents RGB color with alpha value.
定義:
インタフェース NapMarkerDetector 内の setPixelReader
パラメータ:
readerName - Name of a pixel reader.
戻り値:
Whether specified pixel reader is available or not.

setPixelReader

public boolean setPixelReader(java.lang.Class<? extends jp.nyatla.nyartoolkit.core.rasterreader.INyARRgbPixelReader> pixelReaderClassObject)

getCameraProjectionMatrix

public double[] getCameraProjectionMatrix()
定義:
インタフェース NapMarkerDetector 内の getCameraProjectionMatrix

getCameraProjectionMatrixOut

public void getCameraProjectionMatrixOut(double[] cameraProjectionMatrix)
定義:
インタフェース NapMarkerDetector 内の getCameraProjectionMatrixOut

setMinimumViewDistance

public void setMinimumViewDistance(double viewDistanceMin)

setMaximumViewDistance

public void setMaximumViewDistance(double viewDistanceMax)

getLastMarkerDetectionResult

@Deprecated
public Array<NapDetectionResult> getLastMarkerDetectionResult()
推奨されていません。 
インタフェース NapMarkerDetector の記述:
Use NapMarkerDetector.getResults() instead.
定義:
インタフェース NapMarkerDetector 内の getLastMarkerDetectionResult

getLastSquareDetectionResult

@Deprecated
public Array<ScreenRectangle> getLastSquareDetectionResult()
推奨されていません。 
インタフェース NapMarkerDetector の記述:
Use NapMarkerDetector.getSquares() instead.
定義:
インタフェース NapMarkerDetector 内の getLastSquareDetectionResult


Copyright by Jun KATO (arc@dmz) at https://mr.digitalmuseum.jp/