Code covered by the BSD License  

Highlights from
image mosaic using SIFT


4.7 | 11 ratings Rate this file 153 Downloads (last 30 days) File Size: 254 KB File ID: #30849
image thumbnail

image mosaic using SIFT



Automatic image mosaic using SIFT, RANSAC and homography.

| Watch this File

File Information

SIFT is derived from a downloaded binary code 'siftDemoV4.rar'.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (18)
14 Apr 2014 Julia

Maybe someone has matlab code to eliminate camera distortion? This code doesn't do that :(

10 Mar 2014 jacky chen

it's really cool,man,just replace the function isrgb when you are using a new matlab version(R 8.0+)

10 Mar 2014 jacky chen  
26 Jan 2014 Sudaraka

Nice work!

Any idea how to get a fully cropped image? Without the black surroundings? Would be really helpful. Thank you

25 Dec 2013 TCOE

nice wrk. I want detailed explainatiön of code. Any one?

19 Dec 2013 wan

Please give me a detail construction.

19 Dec 2013 wan  
26 Oct 2013 Ahmet

Hi Kyle,

replace "if isrgb(img)" with "if size(img,3)==3" in shift.m

26 Oct 2013 Ahmet

Hi Kyle,

replace "if isrgb(img)" with "if size(img,3)==3" in shift.m

10 Jul 2013 Pallavi Ganotra


If anyone has the m code (or in any other other form) implementation of siftWin32.exe (the SIFT algo), pls upload or email me at

Thanks a lot!

09 May 2013 Roger

function im = appendimages(image1, image2)
i want to know what im is ? A matrix or a image?

28 Feb 2013 TCOE

thank you very much.
but how to generate a mosaic image. i nt getting. plz help

25 Jan 2013 MML

i found it very helpful, thank for sharing :)

24 Jan 2013 MML

thank your for sharing your code.
it proved very helpful to me :)

14 Dec 2012 aurel

Awesome !!! Thank you

30 Sep 2011 suxing

??? Error: File: imMosaic.m Line: 78 Column: 9
Unbalanced or unexpected parenthesis or bracket.
should be written as for Matlab 2009
[M3, N3, ~] = size(img21);
[M2, N2, ~] = size(img21);

12 Jun 2011 Kyle

Warning: isrgb is obsolete and may be removed in the future.
See product release notes for more information.
> In isrgb at 29
In sift at 22
In siftMatch at 18
In imMosaic at 12
In mosaicTest at 12
'siftWin32' is not recognized as an internal or external command,
operable program or batch file.
??? Error using ==> sift at 53
Invalid keypoint file beginning.

Error in ==> siftMatch at 18
[des1, loc1] = sift(img1);

Error in ==> imMosaic at 12
[matchLoc1 matchLoc2] = siftMatch(img1, img2);

Error in ==> mosaicTest at 12
img0 = imMosaic(img2,img1,1);

Any1 know what is wrong?

02 Apr 2011 Yong Zhao

May this file is just an apply of sift. the true sift alg may the siftwin32.exe with no source can learn.

Contact us