It is currently Sat Dec 14, 2019 1:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Stitch Images: SIFT
PostPosted: Thu Oct 10, 2019 11:14 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
-----------------------------------------------------------------------------------

Download Stitch Images: SIFT from My PureBasic Stuff

-----------------------------------------------------------------------------------

A standalone OpenCV application (PureBasic Interface to OpenCV not required).

-----------------------------------------------------------------------------------

Tricks 'n' Tips
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB File Embedding
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Stitch Images: SIFT
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Barcode Generator
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

-----------------------------------------------------------------------------------

NOTE: This is the beginning of a work in progress, at some point I will be adding a user interface to access the myriad of available parameters.
- StitchImages_DLL.pb: execute numerous stitching examples from a DLL
- StitchImages_EXE.pb: execute numerous stitching examples from an EXE
- \scripts\CvMat\: contains the program files compiled to DLL / EXE (new version)
- \scripts\IplImage\: contains the program files compiled to DLL / EXE (old version)

-----------------------------------------------------------------------------------

If you're familiar with PureBasic Interface to OpenCV then this stitching technique won't be new, but the results will be.
In order to have a near seamless stitch, a Laplacian blending algorithm is applied during the stitch process.

The following examples from PureBasic Interface to OpenCV were the basis for this project.
- le_stitching_1.pb, le_stitching_2.pb, cv_laplacian_blending.pb

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Wed Oct 23, 2019 8:09 pm, edited 4 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Fri Oct 11, 2019 2:26 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- improved parts of the code
- squashed a couple bugs

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Wed Oct 16, 2019 3:38 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Fri Oct 11, 2019 11:21 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 449
Looks fantastic! Thanks for this. Amazing what you can do with PureBasic.


Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Sun Oct 13, 2019 2:36 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Hi BarryG,

You are most welcome, thank you for commenting.

---------------------------------

Updated:
- switched from IplImage to CvMat
- improved various parts of the code
- squashed a couple bugs

NB*: The IplImage version of the code can be found in the [ scripts ] folder.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Sun Oct 13, 2019 5:39 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Sun Oct 13, 2019 2:48 am 
Offline
Enthusiast
Enthusiast

Joined: Thu Apr 18, 2019 8:17 am
Posts: 449
I used to use a commercial product many years ago to do it, so it's impressive what you've done.


Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Sun Oct 13, 2019 9:34 am 
Offline
Addict
Addict
User avatar

Joined: Sat Feb 19, 2005 2:46 pm
Posts: 1797
Location: Pas-de-Calais, France
So cool ! :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Sun Oct 13, 2019 3:43 pm 
Offline
Addict
Addict

Joined: Fri Nov 09, 2012 11:04 pm
Posts: 1713
Location: Uttoxeter, UK
@JHPJHP,
Nice work.
Thank you, very much. :D

_________________
DE AA EB


Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Mon Oct 14, 2019 6:55 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Hi BarryG,

BarryG wrote:
I used to use a commercial product many years ago to do it, so it's impressive what you've done.

The OpenCV framework and its contributors have done most of the heavy lifting, but thank you for your kind words.

---------------------------------

Hi djes, davido,

As always, I appreciate you taking the time to comment on the work I have done.

---------------------------------

Updated:
- fixed a memory issue

Memory Issue
I originally thought the problem was fixed using the Function FreeLibraryAndExitThread; taken from this post by Inf0Byt3.
I later realized that the size set for the image matrix was causing the memory issue.

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Last edited by JHPJHP on Wed Oct 16, 2019 3:45 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Wed Oct 16, 2019 10:12 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Re-Updated:
- added a sizing algorithm
- added cropping
- speed improvements
- added minimal error checking
- squashed a couple bugs

Sizing Algorithm
Large images have the potential to crash the program; images are resized if the total width / height exceeds a set limit.

NB*: The EXE and DLL can now be recompiled directly from the [ scripts ] folder.
- \scripts\CvMat\StitchImages_CvMat_DLL.pb
- \scripts\CvMat\StitchImages_CvMat_EXE.pb

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
 Post subject: Re: Stitch Images: SIFT
PostPosted: Sun Nov 10, 2019 4:12 am 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1597
Updated:
- bug fixes & minor code improvements

Stitched together 4 images...

Without Laplacian Blending / Cropping:
Image

With Laplacian Blending / Cropping:
Image

_________________

I will be unreachable from the forum for an indefinite period; downloads moved to My PureBasic Stuff.
_________________


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: mk-soft, Sirius-2337 and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye