drnoob13 / fisheyestitcher Goto Github PK
View Code? Open in Web Editor NEWDual-fisheye stitching
License: MIT License
Dual-fisheye stitching
License: MIT License
How to set the X Y grids for the custom image?
Mask "mask_1920x1920_fovd_187.jpg" What does it do???
Hi,
We have a Samsung gear 360, which records video at 2560x1280 at 60fps.
Wondering if this software can be used for our camera?
Our gear 360 does not have an option for 3840x1920.
hello.
I would appreciate it if you tell me how to solve it.
mkdir build
==================================================================================
cd build
==================================================================================
cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Found OpenCV: /usr/local (found version "4.4.0")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/codes/cpp/fisheyeStitcher/build
==================================================================================
make
Scanning dependencies of target stitcher
[ 25%] Building CXX object CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Mat stitcher::FisheyeStitcher::deform(const cv::Mat&)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:181:51: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::remap(src, dst, m_mls_map_x, m_mls_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:181:51: note: suggested alternative: ‘CV_INLINE’
cv::remap(src, dst, m_mls_map_x, m_mls_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
CV_INLINE
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘void stitcher::FisheyeStitcher::createBlendMask()’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:334:64: error: ‘CV_INTER_LINEAR’ was not declared in this scope
cv::remap(ring_mask, ring_mask_unwarped, m_map_x, m_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:334:64: note: suggested alternative: ‘CV_INLINE’
cv::remap(ring_mask, ring_mask_unwarped, m_map_x, m_map_y, CV_INTER_LINEAR,
^~~~~~~~~~~~~~~
CV_INLINE
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Point2f stitcher::FisheyeStitcher::findMatchLoc(const cv::Mat&, const cv::Mat&, const string&, bool)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:480:24: error: ‘CV_TM_CCORR_NORMED’ was not declared in this scope
int match_method = CV_TM_CCORR_NORMED;
^~~~~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp: In member function ‘cv::Mat stitcher::FisheyeStitcher::stitch(const cv::Mat&, const cv::Mat&)’:
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:957:29: error: ‘CV_INTER_LINEAR’ was not declared in this scope
CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
/home/user/codes/cpp/fisheyeStitcher/src/fisheye_stitcher.cpp:957:29: note: suggested alternative: ‘CV_INLINE’
CV_INTER_LINEAR);
^~~~~~~~~~~~~~~
CV_INLINE
CMakeFiles/stitcher.dir/build.make:62: recipe for target 'CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o' failed
make[2]: *** [CMakeFiles/stitcher.dir/src/fisheye_stitcher.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/stitcher.dir/all' failed
make[1]: *** [CMakeFiles/stitcher.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
thank you.
can this programs stitch two 180°_fisheye image online?
Hi, I know the latest update has been a long while, but still interested to try out your code.
First of all, thanks for publishing.
I try to build you code, but keep getting this issue:
printer@printer-MacBookPro:~/fisheyestitcher/build$ make
[ 50%] Built target stitcher
Scanning dependencies of target fisheyeStitcher
[ 75%] Building CXX object CMakeFiles/fisheyeStitcher.dir/app/stitch.cpp.o
In file included from /home/printer/fisheyestitcher/app/stitch.cpp:9:0:
/home/printer/fisheyestitcher/include/input_parser.hpp:173:10: error: ‘variant’ in namespace ‘std’ does not name a template type
std::variant<bool, std::string> get(Options Opt)
^~~~~~~
/home/printer/fisheyestitcher/app/stitch.cpp: In function ‘int main(int, char**)’:
/home/printer/fisheyestitcher/app/stitch.cpp:20:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
string video_path = std::get(Parser.get(Options::OPT_VIDEO_PATH ));
^~~
/home/printer/fisheyestitcher/app/stitch.cpp:21:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
string out_dir = std::get(Parser.get(Options::OPT_OUTPUT_DIR ));
^~~
/home/printer/fisheyestitcher/app/stitch.cpp:22:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
string image_name = std::get(Parser.get(Options::OPT_IMAGE_NAME ));
^~~
/home/printer/fisheyestitcher/app/stitch.cpp:23:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
string mls_map_path = std::get(Parser.get(Options::OPT_MLSMAP_PATH ));
^~~
/home/printer/fisheyestitcher/app/stitch.cpp:24:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
bool enb_lc = std::get(Parser.get(Options::OPT_ENB_LIGHT_COMPEN));
^~~
/home/printer/fisheyestitcher/app/stitch.cpp:25:51: error: ‘class ffstitcher::InputParser’ has no member named ‘get’
bool enb_ra = std::get(Parser.get(Options::OPT_ENB_REFINE_ALIGN));
^~~
CMakeFiles/fisheyeStitcher.dir/build.make:62: recipe for target 'CMakeFiles/fisheyeStitcher.dir/app/stitch.cpp.o' failed
make[2]: *** [CMakeFiles/fisheyeStitcher.dir/app/stitch.cpp.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/fisheyeStitcher.dir/all' failed
make[1]: *** [CMakeFiles/fisheyeStitcher.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Running Linux 18.04.6
Would you have any idea what is going on here?
Hello. How can we implement the 4096 x 2048 resolution needed for the Gear 360 2017 camera?
Many thanks
if( cidx < first_zero_col || cidx > W_-first_zero_col ) { mask_.at<cv::Vec3b>(cv::Point(cidx,ridx)) = cv::Vec3b(255,255,255); }
line356-line359 in fisheye_stitcher.cpp, cidx is not assigned
Would it be possible, or efficient enough, to have a java version of this code for Android? I'm looking to stitch images instead of videos.
Please add support for 3840x1920 video and 6912 × 3456 photo resolution for MiSphere 360
Does the fisheyestitcher support audio?
it seems the videos I passed thru it lost their audio?
how can I preserve the audio?
could yo tell me how is the files created in "utils" ??
post_find.yml
grid_xd_yd_3840x1920.yml.gz
Please add Mac OS support
Please refer to the references in this post.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.