Ignore:
Timestamp:
01/10/17 15:56:53 (5 years ago)
Author:
Sanahuja Guillaume
Message:

vision filter

File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairVisionFilter/src/VisionFilter.cpp

    r122 r123  
    1 #include "init.h"
     1#include "VisionFilter.h"
     2#include "compile_info.h"
     3#include <highgui.h>
    24
     5static void constructor() __attribute__((constructor));
    36
    4 void SetupDSP(std::string file,int globalTimeoutMs) {
    5    
     7void constructor() {
     8  compile_info("FlairVisionFilter");
    69}
    710
    8 void CloseDSP(void) {
     11void saveToJpeg(IplImage* src_img,std::string filename,unsigned char compression_level) {
     12        if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n");
     13}
     14
     15bool InitVisionFilter(std::string args) {
     16  printf("Using default vision lib filter, all functions are not ready!\n");
     17        return true;
     18}
     19
     20void CloseVisionFilter(void) {
    921 
    1022}
Note: See TracChangeset for help on using the changeset viewer.