Ask Your Question
1

Stitching images with high resolution

asked 2018-04-10 02:53:52 -0500

Mereth gravatar image

updated 2018-04-10 02:57:58 -0500

I'm trying to stitch 2 images with resolution 3000x4000 using Stitcher class and it just crashes. I tried to use multiple parameters, sometimes it says insufficient memory and sometimes it just crashes instantly.

I uploaded my images so you could see what i'm trying to stitch.

top image

bottom image

Could you please tell me if it's possible to stitch them? If so how?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-04-10 05:27:52 -0500

LBerger gravatar image

Using Stitcher class I don't know but using stitching_detailed you can try :

stitching_detailed.exe 1.jpg 2.jpg --match_conf 0.1 --conf_thresh 0.1

My graphics cards is out of memory if i use opencl : disable opencl in source file ocl::setUseOpenCL(false);

Image size is 31446x15724

After resize and crop you get :

image description

results are :

Finding features...
Features in image #1: 1291
Features in image #2: 2465
Finding features, time: 0.454503 sec
Pairwise matchingPairwise matching, time: 0.100543 sec
Initial camera intrinsics #1:
K:
[956.5549779665724, 0, 335.5;
 0, 956.5549779665724, 447;
 0, 0, 1]
R:
[1, 0, 0;
 0, 1, 0;
 0, 0, 1]
Initial camera intrinsics #2:
K:
[956.5549779665724, 0, 335.5;
 0, 956.5549779665724, 447;
 0, 0, 1]
R:
[0.90496391, -0.18025631, -0.024394969;
 0.30387831, 0.75238615, 0.38654971;
 -0.019029038, -0.42045993, 0.79450226]
Camera #1:
K:
[1145.872441259748, 0, 335.5;
 0, 1145.872441259748, 447;
 0, 0, 1]
R:
[1, 4.0745363e-10, -1.8626451e-09;
 4.0745363e-10, 1, 0;
 -1.8626451e-09, 0, 1]
Camera #2:
K:
[1092.377767623695, 0, 335.5;
 0, 1092.377767623695, 447;
 0, 0, 1]
R:
[0.97137004, -0.23549961, -0.031307407;
 0.23054537, 0.90260893, 0.36351883;
 -0.057350188, -0.36032906, 0.93106067]
Warping images (auxiliary)...
[ INFO:0] Initialize OpenCL runtime...
Warping images, time: 0.587302 sec
Compositing...
Compositing image #1
Multi-band blender, number of bands: 10
Compositing image #2
Compositing, time: 95.1033 sec
Finished, total time: 137.785 sec
edit flag offensive delete link more

Comments

thank you for your help, but i need my stitched result to look differently, just those 2 images combined and final resolution should be about 3000x7000

Mereth gravatar imageMereth ( 2018-04-10 06:00:47 -0500 )edit

"final resolution should be about 3000x7000" no final resolution is not the sum of image size you need to strech image.. I don't think you can get good result with images :

Stitcher class is only a short cut of the entire stitching pipeline. Again your pictures are not panoramic as it is defined in this document p8 or in this link giving by @thdrksdfthmn

LBerger gravatar imageLBerger ( 2018-04-10 06:33:09 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-04-10 02:53:52 -0500

Seen: 351 times

Last updated: Apr 10 '18