It is currently Tue Jul 23, 2019 12:22 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Image Waves: LUT
PostPosted: Sat May 07, 2016 5:04 am 
Offline
Addict
Addict
User avatar

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

Download Image Waves: LUT from My PureBasic Stuff

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

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
Image Waves: LUT
HTML5 YouTube Player
HTML5 MP4 Player
Barcode Generator
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

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

Based on work I started in PureBasic Interface to OpenCV.

[ Click anywhere on the image to set a new X/Y position, resetting the effect. ]

Image Waves:
- Drag & Drop image uploading
- Press the 'Enter' key to toggle the Wave Map
- Press the 'Spacebar' to trigger the effect from the last location
- Right-mouse-click the display area to open a context menu
-- Open New Image
-- Toggle Wave Map
-- Trigger Waves
-- Open Control Panel
-- Close Image Waves

_________________

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


Last edited by JHPJHP on Thu Jun 06, 2019 7:04 am, edited 47 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Water Ripples
PostPosted: Sat May 07, 2016 6:01 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3379
Location: New Zealand
very nice, works fine on linux


Top
 Profile  
Reply with quote  
 Post subject: Re: Water Ripples
PostPosted: Sat May 07, 2016 6:49 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi idle,

Thank you for your kind words, and for confirming compatibility to the Linux OS.

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

Fixed an issue reported by AAT.

Updated:
- added 1 menu item
-- Open Control Panel: adds the ability to fine-tune the ripple effect

NB*: Settings are save to an ADS (Alternate Data Stream) attached to the default image (only available in the Windows OS).

_________________

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


Last edited by JHPJHP on Mon May 09, 2016 5:02 am, edited 4 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Water Ripples
PostPosted: Sat May 07, 2016 8:31 pm 
Offline
Addict
Addict

Joined: Sat Mar 02, 2013 9:17 am
Posts: 931
Very nice again !

_________________
http://www.nachtoptik.de


Top
 Profile  
Reply with quote  
 Post subject: Re: Water Ripples
PostPosted: Sat May 07, 2016 10:15 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi walbus,

Thank you, I'm glad you liked it.

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

Updated:
- fixed a couple issues with the Control Panel
- added tooltips to the Trackbars

_________________

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: Water Ripples
PostPosted: Sun May 08, 2016 10:23 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Oct 16, 2009 10:12 am
Posts: 570
Location: BE
Nicely done.

I think there is a nice movie in the make... this code, your spider code...

_________________
Yeah I know, but keep in mind ... Leonardo da Vinci was also an autodidact.


Top
 Profile  
Reply with quote  
 Post subject: Re: Water Ripples
PostPosted: Sun May 08, 2016 6:02 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi Joris,

Thank you. I'm not sure about a movie though, unless it's about a programmer who drinks way too much coffee while creating useless programs :lol:

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

Updated:
- added an additional setting to the Control Panel
-- Wave Distance

- refined some settings for a smoother effect

NB*: Renamed the program to Image Waves.

_________________

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: Image Waves
PostPosted: Mon May 09, 2016 4:30 pm 
Offline
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4471
Location: Lyon - France
There's even there any words, to describe your splendid and numerous works ??? :oops:
Thanks a lot for sharing 8)

_________________
ImageThe happiness is a road...
Not a destination


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Tue May 10, 2016 12:01 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi Kwai chang caine,

Thank you for trying the program and posting a comment, it's very much appreciated.

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

Updated:
- applied a few program and cosmetic changes

NB*: To see a slightly altered version try the example cv_water_ripples.pb located in PureBasic Interface to OpenCV.

_________________

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: Image Waves
PostPosted: Tue May 10, 2016 3:31 pm 
Offline
Addict
Addict

Joined: Sun Jun 25, 2006 7:28 pm
Posts: 1343
Thank you JHPJHP for this program and the spiderweb program. i see you convert some programs from the PureBasic Interface to OpenCV to a standalone programs, i think this is good and appreciable, since it is in this way will be available to a more users.
regarding the image waves, i can't change the blue back ground since i barely see the black waves in the wave map section. in fact i am lost trying to figure out where is that canvas background color lines.
thanks for all your efforts


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Tue May 10, 2016 7:46 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi applePi,

You're very much welcome.

You're correct that one of the reasons why I converted the programs from PureBasic Interface to OpenCV was to bring them to more people, but also to bring more people to the interface.

The colors blue and black are a result of the byte-order determined by the OS; Windows is BGR while OSX is RGB. The color value is part of an algorithm used to determine the X/Y displacement, so this cannot be adjusted without affecting the output.

WaveMap / LUT (Lookup Table):
- the declaration in the Procedure BlendWaveAndImageLUT includes the WaveMap image, making a ProcedureReturn statement redundant
- SetWaveMap is one of the variables in the main window loop determining which image is drawn on the CanvasGadget

NB*: The program has been updated removing redundant ProcedureReturn statements, including a few optimizations.

_________________

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: Image Waves
PostPosted: Wed May 11, 2016 5:16 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
JHPJHP wrote:
You're correct that one of the reasons why I converted the programs from PureBasic Interface to OpenCV was to bring them to more people, but also to bring more people to the interface.

It would be great if the interface was cross platform since OpenCV is available not only on Windows but als on OSX and Linux.

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Wed May 11, 2016 4:02 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Oct 09, 2010 3:47 am
Posts: 1572
Hi wilbert,

A cross platform version of PureBasic Interface to OpenCV has been on the back of my mind for awhile. I don't think I would recreate the entire interface (200+ examples), but maybe an OSX and Linux version of PureBasic Interface to OpenCV :: Demo (32bit / 64bit) :?:

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

NB*: The program has been updated with a few optimizations.

_________________

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: Image Waves
PostPosted: Wed May 11, 2016 4:12 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jun 04, 2015 7:10 am
Posts: 1673
agree multi-OS demo would be supercool :)

_________________
Thankyou to all the coders who generously helped & encouraged me in the nearly 2yrs when i was welcome here,
it was a tremendous privilege. I learned a lot. I wish you and your families all the best and success for the future.


Top
 Profile  
Reply with quote  
 Post subject: Re: Image Waves
PostPosted: Wed May 11, 2016 5:25 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Aug 08, 2004 5:21 am
Posts: 3351
Location: Netherlands
JHPJHP wrote:
I don't think I would recreate the entire interface (200+ examples), but maybe an OSX and Linux version of PureBasic Interface to OpenCV :: Demo (32bit / 64bit) :?:

You don't have to recreate all 200+ examples.
If you can do a few cross platform examples and maybe make new examples cross platform, that would already be great :)

_________________
macOS 10.14 Mojave, PB 5.62 x64


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 7 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