CPlusPlus
Import Iconv Library Into C++ Project To Convert Charset
If you are on linux os, you needn’t add library setting in CMakeLists.txt. The libray iconv files has been inside system path. main.cpp
If you are on linux os, you needn’t add library setting in CMakeLists.txt. The libray iconv files has been inside system path. main.cpp
We need to configure project in the project file CMakeLists.txt to support to use shared library or static library.Here is an example to build a project based on the library uchardet. Use shared library Use static library
In graphics and signal processing, there are many filters to compute data. We show two signal processing filters Gaussian filter and tent filter at our web tool 3D Model Editor. Gaussian Filter The resulting function is The 2D Read more…
The post shows a simple example about how to display a selected image by opencv.js in web page. <div> <div class=”inputoutput”> <img id=”imageSrc” alt=”No Image” style=”display: none;”> <div class=”caption”><input type=”file” id=”fileInput” name=”file”></div> </div> <div class=”inputoutput”> <canvas id=”canvasOutput”></canvas> </div> </div> <script Read more…
You may have encountered a situation where the downloaded file was damaged and didn’t open smoothly. The method to verify whether the file has changed is the information summary algorithm. It analyzes the contents of the file and generates a Read more…
Download cryptography library and build for wasm Download cryptography source code at GitHub, cryptopp. Go to cryptopp folder which contains GNUmakefile. Build it to generate C++ library and execute file. make static dynamic cryptest.exe Create a new folder build and Read more…
I lost my Kindle half a month ago.It was the 499 yuan starter I bought in college.I think it’s extinct now.I used this tool for seven years.Read hundreds of books, including novels, comics, and technical books.Last night when I tried Read more…
We can use vtkTransform’s function concatenate to do matrix multiplication. There are three matrix which have the mathematical relationship. It’s equivalent to the following code. vtkSPtrNew( C, vtkTransform ); C->Concatenate(B); C->Concatenate(A); C->Update(); The experimental code: #include <iostream> #include Read more…
We have to clear actors in vtkCellPicker object before InitializePickList. In the function Pick, the picker object will addItem to increase its reference count. So we need to do the following tasks for picker object in class destructor function to avoid crash Read more…