COLMAP.bat 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @echo off
  2. rem Copyright (c) 2018, ETH Zurich and UNC Chapel Hill.
  3. rem All rights reserved.
  4. rem
  5. rem Redistribution and use in source and binary forms, with or without
  6. rem modification, are permitted provided that the following conditions are met:
  7. rem
  8. rem * Redistributions of source code must retain the above copyright
  9. rem notice, this list of conditions and the following disclaimer.
  10. rem
  11. rem * Redistributions in binary form must reproduce the above copyright
  12. rem notice, this list of conditions and the following disclaimer in the
  13. rem documentation and/or other materials provided with the distribution.
  14. rem
  15. rem * Neither the name of ETH Zurich and UNC Chapel Hill nor the names of
  16. rem its contributors may be used to endorse or promote products derived
  17. rem from this software without specific prior written permission.
  18. rem
  19. rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. rem AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. rem IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. rem ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE
  23. rem LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  24. rem CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  25. rem SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  26. rem INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  27. rem CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28. rem ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  29. rem POSSIBILITY OF SUCH DAMAGE.
  30. rem
  31. rem Author: Johannes L. Schoenberger (jsch-at-demuc-dot-de)
  32. set SCRIPT_PATH=%~dp0
  33. set PATH=%SCRIPT_PATH%\lib;%PATH%
  34. set QT_PLUGIN_PATH=%SCRIPT_PATH%\lib\plugins;%QT_PLUGIN_PATH%
  35. set COMMAND=%1
  36. set ARGUMENTS=
  37. shift
  38. :extract_argument_loop
  39. if "%1"=="" goto after_extract_argument_loop
  40. set ARGUMENTS=%ARGUMENTS% %1
  41. shift
  42. goto extract_argument_loop
  43. :after_extract_argument_loop
  44. if "%COMMAND%"=="" set COMMAND=gui
  45. "%SCRIPT_PATH%\bin\colmap" %COMMAND% %ARGUMENTS%