Wolfram – Handle Images

Capture an image from the camera. CurrentImage[] We can use function blur to change our image, the interface Manipulate will help us to display different levels dynamically. To find important colors in the image. Convert the original image to a white and black image: To find sharp changes in the Read more…

Show Special Character In VTK

We can use vtkTextActor to show string which contains special character. I use encoding value to represent math symbol and store it in QString object in the following example. #include <vtkActor.h> #include <vtkPolyData.h> #include <vtkRenderer.h> #include <vtkRenderWindow.h> #include <vtkRenderWindowInteractor.h> #include <vtkSmartPointer.h> #include <vtkTextActor.h> #include <vtkSphereSource.h> #include <vtkPlaneSource.h> #include <vtkPolyDataMapper.h> #include Read more…

Wolfram – Basic Graphics Objects

We always use function Graphics and Graphics3D to represent items in the Wolfram Language. Use RegularPolygon to draw a triangle. Graphics[RegularPolygon[3]] Make a red octagon. Graphics[Style[RegularPolygon[8], Red]] Make a list whose elements are disks with hues varying from 0 to 1 in steps of 0.1. Table[Graphics[Style[Disk[ ], Hue[n]]], {n, 0, Read more…

Simple Examples For Handling Images With OpenCV

The original image and project are in the following part. CMakeLists.txt macro(use_cxx11) if (CMAKE_VERSION VERSION_LESS “3.1”) if (CMAKE_CXX_COMPILER_ID STREQUAL “GNU”) set (CMAKE_CXX_FLAGS “${CMAKE_CXX_FLAGS} -std=gnu++11”) endif () else () set (CMAKE_CXX_STANDARD 11) endif () endmacro(use_cxx11) cmake_minimum_required(VERSION 2.8) project( cvMat ) use_cxx11() find_package( OpenCV REQUIRED ) add_executable( ${PROJECT_NAME} “main.cpp” ) target_link_libraries( ${PROJECT_NAME} Read more…

Run The First ITK Example On Mac

Environment: cmake 3.16.0-rc4 InsightToolkit-5.0.1 macOS Catalina 10.15 Build And Install ITK Download tar.gz file, extract it, create a building directory and go into it. Then build the ITK project and install it. cmake ../ -G “Unix Makefiles” \ -DModule_ItkVtkGlue:BOOL=ON make sudo make install — Installing: /usr/local/include/ITK-5.0/itkWatershedSegmentTree.h — Installing: /usr/local/include/ITK-5.0/itkMorphologicalWatershedImageFilter.h — Read more…

Tex To PDF
: convert the Latex file which suffix is tex to a PDF file

X