Advertisement
Guest User

depth

a guest
Nov 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. /*
  2. *  stereo_match.cpp
  3. *  calibration
  4. *
  5. *  Created by Victor  Eruhimov on 1/18/10.
  6. *  Copyright 2010 Argus Corp. All rights reserved.
  7. *
  8. */
  9.  
  10. #include "opencv2/calib3d/calib3d.hpp"
  11. #include "opencv2/imgproc/imgproc.hpp"
  12. #include "opencv2/highgui/highgui.hpp"
  13. #include "opencv2/contrib/contrib.hpp"
  14.  
  15. #include <stdio.h>
  16.  
  17. using namespace cv;
  18.  
  19. int main(int argc, char** argv)
  20. {
  21.     Mat img = imread("MiI-MapaRozbieznosci-Skalibrowana.png");
  22.  
  23.     Mat depth = 4800.0 / img;
  24.     imwrite("MiI-MapaGłębokości.png", depth);
  25.  
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement