It is currently Sat Jul 20, 2024 2:29 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Working on a new filter : "Cellular Distortion"
PostPosted: Sun Jun 24, 2012 2:26 pm  (#1) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Developing a Mathmap filter just as a coding exercise.

It works in a similar but (hopefully more powerful) way to the existing "Mosiac" and "Grid" filters working in combination to produce a pixelated image with a border - a bit like an old TV close up.

It's capable of splitting the image into cells of any size, either square or rectangular, applying a variably sized border and can be used with a selection and/or mask to access some it's more enhanced features.

If there's enough interest I'll release it when I've finished coding/testing it - might be a while as I'm still very much on the learning curve (only been playing with Mathlab for a couple of days).

Have a look at the samples I've generated as I'm debugging it.

Bear in mind the filter has rendered these with no additional work from me in Gimp post render, all I had to do was provide an initial image, a selection/mask in some cases and then play with the sliders :)

Please let me know what you think. What extra features I could add? Like I say I want the coding practice :)

Started with this input image:
Attachment:
orig.png
orig.png [ 24.07 KiB | Viewed 1499 times ]


This is the filters basic output and a "Close Up TV" version some noise and a contrast boost in the filter pipeline..
Attachment:
basic@2x.png
basic@2x.png [ 8.34 KiB | Viewed 1499 times ]
Attachment:
tv@2x.png
tv@2x.png [ 20.25 KiB | Viewed 1499 times ]


More to follow..


Last edited by step7 on Sun Jun 24, 2012 3:23 pm, edited 1 time 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: Working on a new filter : "Cellular Distortion"
PostPosted: Sun Jun 24, 2012 2:36 pm  (#2) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
..Lassoo the background, play with the sliders a bit and things get more interesting..
Attachment:
isolate@2x.png
isolate@2x.png [ 72.42 KiB | Viewed 1492 times ]
Attachment:
dotty@2x.png
dotty@2x.png [ 76.85 KiB | Viewed 1492 times ]
Attachment:
rect backfill@2x.png
rect backfill@2x.png [ 73.81 KiB | Viewed 1492 times ]


More to follow! Sorry about repeated posts but I've done a lot of playing erm.. testing today :)..


Top
 Post subject: Re: Working on a new filter : "Cellular Distortion"
PostPosted: Sun Jun 24, 2012 2:43 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
how you could run mathlab filter on gimp ?

Btw i think some folks here would love circular cells

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: Working on a new filter : "Cellular Distortion"
PostPosted: Sun Jun 24, 2012 2:58 pm  (#4) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
..Option to get rid of "jaggies"..
Attachment:
ripped rough edge@2x.png
ripped rough edge@2x.png [ 51.39 KiB | Viewed 1483 times ]
Attachment:
ripped stepped edge copy@2x.png
ripped stepped edge copy@2x.png [ 45.79 KiB | Viewed 1483 times ]


Ok, to close, I've butchered my original image with the Brush and Colorised in Gimp - what a mess..
Attachment:
matrix@2x.png
matrix@2x.png [ 76.08 KiB | Viewed 1483 times ]


Top
 Post subject: Re: Working on a new filter : "Cellular Distortion"
PostPosted: Sun Jun 24, 2012 3:17 pm  (#5) 
Offline
GimpChat Member

Joined: Jun 21, 2012
Posts: 106
Oops said "Mathlab" instead of Mathmap in my OP. Edited.
I'm running Mathmap 1.3.5 as a Gimp 2.6 Plugin on Windows at the mo.
I don't think there's a standalone version for Windows (put me straight if I'm wrong). I think I'm right in saying the plugin only interprets the filter scripts as opposed to compiling them, so is markedly slower. That's one thing about my Cellular filter - it can really chug. Upto 16x16 pixel cells and it's fine (done in seconds). Crank up the cell size up and it can take minutes to render - this destroys the "creative" flow in Composer, you can't just whiz the sliders around and see what happens. I'll have to work on a fast preview function at some stage.

@Photocomix: Was hoping to provide other shapes including circles, but need to write some proper tessellation code, the grid is just a hack at the moment.

If you could post/link to pictures of what you have in mind with the circles (i.e in terms of how they're packed) it might give my brain a jump start. Meantime I'll go check out Lawnmower Man on IMDB ;)


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) cli345's cartoon filter as a native GEGL Filter.

10

No new posts Attachment(s) Gimpchat not working...

25

No new posts G'MIC version: 2.9.1 not working...?

2

No new posts Attachment(s) Resynthesizer Not Working

2

No new posts Bevel not working

7



* Login  



Powered by phpBB3 © phpBB Group