Giter VIP home page Giter VIP logo

panorama's Introduction

panorama with MatLab

GitHub - yihui-he/panorama: Image alignment and stitching with MATLAB

https://raw.githubusercontent.com/yihui-he/panorama/master/results/intersection.jpg

https://raw.githubusercontent.com/yihui-he/panorama/master/results/GrandCanyon2.jpg

https://raw.githubusercontent.com/yihui-he/panorama/master/results/redrock.jpg

features

  • able to handle 360 panorama.
  • Random sequence of images input is welcomed.
  • use color blending and smoothing to make the image more continuous.

how to run

Prerequisite: matlab 2014b or higher images sets are already in ./imgs

  • If you want to see results directly, go to ./results folder
  • If you want to test all images sets with only one click,run RunAllDatasets.m.(10 image sets, about 1 minute)
  • If you want to specify the image folder, run main.m with path to images folder as argument as follow:main('./imgs/redrock'); Note that, this currently support image sets in imgs folder. If you use your own image set, you need to set focus length and other parameters in main.m.

360 panorama

  • mapping image to cylindrical coordinatewarp.m

recognize panorama(random inputs)

I select two random sequence images set:family_house, and west_campus1 They are already shuffled. You can see them in imgs folder. Or you can run shuffle.bash to shuffle them again. As described in Brown’s paper, I use $N_inlier>k*N_pairs+b$ to compute whether a pair of images match or not k,b are const. Set to 5.9 and 0.22 respectively. See recognizing panorama for details

imorder.m

merging and blending

  • Alpha
  • Pyramid
  • Noblend

merge.m

transformation

  • homography transformation.
  • translation transformation.( This is more robust)

computeTrans.m

matching

  • RANSAC
  • exposure matching

RANSAC.m

global adjustment

  • end to end adjustment(comput shift and subtract shift/n to each image)
  • bundle adjustment(difficult way)

create.m

getting features

  • use SIFT features(using VLFeat library, professor allowed)
  • SURF features, (SIFT is better)

getSIFTFeatures.m, getMatches.m

resize

  • I resize image larger than 400 pixel in width

main.m

References

A nice tutorial on panorama I find useful.

panorama's People

Contributors

ethanhe42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

panorama's Issues

Big Image Resolution

Hi, this has been really helpful for me. Currently, the output size is 400px. Is it possible to increase the output size to 1524px?

big pixel

My photo pixel is 20 million, the program is always running an error like this:

panorama=main(1);
figure
imshow(panorama);
imwrite(panorama,'stitching.jpg');
creating panorama for ucsb4
resizing14 sec
warping:67 sec
SIFT & RANSAC: 134 sec
end2end alignment:0 sec
Error using /
Out of memory. Type HELP MEMORY for your options.

Error in im2double (line 58)
d = double(img) / range(2);

Error in merge (line 2)
imgs=im2double(imgs);

Error in create (line 65)
newImg = merge(cylindricalimages, absoluteTrans , panorama_h, panorama_w, f);

Error in main (line 59)
panorama=create( imgs, f, full);

模糊问题

您好,最近读了你的算法,觉得您的工作非常的好
但是我使用您的算法,跑出来的图片会有模糊现象,而且图片尺寸也对不上,请问是哪里的问题呢?
这个我对yellowstone4下的子图像进行拼接的结果,尺寸在1156×571
yellowstone4
但是您给出的结果十分的清晰,而且图像尺寸也大得多,尺寸为3624×1172
yellowstone4

Matlab 2017a

RunAllDatasets
索引超出矩阵维度。

出错 run (line 50)
pathscript = evalin('caller', ['which(''' script ''')']);

出错 main (line 31)
run('lib/vlfeat-0.9.20/toolbox/vl_setup');

出错 RunAllDatasets (line 2)
panorama=main(i);

I have some error when i was run main.m file

Index exceeds array bounds.

Error in run (line 55)
pathscript = evalin('caller', strcat('which(''', script, ''')'));

Error in main (line 31)
run('lib/vlfeat-0.9.20/toolbox/vl_setup');

Clarity problem after combining

Hi,
I used my own pictures for combining them, and after combining the result picture doesn't have clarity, even if I changed the focus property.
Can you please help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.