25 #include <Base/Debug/TimeMeasure.hh>
26 #include <VideoSource/VideoSource_Kinect2.hh>
27 #include <Base/Image/ImageIO.hh>
28 #include <NetworkComm/CScommClient.hh>
29 #include <VideoSource/VideoSource_Kinect2Net.hh>
76 int main(
int argc,
char *argv[]) {
90 for (
int i=0;i<100;i++) {
95 std::cout << std::endl;
void Print(std::ostream &os=std::cout) const
virtual int GrabSingleDepth(BIAS::Camera< float > &image)
grab the depth image (slow).
virtual int PostGrab()
Stop grabbing.
virtual int PreGrab()
Start grabbing.
virtual int InitIrImage(BIAS::ImageBase &Image)
kinect 2 ir image will be 512x424, single channel unsigned char
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
virtual int OpenDevice()
Opens first device found, OpenDevice(0)
virtual int GrabSingleIR(BIAS::Camera< float > &image)
grab the ir sum image computed from the phase images.
virtual int InitDepthImage(BIAS::ImageBase &Image)
kinect 2 depth image will be 512x424, float in Millimeters
Provides remote access to a Microsoft Kinect2 camera.
class TimeMeasure contains functions for timing real time and cpu time.
const StorageType ** GetImageDataArray() const
overloaded GetImageDataArray() from ImageBase