It is currently Sun Mar 26, 2017 4:15 am


Latest GIMP Scripts & Plug-ins

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 11:22 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1567
Hello there !
LGM 2014 is now over, so it is time to go to work again :hehe

So, today Jérome Boulanger and I have coded a new filter Patterns / Resynthetize texture for the G'MIC plug-in that might interest you.
It basically tries to resynthetize an input texture into an image of arbitrary size. It uses a phase randomization technique in
the Fourier space to achieve the texture synthesis.
After updating your filters (requires at least G'MIC version 1.5.8.0), you should be able to select it and see this :

Attachment:
gmic_resynthetize_texture.png
gmic_resynthetize_texture.png [ 502.9 KiB | Viewed 3117 times ]


You have only two parameters that tell about the desired size of the synthetized output texture.
Below I show an example of what you can achieve with this filter. The input sample textures are not tileable, while the
synthetized outputs are (FFT property). Here, I've just doubled the image size, but of course, you can set any size you want.
Note that it works quite well with micro-textures, but definitely not with macro-textures. You have been warned :)
Also note that the filter is already parallelized, so it should use the multiple cores of your machine when possible.

Attachment:
gmic_resynthetize_texture2.jpg
gmic_resynthetize_texture2.jpg [ 1.63 MiB | Viewed 3117 times ]


Now, it's your turn, if you want to play you are welcome to post what you obtain with this filter and tell us if this can be useful and in which cases.

Enjoy !
:tyspin


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 G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 1:07 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 23, 2012
Posts: 5914
Location: Göteborg at last!
Excellent, thank you very much.

_________________
Image


It only takes 20 years for a liberal to become a conservative without changing a single idea. (Robert Anton Wilson)


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 1:35 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Apr 01, 2012
Posts: 4397
Location: Adelaide, South Australia
Will have to play around with this a bit more.
Do you "have to" have something on your canvas before anything happens? I found I had to.
Image

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 2:00 pm  (#4) 
Offline
GimpChat Member

Joined: Jan 20, 2013
Posts: 5821
Location: roma, italy
Hi David.
I did some trials, but I did not get what expected.
I mean, looking at your examples, it seems the original texture is almost kept, while in my tests it's very distorted.
What did I wrong?
starting size is 128x128, resulting (default) 1024x1024

Attachment:
test1.png
test1.png [ 2.35 MiB | Viewed 3044 times ]


Attachment:
test2.png
test2.png [ 3.09 MiB | Viewed 3044 times ]


Attachment:
test3.png
test3.png [ 3.14 MiB | Viewed 3044 times ]


thanks

_________________
Vanitas vanitatum et omnia vanitas.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 2:58 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1567
Ronounours wrote:
Note that it works quite well with micro-textures, but definitely not with macro-textures. You have been warned :)


dinasset, please provide only micro textures, which means textures with fine grain and no complex patterns (brick walls e.g are complex patterns).
It won't work at all with macro textures. All the textures you provided can be considered as macro-textures.


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 5:29 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 9797
No bricks then; still pretty cool since seamless texture is a side hobby of mine.

SSP below (shameless self promotion; lol). :)

http://lylejk.deviantart.com/gallery/

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Wed Apr 09, 2014 6:05 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2774
another great and useful filter
thank you !!

whats really great about this is, you get organic looking textures, without the synthetic look of a tiled pattern


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 1:20 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Apr 01, 2012
Posts: 4397
Location: Adelaide, South Australia
I ran this filter over most of my patterns to see what would happen.
Image

_________________
Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 2:20 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 9797
Anyway possible to add a patch size slider so that we can choose a larger patch size for creating the texture? :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New G'MIC filter : 'Patterns / Resynthetize texture'
PostPosted: Thu Apr 10, 2014 6:31 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 591
lylejk wrote:
No bricks then; still pretty cool since seamless texture is a side hobby of mine.

SSP below (shameless self promotion; lol). :)

http://lylejk.deviantart.com/gallery/

lylejk, I took a look in your gallery. The textures are magnificent. Thanks for sharing.

_________________
Image


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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Wood Texture using CML filter

12

No new posts Attachment(s) New G'MIC filter 'Patterns / Weave'

25

No new posts New G'MIC filter 'Patterns / Dithering'

3

No new posts Attachment(s) [G'MIC] New filter 'Patterns / Seamless turbulence'

10

No new posts Patterns from Samj filter Motifs_Aleatoirs

10



* Login  



Powered by phpBB3 © phpBB Group