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


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 20 posts ] 
Author Message
 Post subject: Full image convolution
PostPosted: Thu Mar 27, 2014 9:56 pm  (#1) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Sup every1, i'm wondering if there is a plugin, or perhaps some free standing application, that lets you use an entire image as convolution matrix? Or at least some images to demonstrate what the result of this might look like? I'm especially interested in using an image to convolute itself, but combining different images may give good results too. If there isn't one already, this would be a really good thing for someone here with plugin programming skills to try.....


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: Full image convolution
PostPosted: Thu Mar 27, 2014 10:18 pm  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
Do you mean using a kernel like this filter?
Filters → Generic → Convolution Matrix.
8.2. Convolution Matrix

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


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Mar 27, 2014 10:26 pm  (#3) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Yeah, but with an entire image as the matrix, instead of a 5x5 set of pixels...


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Mar 27, 2014 10:46 pm  (#4) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
G'MIC has more options, Contours / Convolve.

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


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Mar 27, 2014 10:51 pm  (#5) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
No idea what you're talking about at all, don't think that has anything to do with it.


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Mar 27, 2014 11:12 pm  (#6) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
G'MIC is a must have plug-in for Gimp.

G'MIC convole info
Command line and GUI in Gimp.

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


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Mar 27, 2014 11:17 pm  (#7) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
The convolution Matrix effects the entire Image as shown below
original image
Image
the simple edge detect matrix used !note the display!
Image
and the result
Image

_________________
Image
No matter how much you push the envelope, it'll still be stationery.


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 4:02 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
The proper way to convolve an image with a big convolution kernel (here another image) is to perform a multiplication in the Fourier domain.
Implementing the direct convolution formula take ages otherwise (indeed, complexity of the explicit convolution is O(w*h*wk*hk)), where w,h is the size of your image and wk,hk the size of the convolution kernel.
There is one command in G'MIC that computes the convolution between two images, through the Fourier transform, but no filters for the plug-in for GIMP that uses this command actually.
It usually doesn't give very interesting results (from an artistic point of view). Below are some examples of convolutions of an image with another images.
The results have been normalized in [0-255] to make them visible.

Attachment:
autoconvolution1.jpg
autoconvolution1.jpg [ 2.5 MiB | Viewed 4289 times ]


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 1:42 pm  (#9) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Okay, so what would i need to perform this myself?


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 2:29 pm  (#10) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
Do you have GMIC installed?

_________________
Image


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 4:16 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
1. Install the G'MIC plug-in for GIMP.
2. Open two images as two different layers.
3. Open G'MIC dialog, press the 'Update filters' button.
4. Go to 'Testing / Ronounours / Convolve fft'.
5. Select 'Input Layers' -> 'All'.
6. Click 'OK', you should get your convolved result.

Attachment:
gmic_convolve_fft.png
gmic_convolve_fft.png [ 119.7 KiB | Viewed 1553 times ]


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 8:13 pm  (#12) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Ronounours wrote:
4. Go to 'Testing / Ronounours / Convolve fft'.
Attachment:
gmic_convolve_fft.png


It's not there... i find a bunch of others under "Ronounours" but not that particular ones..... is there no simple convolution utility that doesn't use FFT though?


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 8:28 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Mar 10, 2014
Posts: 845
the new filter is working after the refresh button in Gmic


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Mar 28, 2014 10:17 pm  (#14) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Well, that took a lot of work, but i've finally gotten some results out of this! There is definitely a lot to improve here, both in result and the rather cumbersome process, and while my attempt to do it with various photos turned out rather disappointing, these pictures should be enough to prove that there is real potential to be found here.

Wondering what the source images were? To paraphrase an old song.... your guess is just as good as mine, and probably the same!

Image

Image

Image


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Apr 03, 2014 1:48 pm  (#15) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
No more comments?


Top
 Post subject: Re: Full image convolution
PostPosted: Fri Apr 18, 2014 9:56 pm  (#16) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Alright, i've finally started to grasp how to get any useful results of this. There's still a lot of things to be improved, and i discovered another way to get the same effect without using this plugin at all, but for now i won't go through all of it. The effects are esoteric to say the least, but at least some seem to be pretty much what i've been looking for. I'm not sure anyone here is even interested at all, but i could detail exactly how i made these images if you are curious. Here's some examples:

Image

Image

Image

Image

Image

Image

Image

Image

Image

Image

And here's the full set of pictures i've made so far.... over 100 pics in two days!

http://www.mediafire.com/download/6dozui86skcrhnu


Top
 Post subject: Re: Full image convolution
PostPosted: Thu Jun 12, 2014 5:01 pm  (#17) 
Offline
GimpChat Member

Joined: Mar 27, 2014
Posts: 9
Giving this one last bump, to see if anyone wants to know how i made these pics...


Top
 Post subject: Re: Full image convolution
PostPosted: Mon Aug 04, 2014 10:24 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Apr 11, 2013
Posts: 57
Location: Scotland, Isle of Arran
Obviously not.

_________________
Kubuntu 14.04, 14.10, Monitor HP ZR30w, Scanner Epson V300 photo


Top
 Post subject: Re: Full image convolution
PostPosted: Mon Aug 04, 2014 10:25 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Apr 11, 2013
Posts: 57
Location: Scotland, Isle of Arran
Obviously not. :clap

_________________
Kubuntu 14.04, 14.10, Monitor HP ZR30w, Scanner Epson V300 photo


Top
 Post subject: Re: Full image convolution
PostPosted: Mon Aug 04, 2014 10:44 am  (#20) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
There is no sense of being rude. That won't get you anywhere.
There are not too many people on line right now if you care to look. If you use some patience I am sure someone will be very interested in what you are doing, and would very likely want to see how you did them.

_________________
Image


Top
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Flower Full of Beads

6

No new posts Full body Wilber

6

No new posts Attachment(s) Can't Get GIMP to Be Full Screen

8

No new posts Attachment(s) Wanted Part-time/full-time Moderators

64

No new posts Full House/Fuller House Dad, Bob Saget has died.

0


cron

* Login  



Powered by phpBB3 © phpBB Group