Changeset 338 in flair-src for trunk/lib/FlairVisionFilter/src/VisionFilter.cpp
- Timestamp:
- 10/17/19 14:49:35 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/sanscv merged eligible
-
Property svn:mergeinfo
set to
-
trunk/lib/FlairVisionFilter/src/VisionFilter.cpp
r124 r338 1 1 #include "VisionFilter.h" 2 2 #include "compile_info.h" 3 #include <highgui.h>4 3 5 4 static void constructor() __attribute__((constructor)); … … 9 8 } 10 9 11 void saveToJpeg(IplImage* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level) { 12 if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n"); 10 void saveToJpeg(flair::core::Image* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level) { 11 printf("saveToJpeg todo\n"); 12 //if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n"); 13 13 } 14 14 … … 21 21 22 22 } 23 24 char* AllocFunction(ssize_t size) { 25 return (char*)malloc(size); 26 } 27 28 void FreeFunction(char* buffer) { 29 free(buffer); 30 }
Note:
See TracChangeset
for help on using the changeset viewer.