| 46 | } |
| 47 | |
| 48 | static libfreenect2::Registration* make_registration(libfreenect2::Freenect2Device* dev) |
| 49 | { |
| 50 | libfreenect2::Freenect2Device::ColorCameraParams colCamParams = dev->getColorCameraParams(); |
| 51 | libfreenect2::Freenect2Device::IrCameraParams irCamParams = dev->getIrCameraParams(); |
| 52 | { |
| 53 | libfreenect2::Freenect2Device::ColorCameraParams cp = colCamParams; |
| 54 | std::cout << "fx=" << cp.fx << ",fy=" << cp.fy |
| 55 | << ",cx=" << cp.cx << ",cy=" << cp.cy << std::endl; |
| 56 | libfreenect2::Freenect2Device::IrCameraParams ip = irCamParams; |
| 57 | std::cout << "fx=" << ip.fx << ",fy=" << ip.fy |
| 58 | << ",ix=" << ip.cx << ",iy=" << ip.cy |
| 59 | << ",k1=" << ip.k1 << ",k2=" << ip.k2 << ",k3=" << ip.k3 |
| 60 | << ",p1=" << ip.p1 << ",p2=" << ip.p2 << std::endl; |
| 61 | } |
| 62 | |
| 63 | return new libfreenect2::Registration(irCamParams, colCamParams); |
| 64 | } |
| 65 | |
| 66 | void Registration::colorFrameRGB888(libfreenect2::Frame* colorFrame, libfreenect2::Frame* registeredFrame) |
| 67 | { |
no test coverage detected