CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: tmaneo

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,583

    Re: HSI in matrix to an image

    yep, decided to just go with that. Caus its just a way to visualize some values that arent directly able to be seen visually, as it is with RGB. But ty for the quick replyes.
  2. Replies
    4
    Views
    3,583

    Re: HSI in matrix to an image

    Yes, but what channels should i use for each of the 3 pictures ?
    Like should i set R-channel = H
    G-channel = S
    B-channel = I
    or how would it be done ?
    ...
  3. Replies
    4
    Views
    3,583

    HSI in matrix to an image

    Hi, im making a program that can convert RGB to HSI. Hue, Saturation and Intensity.
    Im using OpenCV for doing it. But i however cant used the premade funcs in opencv.

    Im loading my input image...
  4. Replies
    6
    Views
    6,440

    Re: Implementing an algorithm, math error.

    Yes, i crossposted, but thanks alot. Changing the ½ to your suggestions and making radians to degrees did the trick.


    //Calculating "H" Hue
    if (G>=B)
    {
    H =...
  5. Replies
    6
    Views
    6,440

    Re: Implementing an algorithm, math error.

    if i write "1/cos" it just returns "1" on a 0,255,0 green. Where it should return a 120 value.


    H = 1/cos((1/2)*(((R-G)+(R-B))/(sqrt(((R-G)*(R-G))+((R-B)*(G-B))))));
  6. Replies
    6
    Views
    6,440

    Re: Implementing an algorithm, math error.

    Im using codeblocks though, but quite sure it has nothing to do with the program, but error in the c++ language ive made.
  7. Replies
    6
    Views
    6,440

    Implementing an algorithm, math error.

    Hi, im making a program that can convert RGB to HSI. Hue, Saturation and Intensity.
    HSI is abit more complex than HSV and HSB.
    Im using OpenCV for doing it. But i however cant used the premade...
Results 1 to 7 of 7





Click Here to Expand Forum to Full Width

Featured