source: flair-src/trunk/lib/FlairVisionFilter/src/VisionFilter.cpp@ 199

Last change on this file since 199 was 124, checked in by Sanahuja Guillaume, 6 years ago

modifs jpeg

File size: 589 bytes
RevLine 
[123]1#include "VisionFilter.h"
2#include "compile_info.h"
3#include <highgui.h>
[122]4
[123]5static void constructor() __attribute__((constructor));
[122]6
[123]7void constructor() {
8 compile_info("FlairVisionFilter");
[122]9}
10
[124]11void saveToJpeg(IplImage* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level) {
[123]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) {
[122]21
22}
Note: See TracBrowser for help on using the repository browser.