Advanced Image Scaling

Discussion in 'General Resources' started by BigEd781, Dec 18, 2013.

  1. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
    So, I was spending some time implementing the xBR set of scaling algorithms and I came across this little gem: http://forums.getpaint.net/index.php?/topic/23601-2d-image-scaling-algorithms/


    Looks like I don't need to implement it now... but this program includes the xBR family as well as HQx and many other nifty scaling algorithms. To give you an idea of what xBR allows you to do, take this image:


    dragon_1.PNG


    Here is a typical nearest neighbor scaling next to an xBR 2x2 scaled version:


    (I wish these wouldn't scale down, but I don't have time to mess with it)


    dragon_NN.PNG dragon_xBR.PNG


    Quite a difference. I wanted to implement this algorithm for scaling up SNES style sprites while adding a stylized look.  Figured I would share this find with anyone who hasn't found it for themselves.  Enjoy.
     
    Last edited by a moderator: Dec 18, 2013
    #1
  2. Ralph

    Ralph Retired Badass Restaff Lead

    Messages:
    329
    Likes Received:
    230
    Location:
    RTP
    First Language:
    Fantasy Heroics
    Yay! Now we can be giants! (。・ω・。)ノ♡

    [​IMG]
     
    Last edited by a moderator: Dec 18, 2013
    #2
  3. Ulrika

    Ulrika Ralph's babysitter

    Messages:
    90
    Likes Received:
    30
    First Language:
    Snideness
    TL;DR.
     
    #3
  4. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
     And why did you feel the need to post that?  It's not even long... at all.  Congratulations on achieving a previously unheard of level of intellectual laziness combined with a dazzling display of asshattery.
     
    Last edited by a moderator: Dec 18, 2013
    #4
  5. Ralph

    Ralph Retired Badass Restaff Lead

    Messages:
    329
    Likes Received:
    230
    Location:
    RTP
    First Language:
    Fantasy Heroics
    She's not good at maths (ノД`)・゜・。

    Please don't be mad at her! 〔°︷°〕
     
    Last edited by a moderator: Dec 18, 2013
    #5
  6. Ulrika

    Ulrika Ralph's babysitter

    Messages:
    90
    Likes Received:
    30
    First Language:
    Snideness
    I didn't read that either. All I see is "Blablablabla" can't you put it in layman's terms?
     
    Last edited by a moderator: Dec 18, 2013
    #6
    Archeia likes this.
  7. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
    ...just look at the pretty picture dullard.
     
    #7
    Archeia likes this.
  8. Ulrika

    Ulrika Ralph's babysitter

    Messages:
    90
    Likes Received:
    30
    First Language:
    Snideness
    Yeah, I think you did something wrong, because I see the same 3 pictures. What's up with that?
     
    #8
    Archeia likes this.
  9. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
    ...I will ban you.
     
    Last edited by a moderator: Dec 18, 2013
    #9
    Archeia, Ulrika and Dr.Yami like this.
  10. Ralph

    Ralph Retired Badass Restaff Lead

    Messages:
    329
    Likes Received:
    230
    Location:
    RTP
    First Language:
    Fantasy Heroics
    *drags Ulrika away*
     
    #10
  11. Oscar

    Oscar Manly Dictator

    Messages:
    44
    Likes Received:
    22
    First Language:
    Engrish
    Not if we ban you first.
     
    #11
    Archeia likes this.
  12. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
    Do it.
     
    #12
    Archeia likes this.
  13. Oscar

    Oscar Manly Dictator

    Messages:
    44
    Likes Received:
    22
    First Language:
    Engrish
    Ok I've had a go, did it work are you banned?
     
    #13
  14. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,062
    Location:
    Toronto
    First Language:
    English
    The image on the right seems to have had more than just scaling done to it when I'm looking at it up close (zoomed using a browser). The outlines are much smoother than the original. This is all part of the scaling algorithm?
     
    Last edited by a moderator: Dec 18, 2013
    #14
  15. BigEd781

    BigEd781 undefined method 'stupid_title' found for nil:NilC Veteran

    Messages:
    940
    Likes Received:
    303
    Location:
    Austin, TX
    First Language:
    Dothraki
    Primarily Uses:
    N/A
    Apparently not.

    Well, it's scaling, just like nearest neighbor, bilinear, bicubic, etc. They're all ways to change the size of an image, but each one goes about it in a different way. The research paper I linked to was released a year or two ago. This is a relatively new method and is pretty smart about the way it performs scaling. It's much like the HQx algorithm, but it does better around lines and curves.
     
    Last edited by a moderator: Dec 18, 2013
    #15
  16. BadMinotaur

    BadMinotaur You can do it! Veteran

    Messages:
    260
    Likes Received:
    114
    Location:
    Louisiana
    First Language:
    English
    Primarily Uses:
    RMVXA
    The way the xBR scaled image looks reminds me a lot of Dungeons of Dredmor's entire in-game look.

    For reference, see the attached picture.

    ss_d9be6b09534450fc0e80e0a63dc8cc507ff88588.1920x1080.jpg
     
    #16
  17. GrandmaDeb

    GrandmaDeb Modern Exteriors Posted! Veteran

    Messages:
    4,467
    Likes Received:
    2,876
    Location:
    East Coast, USA
    Ed, you are, as always, amazing. Merry Christmas.

    And, um, thanks for posting such a great resource. Really useful. Wow. And other on topic comments.

    =P
     
    #17
  18. Zeriab

    Zeriab Huggins! Veteran

    Messages:
    1,200
    Likes Received:
    1,253
    First Language:
    English
    Primarily Uses:
    RMXP
    Awesome find!

    Thank you ^^

    *hugs*
     
    #18
  19. inflamer

    inflamer Villager Member

    Messages:
    8
    Likes Received:
    0
    First Language:
    Portuguese
    a script that does that while scaling the game to twice the size would be AMAZING.
     
    #19
  20. Victor Sant

    Victor Sant Veteran Veteran

    Messages:
    1,694
    Likes Received:
    1,434
    Location:
    Brazil
    First Language:
    Portuguese
    i was trying to do something like that, i got one .dll but the effect was still too slow and not with the same quality as the images posted.

    This would make making graphics far easier, as you could use 16bit resolution (I.E.: SNES resolution) and scale the graphics ingame without having them pixelated. this would also reduce the game size.

    [​IMG]

    The effect i wanted was the HQX2 but this one still more like ScaleX2. Since i didn't find the algorithm for HQX2 i gave up.
     
    Last edited by a moderator: Dec 20, 2013
    #20

Share This Page