It is currently Tue Jul 23, 2024 4:32 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Scaler Test.
PostPosted: Thu Feb 05, 2015 5:17 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
xBRZ scaling is pretty darn good. Maybe we can get David to add this ability in G'MIC. :)


http://sourceforge.net/projects/xbrz/

Attachment:
Alien.png
Alien.png [ 5.32 KiB | Viewed 4149 times ]


Attachments:
output.png
output.png [ 57.03 KiB | Viewed 4149 times ]

_________________
Lyle

Psalm 109:8

Image
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: Scaler Test.
PostPosted: Thu Feb 05, 2015 7:51 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Lyle this would be 1st on all our wish lists

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


Top
 Post subject: Re: Scaler Test.
PostPosted: Thu Feb 05, 2015 9:02 pm  (#3) 
Offline
GimpChat Member

Joined: Jul 11, 2010
Posts: 349
Would the GMIC filter xBR2x by Garagecoder be w2hat you are looking for?


Top
 Post subject: Re: Scaler Test.
PostPosted: Thu Feb 05, 2015 9:15 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Ah; had no idea it was there. Need to add a 2x,3x,4x,5x slider that this program has and do a better job addressing the stairstep, but Garagecoder's implemention is nice. Thanks for pointing that out bilbo9955. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Scaler Test.
PostPosted: Thu Feb 05, 2015 11:53 pm  (#5) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Lyle to use xBR4x run xBR2x twice as below
Image

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


Top
 Post subject: Re: Scaler Test.
PostPosted: Thu Feb 05, 2015 11:56 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Yes; I did. Still would be cool to have the slider Graechan. Also, note the stair-stepping with the G'MIC implementation. Not sure why that is since the stand-alone program is pretty clean. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 12:35 am  (#7) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Lyle in a script I could repeat the xBR2x filter repetitively until the layer width is greater than or equal to the desired width then scale down to the desired width example below was set to scale to a width of 750
Image

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


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 3:25 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Lyle, xBRZ seems excellent (maybe GC filter also, not compared yet)
but, as far as xBRZ is concerned, during my initial test I didn't find a way to setup output name to be the same as input name, I have always to copy the name before executing xBRZ then replacing with a paste the "output" name
Did you find some parameter default setting to permanently change this behaviour?

edit: made a comparison with GC filter (run twice): seem to be perfectly equivalent!

_________________
"Where am I ?"


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 10:19 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Again, other then the stair-stepping issue, the results pretty good with the G'MIC implementation Dinasset. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 4:56 pm  (#10) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
Actually the way I created gmic xbr2x was a bit of a nightmare (started so had to finish!). As it says on the filter, everything is almost a direct translation of C# source from "imageresizer" (http://code.google.com/p/2dimagefilter/ ... ageResizer) and I happen to not know C#. Also it doesn't include the "blend" option, which might have something to do with the difference in output.

I'm certain it and the other multipliers could be done much more native to gmic, but the algorithm would need a bit of a rethink since it's all based around iterating over a "kernel" which isn't the most efficient way in gmic a lot of the time - I just wanted the output to be correct.

Anyway, yes they could be done but definitely don't count on me to do it! :oops:


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 5:13 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
Thanks for posting GC; other then no multiplier argument, the only thing I see different between the stand-alone and your preset is the stairstepping. Almost straight with the stand-alone, but clearly visible with the G'MIC preset. Don't know if there's some additional processing going on with the stand-alone to straighten the angled lines. Also, with Graechan's second example, I see a clear halo; not sure that is caused by any additional processing that Graechan did. I went ahead and ran the stand-alone twice (x5 then x2) to share that the lines have little aliasing (stair-step) issues). :)


Attachments:
output.png
output.png [ 182.71 KiB | Viewed 1445 times ]

_________________
Lyle

Psalm 109:8

Image
Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 5:22 pm  (#12) 
Offline
GimpChat Member

Joined: Sep 24, 2012
Posts: 275
Location: Scotland
Dang, I hate it when something isn't quite right :D

I might end up having a look but the thought of working it out again makes me shudder, maybe a beer or two will help. Any seasoned gmic filter writer who looks at the code is probably going to run for the nearest tree line!


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 5:27 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12535
lol; no reason to fret GC. Your implementation still gives better results the scale2x algorithm imo. Again, not sure what the stand-alone program does to address the angled line stair-stepping issue. It may not actually be part of the conversion method itself. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: Scaler Test.
PostPosted: Fri Feb 06, 2015 9:04 pm  (#14) 
Offline
GimpChat Member

Joined: Jul 11, 2010
Posts: 349
garagecoder wrote:
Dang, I hate it when something isn't quite right :D

I might end up having a look but the thought of working it out again makes me shudder, maybe a beer or two will help. Any seasoned gmic filter writer who looks at the code is probably going to run for the nearest tree line!


Where do we send the beer to? :mrgreen:


Top
 Post subject: Re: Scaler Test.
PostPosted: Sat Feb 07, 2015 3:41 am  (#15) 
Offline
Script Coder
User avatar

Joined: Feb 18, 2011
Posts: 4827
Location: Bendigo Vic. Australia
Graechan wrote:
Lyle in a script I could repeat the xBR2x filter repetitively until the layer width is greater than or equal to the desired width then scale down to the desired width example below was set to scale to a width of 750

Rescaler if given a new Width or Height size scale the drawable to its new dimensions using garagecoders xBR2x filter in Gmic
Image

; Rel 0.01 - Initial Beta Release

Attachment:
Rescaler.scm [3.16 KiB]
Downloaded 133 times

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


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) pm_create_a_depthmap_image.py (Test)

8

No new posts Jewelry Text Test

8

No new posts Attachment(s) Tree Bark text plugin (test)

5

No new posts Attachment(s) Creating TIF images to generate TV broadcast test signals

0



* Login  



Powered by phpBB3 © phpBB Group