Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "For a basic project based on an executable build from one source code file, a two line CMakeLists.txt
file is all that is needed ."
A block of code is set as follows:
#include "opencv2/opencv.hpp" using namespace cv; int main(int, char** argv) { FileStorage fs2("test.yml", FileStorage::READ); Mat r; fs2["Result"] >> r; std::cout << r << std::endl; fs2.release(); return 0; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@Path("departments")
@Produces(MediaType.APPLICATION_JSON)
public class DepartmentResource{
//Class implementation goes here...
}
Any command-line input or output is written as follows:
C:\> setx -m OPENCV_DIR D:\OpenCV\Build\x64\vc11
New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "To show the control panel we can push the last tool bar button, right click in any part of QT Window and select Display properties window."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.