simple comparison test fails - why?
I have set first argument -hsv
Image:
http://oi60.tinypic.com/2412u5x.jpg
1 2 3 4 5 6 7 8
|
int main(int argc, char **argv)
{
if ( argv[1] == "-hsv" )
{
data.source_color_space=RGB_;
data.target_color_space=HSV_;
}
}
|
But the condition is not true. Why?
Edit:
Solved, you can delete it.
1 2 3 4 5
|
if ( strcmp(argv[1],"-hsv")==0 )
{
data.source_color_space=RGB_;
data.target_color_space=HSV_;
}
|
Last edited on
Topic archived. No new replies allowed.