本文整理匯總了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];
}
示例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);
}
示例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);
}
示例4: getFormat
import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public DepthFormat getFormat() {
return format;
}
示例5: AbstractOpenCVDepthHandler
import org.openkinect.freenect.DepthFormat; //導入依賴的package包/類
public AbstractOpenCVDepthHandler(int width, int height, DepthFormat format) {
super(width, height, format);
}