User Tag List

Results 1 to 8 of 8

Thread: Cubic resampling

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cubic resampling

    Here my try to get close to cubic resampling. The problem is to resize with interpolation. Overlay can just resize without interpolation. And so a resized picture has the same sharp borders as the source.



    Not what i need. I need cubic resizing to achieve soft edges. Here what Gimp produces with cubic resizing:



    And here what my example app can do at the moment by cubic resampling :



    Better said, this is just a snapshot. I have setup the stuff so that you can adjust how often it samples and which pixels in what range to test.

    Pretty close to what i want. But slow as hell. And i am still in trouble how the resample steps and the range of the surrounding pixels are connected to resizing.

    Maybe somebody has a faster and better method. But keep in mind that i need colours too. So no good idea to use just one colour channel for calculation

    Attached file is 16 Kb



    Attached files Attached files

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    A faster better method? Just resize a HWA active object.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    Haha. In the Build 248?

    Also keep in mind that i have to load the source and save the result then

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    Still slow, but 1/3 faster than my upper method. Resamples a 1024x1024 picture in 17 seconds where my first file needs 25. So i thought it may be worth to release it.

    18 Kb
    Attached files Attached files

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    nice

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    Whats the purpose?

  7. #7
    No Products Registered

    Join Date
    Feb 2007
    Location
    Sydney, Australia
    Posts
    1,654
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    Cubic resampling

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Cubic resampling

    The purpose is to fake cubic resizing. Means to soften an image. With no black border as you get when you use soften or blur by the Image Manipulator Object. And with more control.

    Think of creating a heightmap by perlin noise. Here you create three pictures with different size. Then you resize the two smaller ones to the size of the biggest. And combine the noise of them then. For that you need something to soften the pictures. Else you would have a cubic landscape. And the most common method is Cubic resizing. Because it softens the picture when resizing it.

    Or simply think of a borderfree blur method

    Unfortunately none of the available image extensions that are able to load and save can do cubic resizing. I was also not able to understand how cubic resizing works. Haven`t seen some of the math symbols in the formulas before. And so i have to fake it

    I think i found the fastest method now by the way. 14 Seconds for resampling a 1024x1024 pixture now

    17 Kb

    Attached files Attached files

Similar Threads

  1. Sound resampling/re-encoding when building?
    By LIJI in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 3rd April 2012, 03:59 PM
  2. image resizing/resampling
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 2nd August 2011, 12:45 PM
  3. 360 Degree and Cubic Panorama Extensions
    By Novabrain in forum Extension Developers Lobby
    Replies: 1
    Last Post: 15th March 2008, 09:51 PM
  4. Picture Resize Methods Linear, Cubic, Sinc Larcosz
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 22nd January 2008, 11:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •