Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Image resizing algorithm (bilinear)

Image resizing algorithm (bilinear)

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsalgorithmsquestion
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Budric B
    wrote on last edited by
    #1

    Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.

    A C A 3 Replies Last reply
    0
    • B Budric B

      Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.

      A Offline
      A Offline
      Andrew Kirillov
      wrote on last edited by
      #2

      Hello Here is an article (the title is "Bicubic", but it's Bilinear): http://astronomy.swin.edu.au/~pbourke/colour/bicubic/[^] The approach is implemented in all libraries I've seen. You can try tool look at Christian's article: http://www.codeproject.com/cs/media/imageprocessing4.asp[^] With best regards, Andrew

      1 Reply Last reply
      0
      • B Budric B

        Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Budric B. wrote: using bilinear interpolation with a pixel spacing of 1.5 in each direction Bilinear interpolation means when you do an operation that theoretically requires a pixel position that is not a whole number, you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist. As someone else said, I have an article that explains this further and has C# code showing how it is done. Christian Graus - Microsoft MVP - C++

        C 1 Reply Last reply
        0
        • B Budric B

          Hi, Can someone point me to some sites with a good explanation of the bilinear interpolation algorithm to resample images? My searches give me "features" web pages of graphics packages and libraries that implement it, but nothing that explains it well with some pictures and formulas =). I'm hoping someone with experience can point me to a good website on this matter. What I"m trying to understand is the following quote: "using bilinear interpolation with a pixel spacing of 1.5 in each direction." Thanks.

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          nt

          1 Reply Last reply
          0
          • C Christian Graus

            Budric B. wrote: using bilinear interpolation with a pixel spacing of 1.5 in each direction Bilinear interpolation means when you do an operation that theoretically requires a pixel position that is not a whole number, you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist. As someone else said, I have an article that explains this further and has C# code showing how it is done. Christian Graus - Microsoft MVP - C++

            C Offline
            C Offline
            Chris Losinger
            wrote on last edited by
            #5

            Christian Graus wrote: you use the fractional part to work out what percentage of surrounding, actual, pixels to use to determine a colour for the pixel that doesn't really exist that actually applies to nearly all interpolation methods. :) bi-lin just means using linear interpolation in two dimensions. (i know you know this - just filling-in) Cleek | Image Toolkits | Thumbnail maker

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups