Page 1 of 2

Image Waves: LUT

Posted: Sat May 07, 2016 5:04 am
by JHPJHP

Re: Water Ripples

Posted: Sat May 07, 2016 6:01 am
by idle
very nice, works fine on linux

Re: Water Ripples

Posted: Sat May 07, 2016 6:49 pm
by JHPJHP
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).

Re: Water Ripples

Posted: Sat May 07, 2016 8:31 pm
by walbus
Very nice again !

Re: Water Ripples

Posted: Sat May 07, 2016 10:15 pm
by JHPJHP
Hi walbus,

Thank you, I'm glad you liked it.

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

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

Re: Water Ripples

Posted: Sun May 08, 2016 10:23 am
by Joris
Nicely done.

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

Re: Water Ripples

Posted: Sun May 08, 2016 6:02 pm
by JHPJHP
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.

Re: Image Waves

Posted: Mon May 09, 2016 4:30 pm
by Kwai chang caine
There's even there any words, to describe your splendid and numerous works ??? :oops:
Thanks a lot for sharing 8)

Re: Image Waves

Posted: Tue May 10, 2016 12:01 pm
by JHPJHP
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.

Re: Image Waves

Posted: Tue May 10, 2016 3:31 pm
by applePi
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

Re: Image Waves

Posted: Tue May 10, 2016 7:46 pm
by JHPJHP
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.

Re: Image Waves

Posted: Wed May 11, 2016 5:16 am
by wilbert
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.

Re: Image Waves

Posted: Wed May 11, 2016 4:02 pm
by JHPJHP
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.

Re: Image Waves

Posted: Wed May 11, 2016 4:12 pm
by Keya
agree multi-OS demo would be supercool :)

Re: Image Waves

Posted: Wed May 11, 2016 5:25 pm
by wilbert
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 :)