It is currently Thu Apr 25, 2024 10:33 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Voronoi Stipple Approach to Mosaics.
PostPosted: Thu Dec 25, 2014 10:54 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
See attached for quick an dirty tutorial.

ref: http://www.fontplay.com/freephotos/2nd5 ... 04-009.jpg

Additional utility required: Voronoi Stippler

Raw Result:

Attachment:
fpfree112604-009.png
fpfree112604-009.png [ 466.77 KiB | Viewed 18055 times ]


Added some Morphology and Local Orientation steps along with grout to add dimension:


Attachments:
Quick and Dirty Voronoi Stipple.pdf [1.35 MiB]
Downloaded 689 times
fpfree112604-009.jpg
fpfree112604-009.jpg [ 759.39 KiB | Viewed 18055 times ]

_________________
Lyle

Psalm 109:8

Image
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Thu Dec 25, 2014 11:20 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thank you Lyle for this tutorial.
This will come in handy for my archviz 3d project. Will replace some of the "oil paintings"
I've made with realistic looking mosaics. :bigthup


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Fri Dec 26, 2014 1:49 am  (#3) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Cheers Lyle!

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Fri Dec 26, 2014 2:00 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks, Lyle!

_________________
"Where am I ?"


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Fri Dec 26, 2014 9:42 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
Thank you!

MosaiCat
Image


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Sat Dec 27, 2014 1:43 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Thank you Lyle for this tutorial.
Only for convenience - launches Voronoi with GIMP menu.

VoronoiShwith.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Voronoi: http://www.saliences.com/projects/npr/stippling/index.html
# Only for convenience - launches Voronoi with GIMP menu: http://gimpchat.com/viewtopic.php?f=10&t=11690
# Example code by Lylejk: voronoi.exe -s 8000 -t .2 -n wilber.png wilber.svg
# The idea taken from Rob Antonishen - Shellout: http://registry.gimp.org/node/24977

'''
License:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
The GNU Public License is available at
http://www.gnu.org/copyleft/gpl.html
'''
from gimpfu import *
import shlex
import subprocess
import os, sys
import tempfile

def plugin_main(img, drawable):
  command = "\"C:\\voronoi\\vor.bat\""   # << - EDIT path to the directory of the program: voronoi.exe, vor.bat, stippler.dll
  args = shlex.split(command)
  child = subprocess.Popen(args, shell=False)

register(
        "python_fu_voronoi",
       "Only for convenience - launches Voronoi with GIMP menu",   
        "Call voronoi",
        "RobA/Lylejk/MrQ",
        "GPL",
        "2014",
        "<Image>/Tools/Call Voronoi...",
        "*",
        [],
        [],
        plugin_main,
        )

main()


vor.bat
@echo off
echo *** Do Not Close this Window ***
echo Temp File: %1
cd C:/Voronoi                  
start "C:/Voronoi/voronoi.exe"


code.txt
voronoi.exe -s 8000 -t .2 -n wilber.png wilber.svg


Attachments:
vor.png
vor.png [ 552.09 KiB | Viewed 17902 times ]
vorpack.zip [330.5 KiB]
Downloaded 577 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Sat Dec 27, 2014 5:34 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks MareroQ!
Followed your instructions and obtained the voronoi svg version of one of my pictures.
But, just for lazy chatters like me, I like to recall that -until Garry and David will find time to implement a G'MIC mosaic- there is still a very good script from Graechan:
cobblestone-mosaic
the outcomes -even if not totally competitive with Lyle's experiments with Voronoi, Opus musivum et alii- are IMO very pleasant.
Here an example:

Attachment:
DSCF0731_GC-Cobblestone.png
DSCF0731_GC-Cobblestone.png [ 3.7 MiB | Viewed 17885 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Sat Dec 27, 2014 8:57 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
That's cool MareroQ.

Yes, Graechan's Cobblestone Mosaic script is a must have Dinasset. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Mon Dec 29, 2014 2:33 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
A small change in VoronoiShwith.py


Attachments:
VoronoiShwith.png
VoronoiShwith.png [ 26.92 KiB | Viewed 17799 times ]
VoronoiShwith.zip [1.13 KiB]
Downloaded 552 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Sat Dec 15, 2018 2:02 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Small update for Gimp 2.10 and some changes in the plugin interface.

Note: for correct operation, edit (preferably in notepad ++) lines 33,37,44,46,62,96 in the Artistic VoronoiSwitch.py file and line 5 in the vorbw.bat and vorc.bat files to determine the correct path to the directory Voronoi.


Attachments:
Voronoi Step 1.png
Voronoi Step 1.png [ 280.83 KiB | Viewed 14472 times ]
Voronoi Step 2.png
Voronoi Step 2.png [ 507.27 KiB | Viewed 14472 times ]
VoronoiSwitch Win 32bit Gimp 2.10.zip [639.23 KiB]
Downloaded 506 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Mon Oct 12, 2020 12:02 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
New plugin solution [no *. bat] is only available here:
https://www.gimpscripts.net/2020/10/
(required during the gimpscripts.net promotional period) :mrgreen:


Attachments:
VS1.png
VS1.png [ 21.68 KiB | Viewed 4087 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Mon Oct 12, 2020 3:16 pm  (#12) 
Offline
GimpChat Member

Joined: Sep 16, 2020
Posts: 26
Cool effect!


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Mon Oct 12, 2020 3:21 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4047
I'm guessing the patch and fix was applied to 2.10.20 and then the same problem arose in 2.10.22? This is like the 5th or 6th time?

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Tue Oct 13, 2020 2:29 am  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
This bug was only fixed in Gimp-2.10.22 :hehe


Attachments:
Gimp 2-10.20.png
Gimp 2-10.20.png [ 14.11 KiB | Viewed 4053 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Tue Oct 13, 2020 4:20 am  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Thanks MareroQ, this is great. :bigthup
I'm using the voronoi stippler from terminal on Linux, or The Evil Mad Scientist Laboratories StippleGen2.

Attachment:
beauty-model.-voronoi-stippler2.jpg
beauty-model.-voronoi-stippler2.jpg [ 244.1 KiB | Viewed 4044 times ]


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Tue Oct 13, 2020 6:58 am  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Hi Nidhogg.
Unfortunately, I was unable to compile Voronoi Stipple again (requires a different - older version of boost?).
Good thing the old version still works for Win10.
Can you give an exact recipe for Linux?

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Tue Oct 13, 2020 1:13 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Hi MareroQ.
This is what I did to get voronoi stippler to work on Linux.
Note, it was on 18.04 LTS have not tried on 20.04 yet.

sudo apt-get install libboost-dev
sudo apt-get install libboost-all-dev
sudo apt-get install libomp-dev
make

Copied voronoi_stippler to /usr/bin

Then I keep a voronoi folder in home with configured batch files, for example:

#!/bin/sh
voronoi_stippler -n -p 2 -s 8000 -c -t .2 -z 1.0 pics/input.png pics/output.svg


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Tue Oct 13, 2020 10:55 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2246
Location: Poland
Thank You Nidhogg. :hi5

I've updated (compiled) Gimp to version 2.10.22.
I completed the voronoi stippler.py code to the location (user / bin / voronoi_stippler) - and it works in Ubuntu 20.04.
This can be a bit of a hassle - but the console window isn't visible.


Attachments:
Voronoi Stippler Ubuntu_20.04_64bit.zip [83.75 KiB]
Downloaded 169 times
Screenshot_2.png
Screenshot_2.png [ 306.08 KiB | Viewed 3993 times ]
Screenshot_1.png
Screenshot_1.png [ 246.07 KiB | Viewed 3993 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Wed Oct 14, 2020 9:04 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4047
On first use, the plugin produced an error because it couldn't find the voronoi.svg file. Future users need to know that all that they have to do if this happens is run the plugin a second time.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: Voronoi Stipple Approach to Mosaics.
PostPosted: Wed Oct 14, 2020 10:32 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: May 10, 2013
Posts: 1389
Location: FInland
Had to build and compile again for MX Linux. Stipples are awesome! Lyle should enjoy this plug-in.

Attachment:
angry-animal-big-carnivore-302304-voronoi_Stipples.jpg
angry-animal-big-carnivore-302304-voronoi_Stipples.jpg [ 460.93 KiB | Viewed 3946 times ]


Top
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Experiments to approach Ulead Particle

81

No new posts Attachment(s) Voronoi 2.2 for Linux Ubuntu 64bit

1

No new posts Attachment(s) David added Voronoi to the latest GMIC

27

No new posts Attachment(s) My two "Voronoi" filters

25



* Login  



Powered by phpBB3 © phpBB Group