Let d < N be a positive integer and define p = N/d. Let y_{1} be a point on the unit circle. Let R be clockwise rotation by the angle t = 2*pi/p. The generalized regular polygon {p} is given by the points y_{i+1} = R * y_{i}, and edges between points i and i+1.
Example: polygon(9, 4, 1);
This simple script allows you to create edge pictures from an existent image. This is a simple edge detector that allows to fast edite any picture estored on your pc. The code can be used as example of how to use edge detection.
This function compute the individual Voronoi cell area of point sets bounded in an arbitrary square.
Inputs: x : M x 1 array of x-coordinates y : M x 1 array of y-coordinates toggleplot : 1 to turn on figures, 0 to turn...
PIE3S draws 3D pie charts with smooth surfaces and lighting for a more visually appealing appearance. It is syntactically similar to MATLAB's built-in PIE3 command but with some extra optional parameters to control bevelling of the segment...
In the mathematical field of graph theory, a spanning tree of a connected, undirected graph is a tree which includes every vertex of that graph. More generally, a spanning forest of an arbitrary undirected graph is a forest which includes every...
Find the intersection points of the edges of two 2D polygons, a simple function made to follow up a Newsgroup discussion
Graph Game is an implementation of the Shannon switching game.
It is a game for two players. The first player selects edges of the graph trying to connect two highlighted nodes while the second player removes unselected edges. AI is...
MeshLab is an open source, portable, and extendible system for the processing and editing of unstructured 3D triangular meshes.
The system is aimed to help the processing of the typical not-so-small unstructured models arising in 3D...
By specifying a directory containing pictures the program picks an arbitrary picture amongst these in that folder. It animates or random walks a subpicture within the "big" pictures. The subpicture is given an initial velocity, so that...
Files are:
streamMe: To get and display the images (RGB and Depth) from Kinect.
snapshotMe: To get a snapshot (RGB and Depth) and save them on the local folder as 'rgb.png' and 'depth.png'.
videoMe: To get and save...
This is the local linear version of the kernel smoothing regression function: http://www.mathworks.com/matlabcentral/fil...objectType=FILE
The local linear estimator improves the regression behaviour near the edges of the region over...
Allows 3d scattered data to be plotted as a 2d scatterplot (i.e. plot(,,'.') ) with the third dimension being displayed as colour. Each point is coloured depending on the value of z, which is binned (bins edges or number of bins can be specified).
Inscribed_Rectangle package provides 2 low level computer vision / image analysis functions able to locate largest square or rectangle inscribed inside arbitrary shape defined by a binary mask (black and white image). Only rectangles with...
HISTCND is similar to HISTC, but creates a histogram with any number of dimensions.
N = HISTCND(X,Y,Z,... XEDGES,YEDGES,ZEDGES,... )
where N is a histogram count with dimensions length(XEDGES) x length(YEDGES) x...
Edit a graph or draw a new one with this GUI.
Usage: >> graph_gui; or >> graph_gui(A,xy); Controls: Use the radio buttons to select an action: 1. To DRAW a new VERTEX, select 'Draw' and...
Hist2D performs a fast calculation of 2D histograms. On a 2GHz processor, calculated and displayed a histogram of 1 million points in less than half a second.
HIST2D 2D histogram [H XBINS YBINS] = HIST2D(D, XN, YN, [XLO...
This function is built around MATLAB's slice function. It plots a black line along the edges of each slice and a dotted line where two slices intersect. This may be useful to help in the analysis/interpretation of slice plots ...
Plots edge connections and edge based data. Optionally triangularization data can be provided to allow surface shading. This product was motivated by the need to plot results of electromagnetic simulation code in matlab. These codes store data...
If you ask how to make your photo be miracle, try Kaleido Flash!
You do not need a specialized camera lens, Kaleido Flash will make your digital photos have dynamic kaleidoscopic effects. Moreover, the effect is changing with the moving...
voronoiSkel uses only the pixel on the boundary of the objects, and therefore is very efficient for thick objects (efficiency scales with the object's radius, rather than its area). However, it might be sensitive to small defects, if they are on... |