1 | initial version |
Cuda toolkit install. The graphics card must support cuda. (NVIDIA GTX xxx) Cmake use opencv build.
int num_device = getCudaEnabledDeviceCount(); //GPU is must num_device == 1 if(num_device > 0) Stitcher stitcher = Stitcher::createDefault(true); //try_use_gpu //use GPU else Stitcher stitcher = Stitcher::createDefault(false); //use only CPU Stitcher::Status status = stitcher.stitch(imgs, rois, pano);
it is fast.