When CP2TFORM is used in piecewise linear image transformation mode, it uses triangulation to calculate the local image transformation. Sometimes a good triangulation of basepoints gives folded triangles when used with the input points. The function CP2TFORM try's to remove the controlpoints causing the folding, but often fails with the error:
Eliminated * control point pair(s).
Fold-over triangles remain. See CP2TFORM...
Matlab R2009a and above now support .NET assemblies, which allows us to use .NET wrapped libraries such as OpenGL .NET in Matlab.
I have included OpenGL .NET assemblies including the source C# code from TAO, and a hand full examples....
This function is an basic hex editor for viewing and comparing files (editing is not supported)
hexcompare(Filename) % View bytes of a binary file
hexcompare(Filename1, Filename2) % Compare binary...
This a classic AdaBoost implementation, in one single file with easy understandable code.
The function consist of two parts a simple weak classifier and a boosting part:
The weak classifier tries to find the best threshold in one...
IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with a Gaussian filter.
Instead of using a multidimensional Gaussian kernel, it uses the fact that a Gaussian kernel can be separated in 1D kernels.
By the default the...
Matlab image reader for almost all types of TGA files
[I,map] = tga_read_image('testimages/test9.tga');
Many image problems require some kind of detection of objects, in which there is a natural variation in appearance of the objects between the images.
Using a basic PCA classifier, this script is able to execute two type of actions:...
Shape Context is a method to get an unique descriptor (feature vector) for every point of an object contour or surface. This descriptor is used in combination with a b-spline free form deformation grid, for fully automatic creation of point...
This function MOUSE3D enables mouse camera control on an certain figure axes.
Enable mouse control with mouse3d(axis-handle) or just mouse3d
Left : Rotate
Right : Zoom
Center : Pan
This toolbox will perform Anisotropic Non-Linear Diffusion filtering on a 2D gray/color or 3D image. This filtering will reduce the image noise while preserving the region edges, and also enhancing the edges by smoothing along...