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. Problem in stretching an image

Problem in stretching an image

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
3 Posts 2 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.
  • A Offline
    A Offline
    Arrun
    wrote on last edited by
    #1

    Hi I am doing a image prcessing project in VC++, I am using bilinear interpolation for stretching the images but the image intensity varies before stretching and after stretching. for eg: If the image intensity for a square of 1 unit = 1xI1. If I stretch the image to 2 units then the intensity should be 2xI2 both the intensities should be equal ie 1xI1 = 2xI2 = k(constant) Pls help

    J 1 Reply Last reply
    0
    • A Arrun

      Hi I am doing a image prcessing project in VC++, I am using bilinear interpolation for stretching the images but the image intensity varies before stretching and after stretching. for eg: If the image intensity for a square of 1 unit = 1xI1. If I stretch the image to 2 units then the intensity should be 2xI2 both the intensities should be equal ie 1xI1 = 2xI2 = k(constant) Pls help

      J Offline
      J Offline
      John M Drescher
      wrote on last edited by
      #2

      I think this is a result of roundoff. Are you doing your calculation with floating point numbers and translating them back to integers? John

      A 1 Reply Last reply
      0
      • J John M Drescher

        I think this is a result of roundoff. Are you doing your calculation with floating point numbers and translating them back to integers? John

        A Offline
        A Offline
        Arrun
        wrote on last edited by
        #3

        Thanks for ur reply Yes I am calculating it with floating point numbers and translating it back to integers. Is there a problem with that? or should I use density filter to get the same intensity

        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