Code samples |
|
C++: Reaction-diffusion on a surface (see T. Greg's home page for more information) Unzip and compile the files. The program first creates a 2D mesh based on a simple rectangular grid and then puts a number of dots on its surface. Next, the process of relaxation (or repulsion) distributes dots uniformly on the surface. On the next stage, a Voronoi Region is calculated and a Delaunay triangulation is imposed on the original mesh. The size of triangles provides diffusion coefficients for a reaction-diffusion process that forms a texture in the form of large dots on the surface. After re-meshing is done, you will see a new triangular mesh painted in green. Press the Spacebar to trigger the reaction-diffusion process. Overall, the uniform distribution of dots allows creating a Delaunay triangulation with relatively uniform size of triangles which results in a uniformly spaced texture. [ code] |
|
C++: Support-vector machine application to recognition of handwritten digits Unzip and compile the files. The program recognizes handwritten digits from 0 to 9 using SVM with already learned parameters. Use arrows buttons to navigate between different input patterns. You will see that classification is sometimes incorrect. [ code] |
|
MATLAB: Finding an image on the background using color histogram Unzip files, start Matlab and run main.m. If asked change the current Matlab directory to the download directory. The program uses color histogram to encode the object and then to find it on a background. Threshold convolution allows to define the exact object coordinates in 2D. [ code] |
|
MATLAB: Energy filters anaylize the image of projected texture Unzip files, start Matlab and run main.m. If asked change the current Matlab directory to the download directory. The program creates the image of the textured plane rotated in depth. Projected images of slanted/tilted plane are analyzed by a set of energy filters; their outputs is subject to canonical correlation analysis. [ code] |
|
JavaScript: Motion-Depth-Orientation (MOD) visual illusion [ code ] [ description] |
|
Executable: Dynamic dithering for visual enhancement |