answered 2013-10-26 13:20:56 -0600
what does this line for?
char* imageName = argv[1];
then, for cvLoadImage() function, why don't you just pass the second argument of progrm calls? (the argv[1]?
Have you try hard debugging? Examining line by line?