answered 2013-04-18 01:56:13 -0600
believe it or not, your src img must be empty !
thow in a check before processing it:
Mat _orange = imread("orange.jpg"); if ( _orange.empty() ) { cerr << "foul orange!" << endl; }