Changeset 47 in flair-dev for trunk/include
- Timestamp:
- Jan 19, 2017, 3:06:46 PM (8 years ago)
- Location:
- trunk/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairCore/Semaphore.h
r42 r47 51 51 * 52 52 * Lock the semaphore. 53 * 53 * 54 * \param timeout The timeout, in nanoseconds. 54 55 */ 55 void GetSemaphore(void) const;56 bool GetSemaphore(Time timeout = TIME_INFINITE) const; 56 57 57 58 /*! … … 61 62 * 62 63 */ 63 voidReleaseSemaphore(void) const;64 bool ReleaseSemaphore(void) const; 64 65 65 66 private: -
trunk/include/FlairCore/cvimage.h
r13 r47 39 39 UYVY, /*!< UYVY 16 bits */ 40 40 BGR, /*!< BGR 24 bits */ 41 G RAY, /*!< gray 8 bits */41 Gray, /*!< gray 8 bits */ 42 42 }; 43 43 Type(uint16_t _width, uint16_t _height, Format _format) … … 47 47 size_t pixelSize; 48 48 switch (format) { 49 case Format::G RAY:49 case Format::Gray: 50 50 pixelSize = 1; 51 51 break; -
trunk/include/FlairSensorActuator/Camera.h
r44 r47 92 92 93 93 /*! 94 * \brief Save picture to file94 * \brief Save raw picture to file 95 95 * 96 96 * \param filename filename 97 97 */ 98 void SaveToFile(std::string filename) const; 98 void SaveRawPictureToFile(std::string filename) const; 99 100 /*! 101 * \brief Save picture to file 102 * 103 * \param filename filename; if ommitted, current time is used and file is saved in current directory with jpg compression 104 */ 105 void SavePictureToFile(std::string filename="") const; 99 106 100 107 /*! -
trunk/include/FlairVisionFilter/CvtColor.h
r44 r47 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/include/FlairVisionFilter/VisionFilter.h
r45 r47 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 YUV_422ile,/*!< YUV 4:2:2 interleaved */ 18 YUV_422p,/*!< YUV 4:2:2 planer */ 19 } ; 20 21 void saveToJpeg(IplImage* src_img,std::string filename,PictureFormat_t input_format,PictureFormat_t output_format,unsigned char compression_level=95);
Note:
See TracChangeset
for help on using the changeset viewer.