當前位置: 首頁>>代碼示例>>Java>>正文


Java DepthFormat類代碼示例

本文整理匯總了Java中org.openkinect.freenect.DepthFormat的典型用法代碼示例。如果您正苦於以下問題:Java DepthFormat類的具體用法?Java DepthFormat怎麽用?Java DepthFormat使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DepthFormat類屬於org.openkinect.freenect包,在下文中一共展示了DepthFormat類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: DepthHandlerImpl

import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public DepthHandlerImpl(int width, int height, DepthFormat format) {
    lock = new Object();
    this.format = format;
    this.width = width;
    this.height = height;
    frameSize = width * height;
    depthFrame = new int[frameSize];
}
 
開發者ID:edaubert,項目名稱:opencv-freenect,代碼行數:9,代碼來源:DepthHandlerImpl.java

示例2: main

import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public static void main(String[] args) {
    DepthHandlerImpl depthHandler = new DepthHandlerImpl(640, 480, DepthFormat.D11BIT);
    VideoHandlerImpl videoHandler = new VideoHandlerImpl(640, 480, VideoFormat.IR_10BIT);

    KinectManager manager = new KinectManager();
    manager.initializeContext();
    manager.initializeDevice(0);
    manager.defineDepth(depthHandler);
    manager.defineVideo(videoHandler);

    displayDepth(depthHandler, manager);
    displayVideo(videoHandler, manager);
}
 
開發者ID:edaubert,項目名稱:opencv-freenect,代碼行數:14,代碼來源:FreenectRunner.java

示例3: main

import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public static void main(String[] args) {
    new OpenCVManager().initializeOpenCV();

    DepthHandlerImpl depthHandler = new DepthHandlerImpl(640, 480, DepthFormat.D11BIT);
    OpenCVFaceDetectionHandler videoHandler = new OpenCVFaceDetectionHandler("/home/edaubert/bin/opencv/share/OpenCV/lbpcascades/lbpcascade_frontalface.xml", 640, 480);

    KinectManager manager = new KinectManager();
    manager.initializeContext();
    manager.initializeDevice(0);
    manager.defineDepth(depthHandler);
    manager.defineVideo(videoHandler);

    displayDepth(depthHandler, manager);
    displayVideo(videoHandler, manager);
}
 
開發者ID:edaubert,項目名稱:opencv-freenect,代碼行數:16,代碼來源:OpenCVRunnerWithVideo.java

示例4: getFormat

import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public DepthFormat getFormat() {
    return format;
}
 
開發者ID:edaubert,項目名稱:opencv-freenect,代碼行數:4,代碼來源:DepthHandlerImpl.java

示例5: AbstractOpenCVDepthHandler

import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public AbstractOpenCVDepthHandler(int width, int height, DepthFormat format) {
    super(width, height, format);
}
 
開發者ID:edaubert,項目名稱:opencv-freenect,代碼行數:4,代碼來源:AbstractOpenCVDepthHandler.java


注:本文中的org.openkinect.freenect.DepthFormat類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。