It is currently Thu Apr 25, 2024 2:47 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 145 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next
Author Message
 Post subject: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:30 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Rod just published my last filter, Mosaic Stained Glass (thanks a lot Rod !).
You can download it from "Latest GIMP Scripts & Plug-ins" here above.
The filter has the following prerequisites:
a) Gimp plug-ins
-- plug-in cartoonizer.exe
b) G'MIC filters, and specifically:
-- Repair/Inpaint (holes)
-- Contours/Isophotes
-- Patterns/Cracks
-- Artistic/Bokeh
About the plug-in cartoonizer.exe you can download from here:
cartoonizer.
After a lot of attempts done in trying to get something acceptable (Issabella knows all my steps, and from time to time I posted some outcome in Gimp-chat) IMO this last version creates acceptable outcomes in general.
Problematic can be very detailed source images, because as you know Stained Glass simplify the contents, but normal or simple images create quite good results.
As usual, this filter has been tested extensively by Issabella (thanks, my friend!), and she will post some of the many outcomes she got during the tests.
Hope you enjoy it
Download from this page - http://gimpscripts.com/2016/03/mosaic-stained-glass/
edit: once downloaded it goes under menu: Diego / Artistic

Note: it requires also
Bevel Reflect Logo.scm
http://gimpscripts.com/2014/02/bevel-reflect-logo/
which requires:
ML Bevel Reflect
http://gimpscripts.com/2014/01/ml-bevel-reflect/

thanks MareroQ for underlying that

_________________
"Where am I ?"


Last edited by dinasset on Sun Mar 13, 2016 4:50 am, edited 2 times in total.

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: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:36 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
You know it's my pleasure to test your nice filters, Dinasset. :)
I'll post some of the results with this nice filter. :)


Attachments:
795bc25_MosaictainedGlass-D.N.jpg
795bc25_MosaictainedGlass-D.N.jpg [ 1.6 MiB | Viewed 8390 times ]
fondo_hd_jennifer_MosaicStainedGlass-D.N.jpg
fondo_hd_jennifer_MosaicStainedGlass-D.N.jpg [ 1.86 MiB | Viewed 8390 times ]
Flower_MosaicStainedGlass-D.N.jpg
Flower_MosaicStainedGlass-D.N.jpg [ 2.59 MiB | Viewed 8390 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:38 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
:) A few more...


