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

Search:

Type: Posts; User: tmaneo

1. Thread: HSI in matrix to an image

by tmaneo
Replies
4
Views
3,241

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. Thread: HSI in matrix to an image

by tmaneo
Replies
4
Views
3,241

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. Thread: HSI in matrix to an image

by tmaneo
Replies
4
Views
3,241

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.

4. Thread: Implementing an algorithm, math error.

by tmaneo
Replies
6
Views
3,601

Re: Implementing an algorithm, math error.

Yes, i crossposted, but thanks alot. Changing the &#189; to your suggestions and making radians to degrees did the trick.

//Calculating "H" Hue
if (G>=B)
{
H =...
5. Thread: Implementing an algorithm, math error.

by tmaneo
Replies
6
Views
3,601

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. Thread: Implementing an algorithm, math error.

by tmaneo
Replies
6
Views
3,601

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. Thread: Implementing an algorithm, math error.

by tmaneo
Replies
6
Views
3,601

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