It is currently Mon Jul 01, 2024 9:50 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Tile matching script
PostPosted: Fri Jan 19, 2018 1:36 am  (#1) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
Takes a Tile image like this one
Image

Breaks it into tiles and compose a source image such as the famous Mona Lisa.
Image

More details here --> Tile matching Script
Note script has been sped up 8 times (with genius help from ofnuts) but depending on tile size it could still take a really long time to finish an image.

_________________
TinT


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: Tile matching script
PostPosted: Fri Jan 19, 2018 3:29 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
:bigthup How interesting effect. Thank you so much Tin. I'll try it. :cool

_________________
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: Tile matching script
PostPosted: Sun Jan 21, 2018 8:49 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
More results with this nice script. :)


Attachments:
GirlInAHat_Tin_TileMatch_Desaturate_Issa.jpg
GirlInAHat_Tin_TileMatch_Desaturate_Issa.jpg [ 386.96 KiB | Viewed 4883 times ]
GirlInAHat_Tin_TileMatch_Issa.jpg
GirlInAHat_Tin_TileMatch_Issa.jpg [ 578.67 KiB | Viewed 4883 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: Tile matching script
PostPosted: Sun Jan 21, 2018 11:58 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
What happens if you tile the image with itself?

_________________
Image


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jan 21, 2018 12:38 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
Ofnut, I tested your question. I tiled the image with itself and I see the outcome very good, too. :)


Attachments:
children-eyes-blue_Tin_TileMatch_SameTile_Issa.jpg
children-eyes-blue_Tin_TileMatch_SameTile_Issa.jpg [ 70.76 KiB | Viewed 4866 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: Tile matching script
PostPosted: Sun Jan 21, 2018 1:05 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4752
Now we just need Tran to add a random selection of the tiles among several that match "enough".

_________________
Image


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jan 21, 2018 11:11 pm  (#7) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
version 3 of script selects from rotations of tiles and randomly uses the tile that is one of 5 best matches.
But I am testing another version that turns a layer into indexed colors selects by color, then intersect selects with a larger tile like 100pixels so that we get other cool variations in shapes instead of just boring square tiles
Then uses the result of selection and copy from original unindexed colors to just bring out some cool shapes and the search for match is more extensive like it offsets the layers through increments of 10pixels
to find best match since an offsetted tile could potentially look/match better.
But because this version is really slow i mean really really slow.... I am still testing the first image to see if result is worth anything at all.

_________________
TinT


Top
 Post subject: Re: Tile matching script
PostPosted: Sat Jul 04, 2020 7:33 pm  (#8) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
Confetti "Match Forever" plug-in.
Image

More details on this plug-in: https://gimplearn.net/viewtopic.php?f=3&t=2743

_________________
TinT


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jul 05, 2020 12:12 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12531
Sort of a different take of Photo-mosaics; like the results, Tran. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jul 05, 2020 8:10 am  (#10) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
Thanks lylejk
here's result after about 15hrs of infinite looping.
Image

_________________
TinT


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jul 05, 2020 10:25 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
Thanks Tim. Your result is innovative and artistic.
Mine is in its 8th hour I hope it comes finally well. :hehe

_________________
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: Tile matching script
PostPosted: Sun Jul 05, 2020 10:35 am  (#12) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
Issabella, It'll never finish, if you want to see what it has right now: select the image that plug-in is running on and duplicate image, then on duplicated copy you can change the layer mode of "collage" layer to NORMAL (if it's in DIFFERENCE mode) and you can see what it has so far.

_________________
TinT


Top
 Post subject: Re: Tile matching script
PostPosted: Sun Jul 05, 2020 12:23 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12705
Location: Spain, Aragón
Thank you Tim. It's impposible to select the layer to make a copy it's constantly moving. :hehe
Here what is so far. :roll:


Attachments:
girl-4865454_AtNormalLayerMode_Issa.jpg
girl-4865454_AtNormalLayerMode_Issa.jpg [ 486.97 KiB | Viewed 1410 times ]
girl-4865454_AtDifferenceLayerMode_Issa.jpg
girl-4865454_AtDifferenceLayerMode_Issa.jpg [ 472.49 KiB | Viewed 1410 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: Tile matching script
PostPosted: Sun Jul 05, 2020 12:45 pm  (#14) 
Offline
Script Coder
User avatar

Joined: May 07, 2014
Posts: 4001
Location: Canada
No don't try to copy the layer but DUPLICATE IMAGE that way you'll get a whole new image to check results on, and script will run on original image without interference.
If you try to duplicate layer on the working copy that the plug-in is running on, the plug-in will probably produce wrong results since it's constantly trying to add/remove layers and changing modes....so that's a NO NO.... remember Image->Duplicate to Duplicate image to get a non changing copy to check results on.

_________________
TinT


Top
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Matching my Phone Camera's 'Brightness' Adjustment

1

No new posts Attachment(s) Create a Scrabble Tile Text (adapted from a Illustrator tut)

3

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

0

No new posts Attachment(s) Looking for Script Coder to make Script of my VHS effect

2

No new posts Attachment(s) A liitle Start Help with a Script-Fu Script

3



* Login  



Powered by phpBB3 © phpBB Group