Attachments:
pink-flower_MosaicStainedGlass-D.N.jpg
pink-flower_MosaicStainedGlass-D.N.jpg [ 1.29 MiB | Viewed 8387 times ]
IMG_4030-MosaicStainedGlass-D.N.JPG
IMG_4030-MosaicStainedGlass-D.N.JPG [ 3.26 MiB | Viewed 8387 times ]
fpx052507-15-MosaicStainedGlass-D.N.jpg
fpx052507-15-MosaicStainedGlass-D.N.jpg [ 2.98 MiB | Viewed 8387 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:40 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
and these.


Attachments:
Childhood_MosaicStainedGlass-Default.jpg
Childhood_MosaicStainedGlass-Default.jpg [ 2.92 MiB | Viewed 8386 times ]
Caballo-Fino_MosaicStainedGlass-Default.jpg
Caballo-Fino_MosaicStainedGlass-Default.jpg [ 1.42 MiB | Viewed 8386 times ]
3069140631_MosaicStainedGlass-Default.jpg
3069140631_MosaicStainedGlass-Default.jpg [ 3.7 MiB | Viewed 8386 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:43 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
Thank you Dinasset for your hard work, but it's great! :clap


Attachments:
Rostros-Mujeres_MosaicStainedGlass-D.N.jpg
Rostros-Mujeres_MosaicStainedGlass-D.N.jpg [ 2.66 MiB | Viewed 8384 times ]
j2_MosaicStainedGlass-D.N.jpg
j2_MosaicStainedGlass-D.N.jpg [ 1.69 MiB | Viewed 8384 times ]
bf41b2ac0050_MosaicStainedGlass-D.N.JPG
bf41b2ac0050_MosaicStainedGlass-D.N.JPG [ 2.77 MiB | Viewed 8384 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:49 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
the filter, as default, makes use of two patterns:
Attachment:
Glasstic_8.pat [2.32 MiB]
Downloaded 330 times

Attachment:
gold-32246.pat [768.03 KiB]
Downloaded 293 times


obviously, you may select other ones, when you execute the filter, but to avoid "not found" msg related to the defaults, just install the two I attached here

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:54 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
my "traditional" winter scene...
Attachment:
1979_Dia_194_MosaicStainedGlass.jpg
1979_Dia_194_MosaicStainedGlass.jpg [ 1014.36 KiB | Viewed 8377 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 12:59 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
for those who like to know details of the implementation:

Flow implemented to get the final result:

1. Create the work image :
# on the basis of the input image size and the desired tile size
# the tile size is created almost fixed 10*10 pixels in the work image
# thus the work image size is reduced according to the desired tile size / 10
2. Stretch the colours using an ancillary function (embedded)
3. Remove too dark pixels (0 set to 16) to have always enough contrast with the grid
4. Add a Layer (duplicate BG) and perform some preprocessing:
# a large blur (24, 48)
# the cartoonized plug-in with removal of small areas
# the G'MIC Inpaint Holes with additional removal of small areas
5. Add a Layer (duplicate preprocessed layer) and run G'MIC Isophotes with flat colours as BG
6. Add a Layer (duplicate preprocessed layer) and run G'MIC Isophotes with transparent BG
and filter to have only black or transparent pixels using an ancillary function (embedded)
7. Add a new Layer and fill it with a yellow colour
8. Prepare the array of present colours using an ancillary function (embedded)
9. Create a work brush of 1 pixel with max specing (1000 which corresponds to 10 pixels)
10.Using the Colour Isophotes Layer as base, loop on the array of colours and for each one:
# convert the selection to a path and stroke it to have the contours
# aspply G'MIC Cracks on the working yellow layer to get the cracks on the specific selected area
11.Remove the yellow bg from the fully cracked layer and fill the grid with a dark bluish colour
12.Add Layers for colour embellishment:
# a layer filled with a plasma (overlay)
# a layer filled with a gradient (overlay)
# a layer filled with G'MIC Bokeh (hardlight)
# a layer filled with a sky gradient (dissolve), setting the light origin where selected by the user
13.Apply a bevel effect on the tiles in the Crack Layer 12.Create a new layer combining the whole grid
14.Reduce opacity of the Colour Isophote Layer
15.Create a new layer and add a border
16.Apply to the border the Metal pattern selected by the user
17.Upscale the Work image, to generate the Final Outcome
18.Flatten the image is asked by the user

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 1:50 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
...and my (also traditional) red rose

Attachment:
red-rose-MosaicStainedGlass.jpg
red-rose-MosaicStainedGlass.jpg [ 1.41 MiB | Viewed 8335 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 2:10 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12658
Location: Spain, Aragón
I applied it on these too. :)


Attachments:
456585-1_b-MosaicStainedGlass-D.N.jpg
456585-1_b-MosaicStainedGlass-D.N.jpg [ 1.3 MiB | Viewed 8328 times ]
Raffaello,_madonna_sistina_MosaicStainedGlass-D.N.jpg
Raffaello,_madonna_sistina_MosaicStainedGlass-D.N.jpg [ 1.03 MiB | Viewed 8328 times ]
120894_MosaicStainedGlass-D.N.jpg
120894_MosaicStainedGlass-D.N.jpg [ 1.44 MiB | Viewed 8328 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 2:44 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: Oct 02, 2014
Posts: 4418
Location: Sydney Australia
Dinasset & Issabella - thank you for this, yet another great looking filter.

For some reason, right now, I seem to be looking at he world though continually changing coloured glass windows ... :hehe

_________________
Image

Respect should be offered freely but hard earned


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 9:18 pm  (#12) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
I have always liked the look of stained glass. Thank you for this filter! I admit I did have some problems. My first couple attempts with different images were all to dark, even if I lightened them first or tried with different layers after. They must have just been wrong for this type of filter. I even tried different patterns for the filter. Once it crashed my program. It was a slightly larger photo. Is there a size limit? On this one I just used the defaults and it came out much better. I did turn off a layer or two as too much gold glitter over the elephant.
Attachment:
DN Stained.PuddlePlay.png
DN Stained.PuddlePlay.png [ 2.3 MiB | Viewed 1187 times ]


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 9:39 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Pat for your attempts.
Could you post here a couple of pictures (*) for which you didn't get a reasonable outcome?
It can help me in better understanding the weaknesses of the filter.

edit: (*) I mean the originals

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 10:36 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Dec 10, 2013
Posts: 1004
dinasset and Issabella, outstanding and beautiful work. Wishing there were a way to make this work on a Mac.

_________________
Image
Macbook Air - MacOS Sierra 10.12
McGimp 2.8.14
G'mic 1.6.5


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 10:43 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
thanks Dalia, unfortunately I do not know which has to be changed to have it work on a Mac, maybe some Mac user can help?

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 10:47 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
a carousel of outcomes possible starting from the same source:
Attachment:
DSCF0707.JPG
DSCF0707.JPG [ 1.4 MiB | Viewed 1182 times ]


defaults:
Attachment:
DSCF0707_SG00.JPG
DSCF0707_SG00.JPG [ 1.46 MiB | Viewed 1182 times ]


variation 1:
Attachment:
DSCF0707_SG01.JPG
DSCF0707_SG01.JPG [ 949.03 KiB | Viewed 1182 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 10:51 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
variation2:
Attachment:
DSCF0707_SG02.JPG
DSCF0707_SG02.JPG [ 1.51 MiB | Viewed 1182 times ]


variation3:
Attachment:
DSCF0707_SG03.JPG
DSCF0707_SG03.JPG [ 6 MiB | Viewed 1182 times ]


variation4:
Attachment:
DSCF0707_SG04.JPG
DSCF0707_SG04.JPG [ 1.34 MiB | Viewed 1182 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Thu Mar 10, 2016 11:19 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
variation 5:
Attachment:
DSCF0707_SG05.JPG
DSCF0707_SG05.JPG [ 4.01 MiB | Viewed 1179 times ]


variation 6:
Attachment:
DSCF0707_SG06.JPG
DSCF0707_SG06.JPG [ 5.16 MiB | Viewed 1179 times ]


variation 7:
Attachment:
DSCF0707_SG07.JPG
DSCF0707_SG07.JPG [ 2.16 MiB | Viewed 1179 times ]


...fantasy is the limit (in addition of course to the limits of the filter itself)

_________________
"Where am I ?"


Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Fri Mar 11, 2016 1:09 am  (#19) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
I have a few of the photos that were not satisfactory with this filter. I must say that after my computer was off for a few hours and then I tried the same photos again, they were improved but not to my liking. I may still have some computer problems.


Attachments:
picasso23.jpg
picasso23.jpg [ 58.5 KiB | Viewed 1172 times ]
ingwe_s_domain_by_fuz_caforio_art-d9c15k4.jpg
ingwe_s_domain_by_fuz_caforio_art-d9c15k4.jpg [ 229.23 KiB | Viewed 1172 times ]
Abraham_Pether_-_Evening_scene_with_full_moon_and_persons_(1801).jpg
Abraham_Pether_-_Evening_scene_with_full_moon_and_persons_(1801).jpg [ 1.26 MiB | Viewed 1172 times ]
Top
 Post subject: Re: new python filter for STAINED GLASS
PostPosted: Fri Mar 11, 2016 1:27 am  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
first attempt on Picasso: changed tilesize to 10, colours to 9
you may change other parameters at your taste, but the image in itself sounds quite acceptable to me
Attachment:
picasso23_SG-col9tile10.jpg
picasso23_SG-col9tile10.jpg [ 1.43 MiB | Viewed 1170 times ]

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 145 posts ]  Go to page 1, 2, 3, 4, 5 ... 8  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Stained Glass (well almost).

4

No new posts Coleus Stained Glass

9

No new posts Attachment(s) GEGL Stained Glass Tile theory (concept not a plugin yet)

0

No new posts Attachment(s) How to call a python filter to run interactively

10

No new posts Attachment(s) Python calling G'MIC filter? (Solved)

4



* Login  



Powered by phpBB3 © phpBB Group