Color Conversion
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 2 of 2

Thread: Color Conversion

  1. #1
    Join Date
    Jan 2010

    Color Conversion

    Dear all,

    I just started "playing" with OpenCV and eclipse but I have some problems with them. I'm just trying to change red color to green... It should be easy but my algorithms never work, can anyone help me? Any algorithms?

    Thank you in advance. Alex

  2. #2
    Join Date
    Jan 2009

    Re: Color Conversion

    What's your algorithm? All you should have to do is swap values 0 and 1, 4 and 5, 8 and 9...
    If I remember correctly the images that come out of OpenCV are RGBA, but they might be RGB, in which case you would swap 0 and 1, 3 and 4, 6 and 7...

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)