It is currently Thu Mar 28, 2024 5:19 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: ~
PostPosted: Sun Aug 31, 2014 9:32 pm  (#1) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:29 pm, edited 2 times 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: Softening Gradient?
PostPosted: Sun Aug 31, 2014 9:43 pm  (#2) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
That's a pretty bad case but there are several smoothing algorithms under the "Repair" menu in G'MIC, which do a pretty good job of gradient smoothing. Anisotropic and its variations, likeThin Brush, have gradient smoothing parameters.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Softening Gradient?
PostPosted: Sun Aug 31, 2014 10:53 pm  (#3) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
Try using Adaptive Supersampling and, if needed, increase the Max Depth and decrease the Threshold.

Image

Image

Preset file for above Tool Preset can be downloaded from http://barn.kerosenecow.net/u/saul/m/su ... eset-af9a/

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Last edited by saulgoode on Mon Sep 01, 2014 1:34 am, edited 2 times in total.

Top
 Post subject: Re: Softening Gradient?
PostPosted: Mon Sep 01, 2014 1:20 am  (#4) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5242
Location: Gimpville
Oops... sorry, Zeo. I thought you were attempting to repair an existing image gradient. I see now that is not the case. Guess that's what I get for skimming your post, rather than reading it. :oops:

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: ~
PostPosted: Mon Sep 01, 2014 6:07 am  (#5) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
~

_________________
~


Last edited by Zeo on Tue Nov 30, 2021 10:30 pm, edited 1 time in total.

Top
 Post subject: Re: Softening Gradient?
PostPosted: Mon Sep 01, 2014 3:38 pm  (#6) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
To fix you gradient, try Filters>Noise>Spread and use a somewhat large value (100px or more).

_________________
Image


Top
 Post subject: Re: Softening Gradient?
PostPosted: Mon Sep 01, 2014 4:58 pm  (#7) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
This is weird. Color banding is so bad in your example - it hurts my eyes :mrgreen: .
I can't reproduce it on 5Kx5K image. But I get exactly the same sort of 'ugliness'
if converted the image with applied gradient to Indexed.
Are you sure your image wasn't at some point converted to indexed (and then maybe back to RGB)?

P.S. Exporting image as .gif automatically converts image to indexed too (without warning you).


Top
 Post subject: Re: Softening Gradient?
PostPosted: Mon Sep 01, 2014 5:29 pm  (#8) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
K1TesseraEna wrote:
This is weird. Color banding is so bad in your example - it hurts my eyes :mrgreen: .
I can't reproduce it on 5Kx5K image. But I get exactly the same sort of 'ugliness'
if converted the image with applied gradient to Indexed.
Are you sure your image wasn't at some point converted to indexed (and then maybe back to RGB)?

P.S. Exporting image as .gif automatically converts image to indexed too (without warning you).

There are only 242 colors in the picture, and the histogram of the RGB channels a bit discretized, so this is likely.

_________________
Image


Top
 Post subject: Re: Softening Gradient?
PostPosted: Mon Sep 01, 2014 10:59 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
ofnuts wrote:

There are only 242 colors in the picture, and the histogram of the RGB channels a bit discretized, so this is likely.


Here comes the verdict scientific proof :mrgreen:

btw, how do you determine the exact amount of colors in rgb image?


Top
 Post subject: Re: Softening Gradient?
PostPosted: Tue Sep 02, 2014 2:12 am  (#10) 
Offline
Script Coder
User avatar

Joined: Apr 23, 2010
Posts: 1553
Location: not from Guildford after all
K1TesseraEna wrote:
btw, how do you determine the exact amount of colors in rgb image?

"Colors->Info->Colorcube Analysis"

_________________
Any sufficiently primitive technology is indistinguishable from a rock.


Top
 Post subject: Re: Softening Gradient?
PostPosted: Tue Sep 02, 2014 6:40 am  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 22, 2012
Posts: 2089
Location: US
Thank you Saul

making use of the 'failed' gradient - recoloring image with
colors from active palette - pretty nice background, isn't it?

Image

gmic>Aurora [hard to believe but there are only 32 unique colors in this one]

Image


Top
 Post subject: Re: Softening Gradient?
PostPosted: Tue Sep 02, 2014 8:27 am  (#12) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
ofnuts wrote:
To fix you gradient, try Filters>Noise>Spread and use a somewhat large value (100px or more).

Oh yeah, I know there is filter somewhere in GimP that can deal with this kind if thing (I'm not using filter much) :yes
After using Filters>Noise>Spread (I use 1000px :hehe ........) and gaussian blur-it about 15 point and I got this kind of result that kinda good, at least normal eyes will not notice it (especially when resized) :

Image

But, I do not recall changing mode to Indexed, but there are something interesting:
If I use 'darker' color the gradient/blend tool will work less noticeable (it's pure black in background)
Image

But if I use 'lighter' color, same setting, the result will have some 'ugliness'
Image

_________________
~


Top
 Post subject: Re: Softening Gradient?
PostPosted: Tue Sep 02, 2014 8:43 am  (#13) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4726
I see artifacts in both... the problem is that due to the 8-bit color depth, which restricts color channels to 256 values, you can have a line in the gradient where the RGB values 'jump' across the line. In which case even small jumps are visible. The spread noise makes the jump happen more randomly and makes it less visible (btw, by doing a blur after the spread noise you are recreating artifacts....).

_________________
Image


Top
 Post subject: Re: Softening Gradient?
PostPosted: Tue Sep 02, 2014 9:29 am  (#14) 
Offline
GimpChat Member

Joined: Apr 29, 2013
Posts: 203
Oh right, I set the noise value too high(1000px)... At 250 px seems enough and I don't need to use gaussian blur... :oops:

Image

So that's 8-bit vs higher color depth, I think I have read about that somewhere... :oops:

_________________
~


Top
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group