Commit 4f3de6eb authored by Maria Dimashova's avatar Maria Dimashova

commented find_obj_calonder

parent 5a88e8cf
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
using namespace std; using namespace std;
using namespace cv; using namespace cv;
void warpPerspectiveRand( const Mat& src, Mat& dst, Mat& H, RNG& rng ) void warpPerspectiveRand( const Mat& src, Mat& dst, Mat& H, RNG& rng )
{ {
H.create(3, 3, CV_32FC1); H.create(3, 3, CV_32FC1);
...@@ -26,6 +27,7 @@ void warpPerspectiveRand( const Mat& src, Mat& dst, Mat& H, RNG& rng ) ...@@ -26,6 +27,7 @@ void warpPerspectiveRand( const Mat& src, Mat& dst, Mat& H, RNG& rng )
int main( int argc, char **argv ) int main( int argc, char **argv )
{ {
#if 0
if( argc != 4 && argc != 3 ) if( argc != 4 && argc != 3 )
{ {
cout << "Format:" << endl << cout << "Format:" << endl <<
...@@ -73,13 +75,13 @@ int main( int argc, char **argv ) ...@@ -73,13 +75,13 @@ int main( int argc, char **argv )
// Write Calonder classifier // Write Calonder classifier
FileStorage fs( argv[1], FileStorage::WRITE ); FileStorage fs( argv[1], FileStorage::WRITE );
classifier.write( fs ); if( fs.isOpened() ) classifier.write( fs );
} }
else else
{ {
// Read Calonder classifier // Read Calonder classifier
FileStorage fs( argv[1], FileStorage::READ ); FileStorage fs( argv[1], FileStorage::READ );
classifier.read( fs.root() ); if( fs.isOpened() ) classifier.read( fs.root() );
} }
if( classifier.empty() ) if( classifier.empty() )
...@@ -151,4 +153,6 @@ int main( int argc, char **argv ) ...@@ -151,4 +153,6 @@ int main( int argc, char **argv )
namedWindow( winName, WINDOW_AUTOSIZE ); namedWindow( winName, WINDOW_AUTOSIZE );
imshow( winName, drawImg ); imshow( winName, drawImg );
waitKey(); waitKey();
#endif
return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment