It is currently Fri May 03, 2024 1:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 124 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:28 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
This thread supersedes the previous one concerning my experiments.
After various tests I decided to publish the "official" filter.

===========================================

Plug-in Title : "PointillismEffects"
Gimp Menu : "<Image>/Diego/Artistic"
Release : 1.0 (initial)
Author : Diego Nassetti (dinasset@gimpchat.com)
Licence : GNU General Public License

System Environment used in development
--------------------------------------
Platform : Windows 10 64-bits
Graphic Apps : Gimp 2.8.16
Language : python as included in Gimp

Extrn Filters : (Gimp) LumaInvert (script-fu-invert-YUV.scm by "Stratadrake")
(Gimp) Gimpressionist (additional Presets defined)
(G'MIC) none

Summary
-------
Filter to implement the creation on a NEW IMAGE (dimension is a user option)
starting from an RGB* input image/drawable; the core function
works on a duplicated layer replacing each pixel with a (quasi)random colored pixel
having more or less the same average luminosity of the original.
Filter has been inspired by Gimp-chat thread "interesting but not what i'd expected"
by trandoductin.


Details
-------
Flow implemented to get the final result:

1. calculate the new image width and height scale for the output (user choice for dimensions)
2. save and set-up context values
3. create the new image by appropriately scaling the input image dimensions
4. create the BG layer for the new image by copying the input layer, scaled
5. add alpha to the layer is not present
6. add a preliminary preprocessing to normalize (people) or partially equalize (others) the colours
7. create a new layer (dup of the BG) for random pixels
8. transform this layer using an ancillary function (using tiles to be fast)
source values are exaluated multiplying values by 1+luma factors
a threshold is established to identify the prevailing colour
(colours different of less than the threshold are considered equal)
each pixel is replaced (partially) by a random colour chosen among the "surrounding" colours (a triplet)
e.g. a source pixel with a prevailing cyan colour is replaced by a cyan, green or blue nuance
9. create a copy and apply a GIMPressionist effect (preset is a user choice)
10 .the created painted layer is submitted to a partial retinex effect
11. raise BG to the top (grain-merge)
12. again (softlight)
13. dup but invert YUV
14. visible layer on top, excluding the bottom BG
15. apply a curve to the values, after desaturation
15. flatten the image is requested

Acknowledgments
---------------
Previous experimental release has been tested by Issabella, Marek, Dalia, Pat, Animicule
outcomes/comments helped in making the improvements implemented in current release


==================================================================================================

----------------------------------------------------------------
COPYRIGHT NOTICE
----------------------------------------------------------------

This program is free software you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program if not, you can view the GNU General Public
License version 3 at the web site http://www.gnu.org/licenses/gpl-3.0.html
Alternatively you can write to the Free Software Foundation, Inc., 675 Mass
Ave, Cambridge, MA 02139, USA.

------------------------------------------------------------------------------------------------------
other info:

for those who have tested my experimental previous release
these are the main differences:
a) new parameter "Strength" allows the user to choose between:
low : suitable particularly for portraits
high : for the generality of the images
(including portraits for those who like the effect)
b) new preset selection method (search for a file) allows the user
to choose between:
user defined presets (like those attached or others)
Win users find them usually under (user)/gimp-2.x/Gimpressionist/Presets
std GIMPressionist presets
Win users find them usually under C:/Program Files/GIMP 2/share/gimp/2.0/gimpressionist/Presets
click over the parameter and browse either folder
c) new parameter "Paint layer mode" allows the user to choose the combination
of the GIMPressionist painting layer and the Pointillistic layer among:
normal : standard mix
softlight : increases the colour
color : diminishes the contrast
saturation : increases the lightness
darken only : increases the structure

suggestions for further personalize the outcome:

the outcomes when using the "low" strength show usually very "moderate" effects
hence likely they do not need special treatments
the outcomes when using the "high" strength may be easily modified by operating
on the opacity of the top layer
if the user likes to modify modes and opacity of the lower layers it is suggested
to set off the visibility of the 2 top layers then recreate the "now visible" layer
after the modifications
-------------------------------------------------------------------------------------------------------


attachments:
initial release of the filter
Attachment:
DIEGO_ARTISTIC_PointillismEffects.7z [6.42 KiB]
Downloaded 216 times

initial set of GIMPressionist presets
Attachment:
Presets.7z [1.8 KiB]
Downloaded 197 times

_________________
"Where am I ?"


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 filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:34 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 10:47 pm, edited 1 time in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:37 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 1:46 pm, edited 1 time in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:40 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 10:50 pm, edited 1 time in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:42 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 1:47 pm, edited 1 time in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:44 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 10:51 pm, edited 2 times in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 4:47 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
removed

_________________
"Where am I ?"


Last edited by dinasset on Sat Aug 06, 2016 10:53 pm, edited 2 times in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 10:35 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
image by Meemaw

Attachment:
Tiger (pointillistic-strong).jpg
Tiger (pointillistic-strong).jpg [ 2.76 MiB | Viewed 3499 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 10:55 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
soft and strong effects

Attachment:
VM_vrouwen172groot (pointillistic-soft).jpg
VM_vrouwen172groot (pointillistic-soft).jpg [ 842.08 KiB | Viewed 3496 times ]

Attachment:
VM_vrouwen172groot (pointillistic-strong).jpg
VM_vrouwen172groot (pointillistic-strong).jpg [ 3.01 MiB | Viewed 3496 times ]


and (why not?) 50-50
Attachment:
VM_vrouwen172groot (pointillistic-50-50).jpg
VM_vrouwen172groot (pointillistic-50-50).jpg [ 2.14 MiB | Viewed 3496 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 11:19 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jun 06, 2016
Posts: 1033
I like this new version!!!


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 12:51 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
Do you have to have 2 layers for this script to work? I ask because I get errors when I run it.


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 1:33 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
which error do you get mackenzieh?
I always run it with a single layer (RGB)

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 1:35 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
if not against your privacy, can you post the image you want to test?

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 1:38 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
there are info messages displayed concerning the pixel nuances processed and the gimpressionist preset used
but these are just INFO messages

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 1:42 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
these is an example of the info messages you get

Attachment:
CatturaInfo.PNG
CatturaInfo.PNG [ 16.81 KiB | Viewed 1106 times ]


they tell you what I said on my previous post

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 1:48 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
animicule wrote:
I like this new version!!!

thanks, can it be another toy to play with?

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 2:28 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
dinasset wrote:
these is an example of the info messages you get

Attachment:
CatturaInfo.PNG


they tell you what I said on my previous post


Those errors in the image that you posted is what I see when I run the script.

Here is the photo I use
Image

I also get these errors:
Image

My initial question wasn't answered. Does this script need 2 layers to work?


Last edited by mackenzieh on Thu Aug 04, 2016 2:42 pm, edited 1 time in total.

Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 2:30 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
OK, they aren't errors but info messages

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 2:39 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
your image, "half and half"

Attachment:
2912_nataliasoapnetcommercial%20006 (pointillistic-50-50).jpg
2912_nataliasoapnetcommercial%20006 (pointillistic-50-50).jpg [ 1.86 MiB | Viewed 1100 times ]


(adjusted ratio W/H before applying the filter twice, then mixing)

_________________
"Where am I ?"


Top
 Post subject: Re: new filter "PointillismEffects"
PostPosted: Thu Aug 04, 2016 3:02 pm  (#20) 
Offline
GimpChat Member
User avatar

Joined: Jul 06, 2013
Posts: 2606
Location: California
dinasset wrote:
your image, "half and half"

Attachment:
2912_nataliasoapnetcommercial%20006 (pointillistic-50-50).jpg


(adjusted ratio W/H before applying the filter twice, then mixing)


I still get errors. Check my edited post. Post number 17.


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

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) Carve.. filter

3

No new posts Attachment(s) Made with new filter in G'mic

23

No new posts Attachment(s) what filter might help with this image?

7

No new posts Attachment(s) My last Aquarelle filter

21



* Login  



Powered by phpBB3 © phpBB Group