Rose-Hulman Robotics Team

Changeset 513

Show
Ignore:
Timestamp:
06/03/09 20:44:53 (3 years ago)
Author:
spenceal
Message:

warning on invalid classifier

Location:
trunk/software
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/software/Makefile

    r485 r513  
    11default: all 
    22 
    3 all: $(SUBDIRS) rb/gui/gui.xml rb/vision/classify_dtree.o 
     3all: rb/gui/gui.xml rb/vision/classify_dtree.o 
     4        ( cd rb/vision/; make $(MFLAGS) all ) 
    45        python setup.py build_ext --inplace 
    56 
  • trunk/software/rb/vision/classify.c

    r511 r513  
    7272                                cvRealScalar(get_type(cvGet2D(image, row, col)))); 
    7373 
    74         printf("reshaping, %dx%d\n", image->height, image->width); 
    7574        cvReshape(desired, desired, 1, image->height * image->width); 
    76         printf("done reshaping"); 
    7775        return desired; 
    7876} 
     
    8886        case RB_DTREE: classifier->classifier = dtree_create(); break; 
    8987        case RB_HARD:  break; 
     88        default: fprintf(stderr, "Warning: unknown classifier id %d\n", type); 
    9089        } 
    9190        return classifier;