Changeset 124 in flair-src for trunk/lib/FlairVisionFilter
- Timestamp:
- Jan 12, 2017, 10:39:23 AM (8 years ago)
- Location:
- trunk/lib/FlairVisionFilter/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairVisionFilter/src/CvtColor.cpp
r122 r124 25 25 26 26 switch(conversion) { 27 case Conversion_t:: GRAY:27 case Conversion_t::ToGray: 28 28 try{ 29 29 cvimage::Type const &imageType=dynamic_cast<cvimage::Type const &>(parent->GetOutputDataType()); 30 output=new cvimage(this,imageType.GetWidth(),imageType.GetHeight(),cvimage::Type::Format::G RAY,"conversion",true,2);30 output=new cvimage(this,imageType.GetWidth(),imageType.GetHeight(),cvimage::Type::Format::Gray,"conversion",true,2); 31 31 32 32 } catch(std::bad_cast& bc) { … … 61 61 62 62 switch(conversion) { 63 case Conversion_t:: GRAY:63 case Conversion_t::ToGray: 64 64 switch(((cvimage*)data)->GetDataType().GetFormat()) { 65 65 case cvimage::Type::Format::YUYV: -
trunk/lib/FlairVisionFilter/src/CvtColor.h
r122 r124 39 39 */ 40 40 enum class Conversion_t { 41 BGR,/*!< BGR 24 bits */42 GRAY,/*!< gray 8 bits */41 ToBGR,/*!< BGR 24 bits */ 42 ToGray,/*!< gray 8 bits */ 43 43 } ; 44 44 -
trunk/lib/FlairVisionFilter/src/HoughLines.cpp
r122 r124 53 53 try{ 54 54 cvimage::Type const &imageType=dynamic_cast<cvimage::Type const &>(parent->GetOutputDataType()); 55 if(imageType.GetFormat()!=cvimage::Type::Format::G RAY) {56 Err("input image is not gr ey\n");55 if(imageType.GetFormat()!=cvimage::Type::Format::Gray) { 56 Err("input image is not gray\n"); 57 57 } 58 58 } catch(std::bad_cast& bc) { -
trunk/lib/FlairVisionFilter/src/ImgThreshold.cpp
r122 r124 32 32 try{ 33 33 cvimage::Type const &imageType=dynamic_cast<cvimage::Type const &>(parent->GetOutputDataType()); 34 if(imageType.GetFormat()==cvimage::Type::Format::G RAY) {34 if(imageType.GetFormat()==cvimage::Type::Format::Gray) { 35 35 output=new cvimage(this,imageType.GetWidth(),imageType.GetHeight(),imageType.GetFormat(),"threshold"); 36 36 } else { 37 Err("input image is not gr ey\n");37 Err("input image is not gray\n"); 38 38 } 39 39 } catch(std::bad_cast& bc) { -
trunk/lib/FlairVisionFilter/src/Sobel.cpp
r122 r124 34 34 try{ 35 35 cvimage::Type const &imageType=dynamic_cast<cvimage::Type const &>(parent->GetOutputDataType()); 36 if(imageType.GetFormat()==cvimage::Type::Format::G RAY) {36 if(imageType.GetFormat()==cvimage::Type::Format::Gray) { 37 37 output=new cvimage(this,imageType.GetWidth(),imageType.GetHeight(),imageType.GetFormat(),"sobel"); 38 38 } else { 39 Err("input image is not gr ey\n");39 Err("input image is not gray\n"); 40 40 } 41 41 -
trunk/lib/FlairVisionFilter/src/VisionFilter.cpp
r123 r124 9 9 } 10 10 11 void saveToJpeg(IplImage* src_img,std::string filename, unsigned char compression_level) {11 void saveToJpeg(IplImage* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level) { 12 12 if(!cvSaveImage(filename.c_str(),src_img)) printf("Could not save.\n"); 13 13 } -
trunk/lib/FlairVisionFilter/src/VisionFilter.h
r123 r124 12 12 void CloseVisionFilter(void); 13 13 14 void saveToJpeg(IplImage* src_img,std::string filename,unsigned char compression_level=95); 14 enum class PictureFormat_t { 15 Gray,/*!< gray 8 bits */ 16 RGB,/*!< rgb 24 bits */ 17 UYVY,/*!< YUV 4:2:2 planer */ 18 } ; 19 20 void saveToJpeg(IplImage* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level=95); -
trunk/lib/FlairVisionFilter/src/unexported/compile_info.h
r123 r124 5 5 6 6 #define USER "gsanahuj@gsanahuj-Latitude-E6420" 7 #define DATE " mardi 10 janvier 2017, 15:56:33(UTC+0100)"7 #define DATE "jeudi 12 janvier 2017, 09:32:25 (UTC+0100)" 8 8 #define GCC_REV "4.9.1" 9 9 #define GCC_PATH "/opt/robomap3/1.7.3/armv7a-neon/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc" 10 10 #define SVN_PATH "/home/gsanahuj/HDS/igep/flair-src_svn/trunk/lib/FlairVisionFilter" 11 #define SVN_REV "122 M"11 #define SVN_REV "122:123M" 12 12 13 13 inline void compile_info(std::string name) {
Note:
See TracChangeset
for help on using the changeset viewer.