- 博客(137)
- 资源 (1)
- 收藏
- 关注
原创 Standard Template Library (STL) - std::queue::back
Standard Template Library (STL) - std::queue::backpublic member function - 公开成员函数1. std::queue::backC++98value_type& back();const value_type& back() const;C++11reference& back();const_reference& back() const;返回到 queue 中末元素的引用。这是最近推
2020-02-29 22:31:23 278
原创 Standard Template Library (STL) - std::queue::front
Standard Template Library (STL) - std::queue::frontpublic member function - 公开成员函数1. std::queue::frontC++98value_type& front();const value_type& front() const;C++11reference& front();const_reference& front() const;access the first
2020-02-29 21:31:53 466
原创 Standard Template Library (STL) - std::queue::pop
Standard Template Library (STL) - std::queue::poppublic member function - 公开成员函数1. std::queue::popvoid pop();removes the first element - 删除队列的第一个元素。Remove next element删除 queue 中前端的元素。Removes the next element in the queue, effectively reducing its s
2020-02-29 21:03:25 660
原创 Standard Template Library (STL) - std::queue::push
Standard Template Library (STL) - std::queue::pushpublic member function - 公开成员函数1. std::queue::pushC++98void push (const value_type& val);C++11void push (const value_type& val);void push (value_type&& val);在队列后端添加实参指定的元素。inserts e
2020-02-29 20:17:54 333
原创 OpenCV - C++ - cv::rectangle
OpenCV - C++ - cv::rectanglehttps://docs.opencv.org/4.2.0/d6/d6e/group__imgproc__draw.html1. cv::rectangleC++void cv::rectangle (InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)voi
2020-02-29 11:40:28 8336
原创 OpenCV - C++ - cv::line
OpenCV - C++ - cv::linehttps://docs.opencv.org/4.2.0/d6/d6e/group__imgproc__draw.html1. cv::lineC++void cv::line(InputOutputArray img, Point pt1, Point pt2, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)Pythonimg = cv.lin
2020-02-29 00:30:18 8336
原创 OpenCV - C++ - cv::circle
OpenCV - C++ - cv::circlehttps://docs.opencv.org/4.2.0/d6/d6e/group__imgproc__draw.html1. cv::circleC++void cv::circle (InputOutputArray img, Point center, int radius, const Scalar &color, int thickness=1, int lineType=LINE_8, int shift=0)Pythoni
2020-02-28 19:10:59 21852
原创 OpenCV - C++ - cv::Point
OpenCV - C++ - cv::Pointhttps://docs.opencv.org/4.2.0/dc/d84/group__core__basic.htmltypedef Point2i cv::PointTemplate class for 2D points specified by its coordinates x and y.由其坐标 x 和 y 指定的 2D 点的模板类。An instance of the class is interchangeable with C s
2020-02-28 18:17:52 6537
原创 OpenCV - C++ - cv::Scalar
OpenCV - C++ - cv::Scalarhttps://docs.opencv.org/4.2.0/dc/d84/group__core__basic.htmltypedef Scalar_<double> cv::ScalarTemplate class for a 4-element vector derived from Vec.源自 Vec 的 4 元素向量的模板类。Being derived from Vec<_Tp, 4>, Scalar_ and S
2020-02-28 18:04:57 3408
原创 OpenCL 语言中访问限定符 - __read_only or read_only - __write_only or write_only - __read_write or read_write
OpenCL 语言中的 Access Qualifiers (访问限定符) __read_only or read_only - __write_only or write_only - __read_write or read_write
2020-02-28 16:45:38 550
原创 Exploring $ORIGIN - 探索 $ORIGIN
Exploring $ORIGIN - 探索 $ORIGINhttps://www.technovelty.org/linux/exploring-origin.htmlAnyone who works with building something with a few libraries will quickly become familiar with rpath's; that is the ability to store a path inside a binary for finding
2020-02-28 10:56:46 996
原创 ld - The GNU linker - `-Wl` - `-R`- `-rpath` - `-rpath-link` - `-l` - `-L` - `-I`
ld - The GNU linker - -Wl - -R- -rpath - -rpath-link - -l - -L - -I1. man ld - ld - The GNU linkeryongqiang@famu-sys:~$ man ldyongqiang@famu-sys:~$the runtime library search path - 运行时库搜索路径1.1 -WlIf the linker is being invoked indirectly, via a comp
2020-02-27 23:40:31 678
原创 OpenCV 4.2.0 环境下 AlexeyAB/darknet 编译和链接
OpenCV 4.2.0 环境下 AlexeyAB/darknet 编译和链接https://github.com/AlexeyAB/darknethttps://docs.opencv.org/4.2.0/index.html1. pjreddie/darknet - Makefile - OpenCV 2.x / 3.xGPU=1CUDNN=1CUDNN_HALF=0OPENCV=1AVX=0OPENMP=0LIBSO=0ZED_CAMERA=0# set GPU=1 and
2020-02-27 20:55:19 1641
原创 C/C++ 程序编译和链接正常 - 运行失败
C/C++ 程序编译和链接正常 - 运行失败1. C/C++ 程序编译和链接正常 - 运行失败*: error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory1.1 Eclipse C++ 程序的编译和链接正常13:52:58 **** Build of configuration Debug for project body_pose ****ma
2020-02-27 14:48:01 2736
原创 OpenCV - C++ - region of interest (ROI)
OpenCV - C++ - region of interest (ROI)In this tutorial, we will learn how to select a bounding box or a rectangular region of interest (ROI) in an image in OpenCV.在本教程中,我们将学习如何在 OpenCV 中选择图像中的矩形感兴趣区域 (ROI)。Let’s start with a sample code. It allows you
2020-02-26 09:17:49 1205
转载 Learn OpenCV : C++ and Python Examples
Learn OpenCV : C++ and Python ExamplesLearn OpenCV : C++ and Python Exampleshttps://github.com/spmallick/learnopencvLearn OpenCVhttps://www.learnopencv.com/
2020-02-25 23:38:13 383
原创 OpenCV - C++ - cv::resize
OpenCV - C++ - cv::resize1. cv::resizeC++void cv::resize (InputArray src, OutputArray dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR)Pythondst = cv.resize(src, dsize[, dst[, fx[, fy[, interpolation]]]])#i
2020-02-25 23:14:29 23984 2
翻译 OpenCV - C++ Flags for video I/O - CAP_PROP_FRAME_WIDTH - CAP_PROP_FRAME_HEIGHT
OpenCV - C++ Flags for video I/O - CAP_PROP_FRAME_WIDTH - CAP_PROP_FRAME_HEIGHTModuleshttps://docs.opencv.org/4.2.0/modules.htmlVideo I/Ohttps://docs.opencv.org/4.2.0/dd/de7/group__videoio.htmlFlags for video I/Ohttps://docs.opencv.org/4.2.0/d4/d15/g
2020-02-25 23:12:16 1699
原创 std::string::substr
std::string::substrDefined in header <string> - 定义于头文件 <string>public member function - 公开成员函数mutex:n. 互斥,互斥元,互斥体,互斥量synchronization [ˌsɪŋkrənaɪˈzeɪʃn]:n. 同步,同时性primitive [ˈprɪmətɪv]:adj. 原始的,远古的,简单的,粗糙的 n. 原始人simultaneously [ˌsɪmlˈteɪniə
2020-02-25 21:04:47 9175
原创 std::stoi - std::stol - std::stoll
std::stoi - std::stol - std::stollDefined in header <string> - 定义于头文件 <string>function template - 函数模板转换字节字符串为整数值。mutex:n. 互斥,互斥元,互斥体,互斥量synchronization [ˌsɪŋkrənaɪˈzeɪʃn]:n. 同步,同时性primitive [ˈprɪmətɪv]:adj. 原始的,远古的,简单的,粗糙的 n. 原始人simulta
2020-02-25 19:40:31 4543
原创 OpenCV - C++ - cv::setWindowProperty
OpenCV - C++ - cv::setWindowPropertyHigh-level GUI#include <opencv2/highgui.hpp>1. setWindowProperty()void cv::setWindowProperty(const String &winname, int prop_id, double prop_value) - C++None = cv.setWindowProperty(winname, prop_id, prop_
2020-02-25 17:43:40 4037
原创 cv::VideoCapture Class Reference
cv::VideoCapture Class ReferenceClass for video capturing from video files, image sequences or cameras.1. Detailed DescriptionThe class provides C++ API for capturing video from cameras or for reading video files and image sequences.//=================
2020-02-25 16:05:35 474
原创 OpenCV - C++ - cv::Rect
OpenCV - C++ - cv::Recthttps://docs.opencv.org/4.2.0/dc/d84/group__core__basic.htmlcv::Rect_< _Tp > Class Template ReferenceTemplate class for 2D rectangles.1. cv::Rect - Open DeclarationFor your convenience, the Rect_<> alias is available
2020-02-25 15:39:11 4798
原创 Xlib - C Language X Interface
Xlib - C Language X Interface1. Xlib - C Language X InterfaceThe X Window System is a network-transparent window system that was designed at MIT.X Window System 是由 MIT 设计的透明网络窗口系统。transparent [trænsˈpærənt]:adj. 透明的,显然的,坦率的,易懂的monochrome [ˈmɒnəkrəʊm]:
2020-02-25 13:53:04 999
原创 AUTomotive Open System ARchitecture (AUTOSAR) - 汽车开放系统架构
AUTomotive Open System ARchitecture (AUTOSAR) - 汽车开放系统架构AUTOSAR (汽车开放系统架构) 是由汽车制造商、电子产品、半导体、软件供应商和工具供应商开发的标准,旨在为车辆开发提供基础设施。AUTOSAR (汽车开放系统架构) 旨在规范和论证基本软件单元、接口和总线系统,并且帮助汽车制造商更好地管理日益增长的复杂性系统,同时降低成本。它创建了汽车电子控制单元 (ECU) 标准化的开放式软件架构。C 和 C++ 语言是汽车嵌入式系统的主要编程语言。
2020-02-25 11:52:31 1155 2
原创 Xlib - C Language X Interface
Xlib - C Language X Interface1. Xlib - C Language X InterfaceThe X Window System is a network-transparent window system that was designed at MIT. X display servers run on computers with either monochrome or color bitmap display hardware. The server distr
2020-02-24 22:40:36 498
原创 C++ 语言类的私有成员
C++ 语言类的私有成员1. 类的私有成员构造函数是为类对象的数据成员赋值的。在定义类成员时使用关键字 private,可以得到所需的安全性。通常情况下,私有类成员只能被类的成员函数访问,有一种情况例外。普通的函数没有访问私有类成员的直接途径。指定私有类成员能够将类的接口与类的内部实现分开。类的接口由 public 成员和 public 函数成员组成,在必要时,public 函数成员可以提供对包括 private 成员在内的所有类成员的间接访问。例如,将类的内部成员指定为 private,就可以修
2020-02-24 15:39:47 8210
原创 C++ 语言禁止派生类 - final specifier
C++ 语言禁止派生类 - final specifier1. 禁止派生类可以将类指定为 final,确保不能将类用作基类。禁止派生 CBox 类:class CBox final{ // Class details ...};定义中类名后面的 final 修饰符告诉编译器不允许从 CBox 类中派生。final 不是关键字,只在这个上下文中有特殊的含义。不能把关键字用作名称,但可以把 final 用作变量名。2. 防止发生继承C++11 新标准提供了一种防止继承发生的方法,在类名后跟
2020-02-24 14:52:12 813
原创 C++ 语言变量的定义、声明和初始化
C++ 语言变量的定义、声明和初始化1. 定义变量每种变量都存储一种特定的数据,在定义了变量后,它可以存储的数据类型就是固定的。存储整数的变量,就不能存储小数。1.1 命名变量变量的名称可以是任意字母和数字的序列,其中下划线 _ 算作字母,其他字符则不允许使用。名称必须以字母或下划线开头,通常表明所存储的信息的种类。名称也称为标识符。在 Visual C++ 中,变量名最长可以有 2048 个字符。使用长名称会使程序难以阅读且很难输入。最好避免使用以下划线开头、且包含大写字母的名称,它们可能与相
2020-02-24 14:15:44 3856 3
原创 Constructor Overloading in C++ - C++ 中的构造方法重载
Constructor Overloading in C++ - C++ 中的构造方法重载1. Constructor Overloading in C++Suppose we have a Student class and while making its object, we want to pass a name of it and if nothing is passed then the name should be unknown. And yes! we can do this by h
2020-02-24 13:08:28 545
原创 Encapsulation in C++ - C++ 中的封装
Encapsulation in C++ - C++ 中的封装1. Encapsulation in C++Encapsulation is nothing new to what we have read. It is the method of combining the data and functions inside a class. Thus the data gets hidden from being accessed directly from outside the class. T
2020-02-24 12:41:11 458
原创 Initialization List in C++ - C++ 中的初始化列表
Initialization List in C++ - C++ 中的初始化列表1. Initialization List in C++In the previous chapter, we learned about how classes and their objects can be created and the different ways their members can be accessed. We also saw how data members are initialized
2020-02-24 12:04:10 1414
翻译 MT / AT / DCT / CVT
MT / AT / DCT / CVTA manual transmission, also known as a manual gearbox, a standard transmission or colloquially in some countries (e.g. the United States) as a stick shift is a type of transmission...
2020-02-24 00:18:44 492
原创 ubuntu 16.04 LTS - screen 命令
ubuntu 16.04 LTS - screen 命令screen 是一款由 GNU 计划开发的用于命令行终端切换的自由软件。用户可以通过该软件同时连接多个本地或远程的命令行会话,并在其间自由切换。GNU Screen 可以看作是窗口管理器的命令行界面版本。它提供了统一的管理多个会话的界面和相应的功能。1. 会话恢复只要 screen 本身没有终止,在其内部运行的会话都可以恢复。这一点对于远程登录的用户特别有用 - 即使网络连接中断,用户也不会失去对已经打开的命令行会话的控制。只要再次登录到主机上执
2020-02-24 00:00:26 987
原创 Subclass in C++ - C++ 中的子类
Subclass in C++ - C++ 中的子类1. Subclass in C++You are already introduced with inheritance in OOP chapter. So, let’s make a subclass of a superclass.您已经在 OOP 一章中了解了继承。因此,让我们做一个 superclass 的 subclass。//======================================================
2020-02-23 23:33:41 1614
转载 进程与线程
进程与线程现代操作系统 Mac OS X,UNIX / Unix,Linux,Microsoft Windows 等都是支持多任务的操作系统。多任务就是操作系统可以同时运行多个任务。例如你一边在用浏览器上网,一边在听音乐,一边在用 Microsoft Word 打字,这就是多任务,至少同时有 3 个任务正在运行。还有很多任务悄悄地在后台同时运行着,只是桌面上没有显示而已。多核 CPU 和单核...
2020-02-23 19:33:25 183
原创 Load, Modify, and Save an Image - 加载、修改和保存图像
Load, Modify, and Save an Image - 加载、修改和保存图像OpenCV 4.2.0 - Moduleshttps://docs.opencv.org/4.2.0/index.htmlOpenCV 4.2.0 - Tutorialshttps://docs.opencv.org/4.2.0/d9/df8/tutorial_root.html0. Load, Modify, and Save an Imagehttps://docs.opencv.org/4.2.0/d
2020-02-23 17:33:59 643
Migrating Unity applications from Oculus to OSVR
2016-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人