Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Change Image Backgrouund Colour to white
Forum Updated to NodeBB v4.3 + New Features

Change Image Backgrouund Colour to white

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 1.6k 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.
  • D Offline
    D Offline
    DivyaMuthyala
    wrote on last edited by
    #1

    Actually Iam trying to convert image background color to white,only background color should be replaced to white.
    Here my Image background color is black, so Iam trying to change it to white.
    Please give a suggestion to change background color.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DivyaMuthyala
      wrote on last edited by
      #2

      I am attaching my image, here background colour of image is black , i want to change it to white.0_1473401957502_1.jpg

      raven-worxR 1 Reply Last reply
      0
      • D DivyaMuthyala

        I am attaching my image, here background colour of image is black , i want to change it to white.0_1473401957502_1.jpg

        raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        @DivyaMuthyala
        i can't see any image/link attached.

        Anyway when the image has no transparency it's gonna be hard to just change the color of specific pixels. Since this involves some image recognition.

        When the background is always black you may have a chance to clip away the lack background color using composition.
        But it's tricky and i am not experienced with it myself, but i know its possible.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        1
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          This is the test image.

          Its not trivial to remove the background if to look ok after.

          Maybe this can give inspiration
          http://developers.lyst.com/2014/02/13/background-removal/

          1 Reply Last reply
          1
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            so for such "complex" images Qt wont be the right framework to achieve acceptable results

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            1
            • khakhilK Offline
              khakhilK Offline
              khakhil
              wrote on last edited by
              #6

              @DivyaMuthyala
              this is similar to your problem.
              http://answers.opencv.org/question/37441/how-to-set-transparent-background-to-grabcut-output-image-in-opencv-c/

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved