plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | Ciaran1981/SeAMS-master | findimages.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/findimages.m | 801 | utf_8 | 20b68f3c818e0bc36b576390784e740c | % FINDIMAGES - invokes image dialog box for multiple image loading
%
% Usage: [im, filename] = findimages
%
% Returns:
% im - Cell array of images
% filename - Cell arrauy of filenames of images
%
% See Also: FINDIMAGE
% Peter Kovesi
% Centre for Exploration Targeting
% The University of Western A... |
github | Ciaran1981/SeAMS-master | showlogfft.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/showlogfft.m | 1,718 | utf_8 | 8bf452f34bee6609519ee61053657aa2 | % SHOWLOGFFT - Displays log amplitude spectrum of an fft.
%
% Usage: showlogfft(ft, figNo)
%
% Arguments: ft - Fourier transform to be displayed
% figNo - Optional figure number to display image in.
%
% The fft is quadrant shifted to place zero frequency at the centre and the
% log of the amplitude dis... |
github | Ciaran1981/SeAMS-master | polyfit2d.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/polyfit2d.m | 2,438 | utf_8 | a05847f0b684d1549e8bf19c81e011eb | % POLYFIT2D Fits 2D polynomial surface to data
%
% Usage: c = polyfit2d(x, y, z, degree)
%
% Arguments: x, y, z - coordinates of data points
% degree - degree of polynomial surface
%
% Returns: c - The coefficients of polynomial surface.
% There will ... |
github | Ciaran1981/SeAMS-master | rgb2lab.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/rgb2lab.m | 1,063 | utf_8 | 29f5354eef11a490d28c05d752252407 | % RGB2LAB - RGB to L*a*b* colour space
%
% Usage: Lab = rgb2lab(im, wp)
%
% Arguments: im - RGB image or Nx3 colourmap for conversion
% wp - Optional string specifying the adapted white point.
% This defaults to 'D65'.
%
% Returns: Lab - The converted image or colourmap.
%
% This functio... |
github | Ciaran1981/SeAMS-master | pathlist.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/pathlist.m | 1,202 | utf_8 | 2551671f5f3c9a17293d82ed6aee8167 | % PATHLIST Produces a cell array of directories along a directory path
%
% Usage: plist = pathlist(fullpath)
%
% Example: If fullpath = '/Users/pk/Matlab/Spatial'
% plist =
% '/' '/Users/' '/Users/pk/' '/Users/pk/Matlab/' '/Users/pk/Matlab/Spatial'
%
% plist{end} is always fullpath
% plist{end-1} is ... |
github | Ciaran1981/SeAMS-master | superquad.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/superquad.m | 2,798 | utf_8 | 2dfc95eb41c2bf03bb78f5f0bb8b7c07 | % SUPERQUAD - generates a superquadratic surface
%
% Usage: [x,y,z] = superquad(xscale, yscale, zscale, e1, e2, n)
%
% Arguments:
% xscale, yscale, zscale - Scaling in the x, y and z directions.
% e1, e2 - Exponents of the x and y coords.
% n - Number of subdivisions of logitude an... |
github | Ciaran1981/SeAMS-master | hsvmap.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/hsvmap.m | 1,842 | utf_8 | ec6d79772fe1bba81deabf0312847a24 | % HSVMAP Generates an HSV colourmap over a specified range of hues
%
% The function generates colours over a specified range of hues from the HSV
% colourtmap
%
% map = hsvmap(hmin, hmax, N)
%
% Arguments: hmin - Minimum hue value 0 - 1. Default = 0
% hmax - Maximum hue value 0 - 2. Default = 1
% ... |
github | Ciaran1981/SeAMS-master | rgb2nrgb.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/rgb2nrgb.m | 1,125 | utf_8 | 743c25dcc6996a893f06243bfc96fa8e | % RGB2NRGB - RGB to normalised RGB
%
% Usage: nrgb = rgb2nrgb(im, offset)
%
% Arguments: im - Colour image to be normalised
% offset - Optional value added to (R+G+B) to discount low
% intensity colour values. Defaults to 1
%
% r = R / (R + G + B) etc
% Copyright (c) 2009 Peter ... |
github | Ciaran1981/SeAMS-master | bbspline.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/bbspline.m | 2,725 | utf_8 | a734eef68d0fdde4040b265425909148 | % BBSPLINE - Basic B-spline
%
% Usage: S = bbspline(P, k, N)
%
% Arguments: P - [dim x Npts] array of control points
% k - order of spline (>= 2).
% k = 2: Linear
% k = 3: Quadratic, etc
% N - Optional number of points to evaluate along
% ... |
github | Ciaran1981/SeAMS-master | weightedhistc.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/weightedhistc.m | 1,498 | utf_8 | b474157c0a9fa58fc7eb358c7c7ccc37 | % WEIGHTEDHISTC Weighted histogram count
%
% This function provides a basic equivalent to MATLAB's HISTC function for
% weighted data.
%
% Usage: h = weightedhistc(vals, weights, edges)
%
% Arguments:
% vals - vector of values.
% weights - vector of weights associated with each element in vals. vals
% ... |
github | Ciaran1981/SeAMS-master | bilateralmap.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/bilateralmap.m | 2,549 | utf_8 | c9a16e3cdc46d415b9bb829195bb212e | % BILATERALMAP Generates a bilateral colourmap
%
% This function generate a colourmap where the first half has one hue and the
% second half has another hue. Saturation varies linearly from 0 in the middle
% to 1 at ech end. This gives a colourmap which varies from white at the middle
% to an increasing saturation of ... |
github | Ciaran1981/SeAMS-master | clouds.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/clouds.m | 2,219 | utf_8 | 55889e6ed17ca0979b08f7fb102f76e6 | % CLOUDS
%
% Function to create a movie of noise images having 1/f amplitude spectum properties
%
% Usage: clouds(size, factor, meandev, stddev, lowvel, velfactor, nframes)
%
% size - size of image to produce
% factor - controls spectrum = 1/(f^factor)
% meandev - mean change in phaseangle per fr... |
github | Ciaran1981/SeAMS-master | matprint.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/matprint.m | 1,453 | utf_8 | bb847e0506584e9e043482b7a69bcbb4 | % MATPRINT - prints a matrix with specified format string
%
% Usage: matprint(a, fmt, fid)
%
% a - Matrix to be printed.
% fmt - C style format string to use for each value.
% fid - Optional file id.
%
% Eg. matprint(a,'%3.1f') will print each entry to 1 decimal place
... |
github | Ciaran1981/SeAMS-master | noiseonf.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/noiseonf.m | 2,320 | utf_8 | fad84fc70d1aff602b459ef9097309a4 | % NOISEONF - Creates 1/f spectrum noise images.
%
% Function to create noise images having 1/f amplitude spectum properties.
% When displayed as a surface these images also generate great landscape
% terrain.
%
% Usage: im = noiseonf(size, factor)
%
% size - A 1 or 2-vector specifying size of image to produce... |
github | Ciaran1981/SeAMS-master | fillnan.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/fillnan.m | 1,673 | utf_8 | dc2ec069c5ace1262d2f396fd2fa6f8e | % FILLNAN - fills NaN values in an image with closest non Nan value
%
% NaN values in an image are replaced with the value in the closest pixel
% that is not a NaN.
%
% Usage: [newim, mask] = fillnan(im);
%
% Argument: im - Image to be 'filled'
% Returns: newim - Filled image
% mask - Binary i... |
github | Ciaran1981/SeAMS-master | testdbscan.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/testdbscan.m | 2,247 | utf_8 | aa690910417795cfda803d2e25a271c2 | % TESTDBSCAN Program to test/demonstrate the DBSCAN clustering algorithm
%
% Simple usage: testdbscan;
%
% Full usage: [C, ptsC] = testdbscan(E, minPts)
%
%
% Arguments:
% E - Distance threshold for clustering. Defaults to 0.3
% minPts - Minimum number of points required to form a... |
github | Ciaran1981/SeAMS-master | polartrans.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/polartrans.m | 3,367 | utf_8 | 9aed63869d7ac444d0e2198fcd91e306 | % POLARTRANS - Transforms image to polar coordinates
%
% Usage: pim = polartrans(im, nrad, ntheta, cx, cy, linlog, shape)
%
% Arguments:
% im - image to be transformed.
% nrad - number of radius values.
% ntheta - number of theta values.
% cx, cy - optional specification... |
github | Ciaran1981/SeAMS-master | labmap.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/labmap.m | 8,483 | utf_8 | e7cda593bf59d9e52b88e7ef4e13bb57 | % LABMAP - Generates a colourmap based on L*a*b* space
%
% This function can generate a wide range of colourmaps but it can be a bit
% difficult to drive...
%
% The idea: Create a spiral path within in L*a*b* space to use as a
% colourmap. L*a*b* space is designed to be perceptually uniform so, in
% principle, it shoul... |
github | Ciaran1981/SeAMS-master | basename.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/basename.m | 549 | utf_8 | 619048021d1d621f2344798ad8fec477 | % BASENAME Trims off the .ending of a filename
%
% Usage: bname = basename(name)
%
% Argument: name - Name of a file with a .ending
% Returns: bname - Name with the suffix trimmed
% Peter Kovesi
% Centre for Exploration Targeting
% The University of Western Australia
% peter.kovesi at uwa edu au
%
% August 2010
... |
github | Ciaran1981/SeAMS-master | showfft.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/showfft.m | 1,588 | utf_8 | a10b28024b7bb20f06be15f948efa5b2 | % SHOWFFT - Displays amplitude spectrum of an fft.
%
% Usage: showfft(ft, figNo)
%
% Arguments: ft - Fourier transform to be displayed
% figNo - Optional figure number to display image in.
%
% The fft is quadrant shifted to place zero frequency at the centre.
%
% If figNo is omitted a new figure window... |
github | Ciaran1981/SeAMS-master | deres.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/deres.m | 525 | utf_8 | 013e5ac5596abe1811cec7954e1abca0 | % DERES - Deresolves an image.
%
% Usage: im2 = deres(im, s)
%
% Arguments: im - image to be deresolved
% s = deresolution factor
%
% Returns the deresolved image
% PK October 2000
function im2 = deres(im, s)
if ndims(im) == 3 % Assume colour image
im2 = zeros(size(im));
im2(:,:,1) = blkproc... |
github | Ciaran1981/SeAMS-master | showangularim.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/showangularim.m | 5,543 | utf_8 | 75afab7bd1c9c526602370d0b685a282 | % SHOWANGULARIM - Displays image of angular data
%
% For angular data to be rendered correctly it is important that the data values
% are respected so that data values are correctly assigned to specific entries
% in a cyclic colour map. The assignment of values to colours also depends on
% whether the data is cyclic o... |
github | Ciaran1981/SeAMS-master | sineramp.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/sineramp.m | 6,455 | utf_8 | 05497c013c694f1734bc5d8f1a51fe4a | % SINERAMP - Generates sine on a ramp colour map test image
%
% The test image consists of a sine wave superimposed on a ramp function The
% amplitude of the sine wave is modulated from its full value at the top of the
% image to 0 at the bottom.
%
% The image is useful for evaluating the effectiveness of different c... |
github | Ciaran1981/SeAMS-master | pbspline.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/pbspline.m | 3,360 | utf_8 | 0f159d999c118e226bfb35f4cd46b581 | % PBSPLINE - Basic Periodic B-spline
%
% Usage: S = pbspline(P, k, N)
%
% Arguments: P - [dim x Npts] array of control points
% k - order of spline (>= 2).
% k = 2: Linear
% k = 3: Quadratic, etc
% N - Optional number of points to evaluate along
% ... |
github | Ciaran1981/SeAMS-master | cloud9.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/cloud9.m | 3,590 | utf_8 | 3ce5e64cce1547247f3b914e7a6fc5c8 | % CLOUD9 - Cloud movie of 1/f noise.
%
% Function to create a movie of noise images having 1/f amplitude spectum
% properties.
%
% Usage: CloudMovie = cloud9(size, factor, nturns, velfactor, nframes)
%
% size - [rows cols] size of image to produce
% factor - controls spectrum = 1/(f^factor)
% ntu... |
github | Ciaran1981/SeAMS-master | circle.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/circle.m | 1,226 | utf_8 | 3ce939f9b481cd974576f40a598a69b6 | % CIRCLE - Draws a circle.
%
% Usage: circle(c, r, n, col)
%
% Arguments: c - A 2-vector [x y] specifying the centre.
% r - The radius.
% n - Optional number of sides in the polygonal approximation.
% (defualt is 16 sides)
% col - optional colour, defaults to blue... |
github | Ciaran1981/SeAMS-master | showdivim.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/showdivim.m | 2,519 | utf_8 | 9205933da4b7d7051f7944c5724dc03b | % SHOWDIVIM - Displays image with diverging colour map
%
% For data to be displayed correctly with a diverging colour map it is
% important that the data values are respected so that the reference value in
% the data is correctly associated with the centre entry of a diverging
% colour map.
%
% In contrast, default dis... |
github | Ciaran1981/SeAMS-master | applycolourmap.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/applycolourmap.m | 2,248 | utf_8 | cdab830abbc0e87f8934481ecf26f5c4 | % APPLYCOLOURMAP Applies colourmap to a single channel image to obtain an RGB result
%
% Usage: rgbim = applycolourmap(im, map, range)
%
% Arguments: im - Single channel image to apply colourmap to.
% map - RGB colourmap of size ncolours x 3. RGB values are
% floating point values in the... |
github | Ciaran1981/SeAMS-master | derespolar.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/derespolar.m | 2,543 | utf_8 | 16675236c863fa3ce1c748e6f5264835 | % DERESPOLAR - Desresolves image in polar coordinates.
%
% Performs a deresolution operation on an image using Polar Coordinates
%
% Usage: deres = derespolar(im, nr, na, xc, yc)
% where: nr = resolution in the radial direction
% na = resolution in the angular direction
% ... |
github | Ciaran1981/SeAMS-master | map2geosofttbl.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/map2geosofttbl.m | 1,642 | utf_8 | 8886e0a749224765428fd3f92e8ac2c4 | % MAP2GEOSOFTTBL Converts MATLAB colourmap to Geosoft .tbl file
%
% Usage: map2geosofttbl(map, filename, cmyk)
%
% Arguments: map - N x 3 rgb colourmap
% filename - Output filename
% cmyk - Optional flag 0/1 indicating whether CMYK values should
% be written. Defaults to 0 whe... |
github | Ciaran1981/SeAMS-master | digipts.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/digipts.m | 876 | utf_8 | 95a93e018771e295649e1cc41496df4e | % DIGIPTS - digitise points in an image
%
% Function to digitise points in an image. Points are digitised by clicking
% with the left mouse button. Clicking any other button terminates the
% function. Each location digitised is marked with a red '+'.
%
% Usage: [u,v] = digipts
%
% where u and v are nx1 arrays of x... |
github | Ciaran1981/SeAMS-master | polyval2d.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/polyval2d.m | 1,403 | utf_8 | 699c1158bb9d569730ba4b087241556c | % POLYVAL2D Evaluates 2D polynomial surface generated by POLYFIT2D
%
% Usage: z = polyval2d(x, y, c)
%
% Arguments: x, y - Locations where polynomial is to be evaluated
% c - Coefficients of polynomial as generated by polyfit2d
%
% Returns z - The surface values evalated ... |
github | Ciaran1981/SeAMS-master | implace.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/implace.m | 3,014 | utf_8 | e28ca1e9784b3b7297c12b70c7278015 | % IMPLACE - place image at specified location within larger image
%
% Usage: newim = implace(im1, im2, roff, coff)
%
% Arguments:
%
% im1 - Image that im2 is to be placed in.
% im2 - Image to be placed.
% roff - Row and column offset of placement of im2 relative
% coff to im1, (0,0) aligns ... |
github | Ciaran1981/SeAMS-master | namenpath.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/namenpath.m | 921 | utf_8 | 2f308fc4b71683904c79d16a0a402c8e | % NAMENPATH Returns filename and its path from a full filename
%
% Usage: [name, pth] = namenpath(fullfilename)
%
% Argument: fullfilename - filename specifier which may include directory
% path specification
%
% Returns: name - The filename without directory path specification
% ... |
github | Ciaran1981/SeAMS-master | rgb2cmyk.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/rgb2cmyk.m | 1,000 | utf_8 | 21df7ae00f80e81c2fb8577985fd5f65 | % RGB2CMYK - Basic conversion of RGB colour table to cmyk
%
% Usage: cmyk = rgb2cmyk(map)
%
% Argument: map - N x 3 table of RGB values (assumed 0 - 1)
% Returns: cmyk - N x 4 table of cmyk values
%
% Note that you can use MATLAB's functions MAKECFORM and APPLYCFORM to
% perform the conversion. However I find... |
github | Ciaran1981/SeAMS-master | removenan.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/removenan.m | 1,057 | utf_8 | 69d193c99b44b881024b4b92777413b4 | % REMOVENAN - removes NaNs from an array
%
% Usage: m = removenan(a, defaultval)
%
% a - The matrix containing NaN values
% defaultval - The default value to replace NaNs
% if omitted this defaults to 0
%
% See Also: FILLNAN
% Copyright (c) 2004 Peter Kovesi
% School of Computer Science & ... |
github | Ciaran1981/SeAMS-master | togglefigs.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/togglefigs.m | 3,177 | utf_8 | fa815dc34f1c5f91ce9a79d45915bca9 | % TOGGLEFIGS Convenient switching between figures to aid comparison
%
% Usage 1: togglefigs
%
% Use arrow keys to index through figures that are currently being displayed, or
% enter single digit figure numbers to select figures directly.
% Hit ''X'' to exit.
%
% Usage 2: togglefigs(figs)
% Argument: figs - figur... |
github | Ciaran1981/SeAMS-master | geosofttbl2map.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/geosofttbl2map.m | 1,313 | utf_8 | 97f965db62a9a1ea1d2d5bccb32bd608 | % GEOSOFTTBL2MAP Converts Geosoft .tbl file to MATLAB colourmap
%
% Usage: geosofttbl2map(filename, map)
%
% Arguments: filename - Input filename of tbl file
% map - N x 3 rgb colourmap
%
%
% This function reads a Geosoft .tbl file and converts the KCMY values to a RGB
% colourmap.
%
% See als... |
github | Ciaran1981/SeAMS-master | matscii.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/matscii.m | 3,441 | utf_8 | 58129d6167a995d9b76c9cce83edd57a | % MATSCII - Function to generate ASCII images
%
% Usage: picci = matscii(im, width, gamma, filename)
%
% im - 2D array of image brightness colours.
% Image can be grey scale or colour.
% width - desired width of resulting character image.
% gamma - optional gamma value to enhance contrast,
% ... |
github | Ciaran1981/SeAMS-master | chirpexp.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/chirpexp.m | 1,705 | utf_8 | 10fa570e744728ca340a78b6f94c7c64 | % CHIRPEXP Generates exponential chirp test image
%
% The test image consists of a linear chirp signal in the horizontal direction
% with the amplitude of the chirp being modulated from 1 at the top of the image
% to 0 at the bottom.
%
% Usage: im = chirpexp(sze, f0, k, p)
%
% Arguments: sze - [rows cols] specify... |
github | Ciaran1981/SeAMS-master | geoseries.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/geoseries.m | 1,666 | utf_8 | 8235bdedc3251f7e5b688f27de734492 | % GEOSERIES Generate geometric series
%
% Usage 1: s = geoseries(s1, mult, n)
%
% Arguments: s1 - The starting value in the series.
% mult - The scaling factor between succesive values.
% n - The desired number of elements in the series.
%
% Usage 2: s = geoseries([s1 sn], n)
%
% Arg... |
github | Ciaran1981/SeAMS-master | strstartswith.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/strstartswith.m | 704 | utf_8 | 7d481f98266b52e06c23ec8c2fc6265d | % STRSTARTSWITH - tests if a string starts with a specified substring
%
% Usage: b = strstartswith(str, substr)
%
% Arguments:
% str - string to be tested
% substr - starting string that we are hoping to find
%
% Returns: true/false. Note that case of strings is ignored
%
% See also: STRENDSWITH
% P... |
github | Ciaran1981/SeAMS-master | cubicroots.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/cubicroots.m | 2,783 | utf_8 | 88bc63423a4c8bcc0d94d2848fa6be1f | % CUBICROOTS - finds real valued roots of cubic
%
% Usage: root = cubicroots(a,b,c,d)
%
% Arguments:
% a, b, c, d - coeffecients of cubic defined as
% ax^3 + bx^2 + cx + d = 0
% Returns:
% root - an array of 1 or 3 real valued roots
%
% Reference: mathworld.wolfram.com/CubicFormula.html
% ... |
github | Ciaran1981/SeAMS-master | findimage.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/findimage.m | 1,030 | utf_8 | d22c0bf85ea1bee389ca4ca6abdc58f4 | % FINDIMAGE - invokes image dialog box for interactive image loading
%
% Usage: [im, filename] = findimage(disp, c)
%
% Arguments:
% disp - optional flag 1/0 that results in image being displayed
% c - optional flag 1/0 that results in imcrop being invoked
% Returns:
% im - image
%... |
github | Ciaran1981/SeAMS-master | strendswith.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/strendswith.m | 1,172 | utf_8 | a53036600dfe2e1dfcf91ecf2909348b | % STRENDSWITH - tests if a string ends with a specified substring
%
% Usage: b = strendswith(str, substr)
%
% Arguments:
% str - string to be tested
% substr - ending of string that we are hoping to find.
% substr may be a cell array of string endings, in this case
% the fu... |
github | Ciaran1981/SeAMS-master | viewlabspace.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/viewlabspace.m | 7,192 | utf_8 | cbfb89e9024d64a0fe77892badc56b0c | % VIEWLABSPACE Visualisation of L*a*b* space
%
% Usage: viewlabspace(dL)
%
% Argument: dL - Optional increment in lightness with each slice of L*a*b*
% space. Defaults to 5
%
% Function allows interactive viewing of a sequence of images corresponding to
% different slices of lightness in L*a*b* s... |
github | Ciaran1981/SeAMS-master | circularstruct.m | .m | SeAMS-master/Utilities/MatlabFns/Misc/circularstruct.m | 648 | utf_8 | aec494462bd52689db93faf1d6a9ea60 | % CIRCULARSTRUCT
%
% Function to construct a circular structuring element
% for morphological operations.
%
% function strel = circularstruct(radius)
%
% Note radius can be a floating point value though the resulting
% circle will be a discrete approximation
%
% Peter Kovesi March 2000
function strel = circularstruc... |
github | Ciaran1981/SeAMS-master | supertorus.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/supertorus.m | 2,444 | utf_8 | 91c1e7e27c0219d233582240dcb7c17e | % SUPERTORUS - generates a 'supertorus' surface
%
% Usage:
% [x,y,z] = supertorus(xscale, yscale, zscale, rad, e1, e2, n)
%
% Arguments:
% xscale, yscale, zscale - Scaling in the x, y and z directions.
% e1, e2 - Exponents of the x and y coords.
% rad - Mean radius of torus.... |
github | Ciaran1981/SeAMS-master | superquad.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/superquad.m | 2,798 | utf_8 | 2dfc95eb41c2bf03bb78f5f0bb8b7c07 | % SUPERQUAD - generates a superquadratic surface
%
% Usage: [x,y,z] = superquad(xscale, yscale, zscale, e1, e2, n)
%
% Arguments:
% xscale, yscale, zscale - Scaling in the x, y and z directions.
% e1, e2 - Exponents of the x and y coords.
% n - Number of subdivisions of logitude an... |
github | Ciaran1981/SeAMS-master | gplot3d.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/gplot3d.m | 3,051 | utf_8 | 023a1e53d0acecbb7ff057579a8854eb | function [Xout,Yout,Zout]=gplot3d(A,xyz,lc)
%GPLOT3D Plot graph, as in "graph theory".
% This is a modification of MATLAB's GPLOT function for vertices in 3D.
% GPLOT3D(A,xyz) plots the graph specified by A and xyz. A graph, G, is
% a set of nodes numbered from 1 to n, and a set of connections, or
% edges, betw... |
github | Ciaran1981/SeAMS-master | icosahedron.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/icosahedron.m | 3,196 | utf_8 | deced73cec8d737a7b03e362c983c1e5 | % ICOSAHEDRON Generates vertices and graph of icosahedron
%
% Usage: [xyz, A, F] = icosahedron(radius)
%
% Argument: radius - Optional radius of icosahedron. Defaults to 1.
% Returns: xyz - 12x3 matrix of vertex coordinates.
% A - Adjacency matrix defining connectivity of vertices.
% ... |
github | Ciaran1981/SeAMS-master | geodome.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/geodome.m | 7,596 | utf_8 | d70bca00571f6191c84ac6221a8de9b3 | % GEODOME Generates geodesic sphere
%
% Usage: [xyz, A, F] = geodome(frequency, radius)
%
% The sphere is generated from subdivisions of the faces of an icosahedron.
%
% Arguments:
% frequency - The number of subdivisions of each edge of an
% icosahedron. A frequency of 1 will give you a... |
github | Ciaran1981/SeAMS-master | drawfaces.m | .m | SeAMS-master/Utilities/MatlabFns/Shapes/drawfaces.m | 2,247 | utf_8 | 5c8a03943a5894a51836931271cbc606 | % DRAWFACES Draws triangular faces defined by vertices and face vertex lists
%
% Usage: drawfaces(xyz, F, col)
%
% Arguments:
% xyz - A nx3 matrix defining the vertex list, each row is the
% x,y,z coordinates of a vertex.
% F - A mx3 matrix defining the face list. Each r... |
github | Ciaran1981/SeAMS-master | matchbymonogenicphase.m | .m | SeAMS-master/Utilities/MatlabFns/Match/matchbymonogenicphase.m | 9,328 | utf_8 | e63225faedcf391fb6411d27d71a208e | % MATCHBYMONOGENICPHASE - match image feature points using monogenic phase data
%
% Function generates putative matches between previously detected
% feature points in two images by looking for points that have minimal
% differences in monogenic phase data within windows surrounding each point.
% Only points that corre... |
github | Ciaran1981/SeAMS-master | matchbycorrelation.m | .m | SeAMS-master/Utilities/MatlabFns/Match/matchbycorrelation.m | 7,076 | utf_8 | 12d7e8d4ad6e140c94444ddc3682d518 | % MATCHBYCORRELATION - match image feature points by correlation
%
% Function generates putative matches between previously detected
% feature points in two images by looking for points that are maximally
% correlated with each other within windows surrounding each point.
% Only points that correlate most strongly with... |
github | Ciaran1981/SeAMS-master | phasesym.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasesym.m | 22,344 | utf_8 | fe0d5de58f828487776d00bfabd5f354 | % PHASESYM - Function for computing phase symmetry on an image.
%
% This function calculates the phase symmetry of points in an image.
% This is a contrast invariant measure of symmetry. This function can be
% used as a line and blob detector. The greyscale 'polarity' of the lines
% that you want to find can be speci... |
github | Ciaran1981/SeAMS-master | phasesymmono.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasesymmono.m | 19,431 | utf_8 | 30a844da3cb8a9df67b71b7235e99d8b | % PHASESYMMONO - phase symmetry of an image using monogenic filters
%
% This function calculates the phase symmetry of points in an image.
% This is a contrast invariant measure of symmetry. This function can be
% used as a line and blob detector. The greyscale 'polarity' of the lines
% that you want to find can be s... |
github | Ciaran1981/SeAMS-master | phasecong2.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasecong2.m | 22,754 | utf_8 | 4c97e691728c820aefd65a29a31d6dc5 | % PHASECONG2 - Computes edge and corner phase congruency in an image.
%
% This function calculates the PC_2 measure of phase congruency.
% This function supersedes PHASECONG
%
% There are potentially many arguments, here is the full usage:
%
% [M m or ft pc EO] = phasecong2(im, nscale, norient, minWaveLength... |
github | Ciaran1981/SeAMS-master | phasecong3.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasecong3.m | 26,465 | utf_8 | 0c014f3a3af8bd7658da095b5c402b61 | % PHASECONG3 - Computes edge and corner phase congruency in an image.
%
% This function calculates the PC_2 measure of phase congruency.
% This function supersedes PHASECONG2 and PHASECONG being faster and requires
% less memory
%
% There are potentially many arguments, here is the full usage:
%
% [M m or f... |
github | Ciaran1981/SeAMS-master | noisecomp.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/noisecomp.m | 7,750 | utf_8 | 9676f0608db5db81178e20d70f317783 | % NOISECOMP - Function for denoising an image
%
% function cleanimage = noisecomp(image, k, nscale, mult, norient, softness)
%
% Parameters:
% k - No of standard deviations of noise to reject 2-3
% nscale - No of filter scales to use (5-7) - the more scales used
% the mor... |
github | Ciaran1981/SeAMS-master | loggabor.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/loggabor.m | 1,707 | utf_8 | c15d2b1f67996d38d0003a5309d2f76f | % LOGGABOR
%
% Plots 1D log-Gabor functions
%
% Author: Peter Kovesi
% School of Computer Science & Software Engineering
% The University of Western Australia
% pk @ csse uwa edu au http://www.csse.uwa.edu.au/~pk
function loggabor(nscale, wmin, mult, konwo)
Npts = 2048;
Nwaves = 1;
wma... |
github | Ciaran1981/SeAMS-master | phasecongmono.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasecongmono.m | 22,519 | utf_8 | 5d0d160cd66ce1b8ed2bc3db2d332a8f | % PHASECONGMONO - phase congruency of an image using monogenic filters
%
% This code is considerably faster than PHASECONG3 but you may prefer the
% output from PHASECONG3's oriented filters.
%
% There are potentially many arguments, here is the full usage:
%
% [PC or ft T] = ...
% phasecongmono(im, n... |
github | Ciaran1981/SeAMS-master | highpassmonogenic.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/highpassmonogenic.m | 4,645 | utf_8 | 6f1ebd1682ed7dda4670c52c557cb788 | % HIGHPASSMONOGENIC Compute phase and amplitude on highpass images via monogenic filters
%
% Usage: [phase, orient, E, f, h1f, h2f] = highpassmonogenic(im, maxwavelength, n)
%
% Arguments: im - Image to be processed.
% maxwavelength - Wavelength(s) in pixels of the cut-in frequency(ies)
% ... |
github | Ciaran1981/SeAMS-master | step2line.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/step2line.m | 2,815 | utf_8 | 3de96275d1352c256efd4160cfc1ec2d | % STEP2LINE - Generate test image interpolating a step to a line.
%
% Function to generate a test image where the feature type changes
% from a step edge to a line feature from top to bottom
%
% Usage:
% im = step2line(nscales, ampexponent, sze)
%
% nscales - No of fourier components used to construct... |
github | Ciaran1981/SeAMS-master | odot.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/odot.m | 3,720 | utf_8 | 336255093ed76b067368d764f3d823d5 | % ODOT - Demonstrates odot and oslash operators on 1D signal
%
% Usage: [smooth, energy] = odot(f, K)
%
% Arguments: f - a 1D signal
% K - optional 'Weiner' type factor to condition the results
% where division by 0 occurs in the 'oslash' operation.
% K defaults to ... |
github | Ciaran1981/SeAMS-master | dispfeat.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/dispfeat.m | 6,082 | utf_8 | 1baad565a14949d330f8fe298e5a0322 | % DISPFEAT - Displays feature types as detected by PHASECONG.
%
% This function provides a visualisation of the feature types as detected
% by PHASECONG.
%
% Usage: im = dispfeat(ft, edgeim, 'l')
%
% Arguments: ft - An image providing the local weighted mean
% phase angle at every point in t... |
github | Ciaran1981/SeAMS-master | gaborconvolve.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/gaborconvolve.m | 10,723 | utf_8 | e6f93594f5594d23a349d49069729926 | % GABORCONVOLVE - function for convolving image with log-Gabor filters
%
% Usage: [EO, BP] = gaborconvolve(im, nscale, norient, minWaveLength, mult, ...
% sigmaOnf, dThetaOnSigma, Lnorm, feedback)
%
% Arguments:
% The convolutions are done via the FFT. Many of the parameters relate
% to the specification of th... |
github | Ciaran1981/SeAMS-master | monofilt.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/monofilt.m | 6,435 | utf_8 | 07ef46eb32d19a4d79e9ec304c6cb2d3 | % MONOFILT - Apply monogenic filters to an image to obtain 2D analytic signal
%
% Implementation of Felsberg's monogenic filters
%
% Usage: [f, h1f, h2f, A, theta, psi] = ...
% monofilt(im, nscale, minWaveLength, mult, sigmaOnf, orientWrap)
% 3 4 2 0.65 ... |
github | Ciaran1981/SeAMS-master | ppdrc.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/ppdrc.m | 6,128 | utf_8 | 618b559c40273d70cd8fe32a1bdbc061 | % PPDRC Phase Preserving Dynamic Range Compression
%
% Generates a series of dynamic range compressed images at different scales.
% This function is designed to reveal subtle features within high dynamic range
% images such as aeromagnetic and other potential field grids. Often this kind
% of data is presented using hi... |
github | Ciaran1981/SeAMS-master | plotgaborfilters.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/plotgaborfilters.m | 10,822 | utf_8 | 2734ffd48e7ead17030ee0fd2f31fce7 | % PLOTGABORFILTERS - Plots log-Gabor filters
%
% The purpose of this code is to see what effect the various parameter
% settings have on the formation of a log-Gabor filter bank.
%
% Usage: [Ffilter, Efilter, Ofilter] = plotgaborfilters(sze, nscale, norient,...
% minWaveLength, mu... |
github | Ciaran1981/SeAMS-master | spatialgabor.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/spatialgabor.m | 2,644 | utf_8 | 0d56aa13789e5563961e97238d519790 | % SPATIALGABOR - applies single oriented gabor filter to an image
%
% Usage:
% [Eim, Oim, Aim] = spatialgabor(im, wavelength, angle, kx, ky, showfilter)
%
% Arguments:
% im - Image to be processed.
% wavelength - Wavelength in pixels of Gabor filter to construct
% angle - Angle of... |
github | Ciaran1981/SeAMS-master | phasecong.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/phasecong.m | 16,644 | utf_8 | 693c5ec683ef5ce8c816379185261bf7 | % PHASECONG - Computes phase congruency on an image.
%
% Usage: [pc or ft] = phasecong(im)
%
% This function calculates the PC_2 measure of phase congruency.
% For maximum speed the input image should be square and have a
% size that is a power of 2, but the code will operate on images
% of arbitrary size.
%
%
% R... |
github | Ciaran1981/SeAMS-master | convexplpiccis.m | .m | SeAMS-master/Utilities/MatlabFns/PhaseCongruency/Docs/convexplpiccis.m | 2,884 | utf_8 | c73812719db08612eddaff3437e2413b | % Function to create images for the convolution explanation
function [spread, logGabor, gfilter] = convexplpiccis
rows = 200; cols = 200;
wavelength = 16;
sigmaOnf = 0.65;
angl = 1;
thetaSigma = 0.7;
[x,y] = meshgrid([-cols/2:(cols/2-1)]/cols,...
[-rows/2:(rows/2-1)]/rows);
radius ... |
github | Ciaran1981/SeAMS-master | needleplotgrad.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/needleplotgrad.m | 758 | utf_8 | c0bb3b31a34d8fc8cf86c384b5f2da52 | % NEEDLEPLOTGRAD - needleplot of 3D surface from gradient data
%
% Usage: needleplotgrad(dzdx, dzdy, len, spacing)
%
% dzdx, dzdy - 2D arrays of gradient with respect to x and y.
% len - length of needle to be plotted.
% spacing - sub-sampling interval to be used in the
% ... |
github | Ciaran1981/SeAMS-master | needleplotst.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/needleplotst.m | 1,443 | utf_8 | 86c5bdaa284362a76e6260f265211832 | % NEEDLEPLOTST - needleplot of 3D surface from slant tilt data
%
% Usage: needleplotst(slant, tilt, len, spacing)
%
% slant, tilt - 2D arrays of slant and tilt values
% len - length of needle to be plotted
% spacing - sub-sampling interval to be used in the
% ... |
github | Ciaran1981/SeAMS-master | grad2slanttilt.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/grad2slanttilt.m | 1,097 | utf_8 | 051e7b40ca4bf4dbefca92a57a98e63f | % GRAD2SLANTTILT - gradient in x y to slant tilt
%
% Function to convert a matrix of surface gradients to
% slant and tilt values.
%
% Usage: [slant, tilt] = grad2slanttilt(dzdx, dzdy)
%
% Copyright (c) 2003 Peter Kovesi
% School of Computer Science & Software Engineering
% The University of Western Aus... |
github | Ciaran1981/SeAMS-master | testp.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/testp.m | 2,436 | utf_8 | 9568a363ea5a8f8a4a4d28e4b6bdb4ff | % Function to make ramps test surface for shape from shapelet testing
%
% Usage:
% function [z,s,t] = testp(noise)
%
% Arguments:
% noise - An optional parameter specifying the standard
% deviation of Gaussian noise to add to the slant and tilt
% ... |
github | Ciaran1981/SeAMS-master | frankotchellappa.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/frankotchellappa.m | 2,612 | utf_8 | 56bcc95bb901b40d8eee5f4e8a533b91 | % FRANKOTCHELLAPPA - Generates integrable surface from gradients
%
% An implementation of Frankot and Chellappa'a algorithm for constructing
% an integrable surface from gradient information.
%
% Usage: z = frankotchellappa(dzdx,dzdy)
%
% Arguments: dzdx, - 2D matrices specifying a grid of gradients of z
% ... |
github | Ciaran1981/SeAMS-master | slanttilt2grad.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/slanttilt2grad.m | 1,090 | utf_8 | 7fb013bc78a565346b80337d3535d16d | % SLANTTILT2GRAD - slant and tilt to gradient in x y
%
% Function to convert a matrix of slant and tilt values to
% surface gradients.
%
% Usage: [dzdx, dzdy] = slanttilt2grad(slant, tilt)
%
% Copyright (c) 2003 Peter Kovesi
% School of Computer Science & Software Engineering
% The University of Western... |
github | Ciaran1981/SeAMS-master | shapeletsurf.m | .m | SeAMS-master/Utilities/MatlabFns/Shapelet/shapeletsurf.m | 9,292 | utf_8 | ab9b782a8bb8c8d669105b6ffe6dba0c | % SHAPELETSURF - reconstructs surface from surface normals using shapelets
%
% Function reconstructs an estimate of a surface from its surface normals by
% correlating the surface normals with that those of a bank of shapelet
% basis functions. The correlation results are summed to produce the
% reconstruction. T... |
github | Ciaran1981/SeAMS-master | ridgefreq.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/ridgefreq.m | 2,993 | utf_8 | 06dee0fde68607594d459ca300e6d102 | % RIDGEFREQ - Calculates a ridge frequency image
%
% Function to estimate the fingerprint ridge frequency across a
% fingerprint image. This is done by considering blocks of the image and
% determining a ridgecount within each block by a call to FREQEST.
%
% Usage:
% [freqim, medianfreq] = ridgefreq(im, mask, orienti... |
github | Ciaran1981/SeAMS-master | freqest.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/freqest.m | 3,637 | utf_8 | a4f96f1105673bbd0d6851306a9712c8 | % FREQEST - Estimate fingerprint ridge frequency within image block
%
% Function to estimate the fingerprint ridge frequency within a small block
% of a fingerprint image. This function is used by RIDGEFREQ
%
% Usage:
% freqim = freqest(im, orientim, windsze, minWaveLength, maxWaveLength)
%
% Arguments:
% im... |
github | Ciaran1981/SeAMS-master | ridgefilter.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/ridgefilter.m | 4,770 | utf_8 | a6443447a69fa10919e580f23e30c264 | % RIDGEFILTER - enhances fingerprint image via oriented filters
%
% Function to enhance fingerprint image via oriented filters
%
% Usage:
% newim = ridgefilter(im, orientim, freqim, kx, ky, showfilter)
%
% Arguments:
% im - Image to be processed.
% orientim - Ridge orientation image, obtained fr... |
github | Ciaran1981/SeAMS-master | ridgesegment.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/ridgesegment.m | 2,320 | utf_8 | 2bb49bf39ab2cc6bdd3a9e158ef0a054 | % RIDGESEGMENT - Normalises fingerprint image and segments ridge region
%
% Function identifies ridge regions of a fingerprint image and returns a
% mask identifying this region. It also normalises the intesity values of
% the image so that the ridge regions have zero mean, unit standard
% deviation.
%
% This function... |
github | Ciaran1981/SeAMS-master | plotridgeorient.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/plotridgeorient.m | 1,898 | utf_8 | 830409dd2081c8e49dec602b704f949d | % PLOTRIDGEORIENT - plot of ridge orientation data
%
% Usage: plotridgeorient(orient, spacing, im, figno)
%
% orientim - Ridge orientation image (obtained from RIDGEORIENT)
% spacing - Sub-sampling interval to be used in ploting the
% orientation data the (Plotting every point i... |
github | Ciaran1981/SeAMS-master | ridgeorient.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/ridgeorient.m | 4,785 | utf_8 | d0a1e0389d1ba0031b88a48553cbba9f | % RIDGEORIENT - Estimates the local orientation of ridges in a fingerprint
%
% Usage: [orientim, reliability, coherence] = ridgeorientation(im, gradientsigma,...
% blocksigma, ...
% orientsmoothsigma)
%
% Arguments: im ... |
github | Ciaran1981/SeAMS-master | testfin.m | .m | SeAMS-master/Utilities/MatlabFns/FingerPrints/Docs/testfin.m | 1,759 | utf_8 | 8bd1035571269c92bbeebfee58b37d75 | % TESTFIN
%
% Function to demonstrate use of fingerprint code
%
% Usage: [newim, binim, mask, reliability] = testfin(im);
%
% Argument: im - Fingerprint image to be enhanced.
%
% Returns: newim - Ridge enhanced image.
% binim - Binary version of enhanced image.
% mask - Ridge-like regi... |
github | Ciaran1981/SeAMS-master | adjcontrast.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/adjcontrast.m | 1,772 | utf_8 | df466fd21398669febf7971b25906279 | % ADJCONTRAST - Adjusts image contrast using sigmoid function.
%
% function g = adjcontrast(im, gain, cutoff)
%
% Arguments:
% im - image to be processed.
% gain - controls the actual contrast;
% A value of about 5 is neutral (little change).
% A valu... |
github | Ciaran1981/SeAMS-master | histtruncate.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/histtruncate.m | 4,297 | utf_8 | 8662c6c4ad1997ffd87d3053e4425473 | % HISTTRUNCATE - Truncates ends of an image histogram.
%
% Function truncates a specified percentage of the lower and
% upper ends of an image histogram.
%
% This operation allows grey levels to be distributed across
% the primary part of the histogram. This solves the problem
% when one has, say, a few very bright va... |
github | Ciaran1981/SeAMS-master | adjgamma.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/adjgamma.m | 1,278 | utf_8 | 7923fe5b3ada0cd08b5edf5528839448 | % ADJGAMMA - Adjusts image gamma.
%
% function g = adjgamma(im, g)
%
% Arguments:
% im - image to be processed.
% g - image gamma value.
% Values in the range 0-1 enhance contrast of bright
% regions, values > 1 enhance contrast in dark
% ... |
github | Ciaran1981/SeAMS-master | histeqfloat.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/histeqfloat.m | 2,523 | utf_8 | c9d2c9d7f401952ba393c03926112405 | % HISTEQFLOAT Floating point image histogram equalisation
%
% Histogram equalisation for images containing floating point values. The number
% of distinct values in the output image will be the same as the number of
% distinct values in the input image.
%
% Usage: nim = histeqfloat(im, nbins)
%
% Arguments: im - Im... |
github | Ciaran1981/SeAMS-master | extractfields.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/extractfields.m | 3,195 | utf_8 | fc2a0b4ffe621599238d4558ebbab88e | % EXTRACTFIELDS - Separates fields from a video frame.
%
% Function to separate fields from a video frame
% and (optionally) interpolate intermediate lines
% for each field.
%
% Usage: [f1, f2] = extractfields(im,interp)
%
% f1 and f2 are the odd and even fields
% im is the frame to be split
% interp is an optio... |
github | Ciaran1981/SeAMS-master | interpfields.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/interpfields.m | 2,616 | utf_8 | 995c2497c2bd2f01a7fc72cc0c552c7e | % INTERPFIELDS - Interpolates lines on a field extracted from a video frame.
%
% Function to interpolate intermediate lines on odd or even
% fields extracted from a video frame
%
% Usage: intp = interpfields(field, oddeven);
%
%
% Arguments: field - the field to be interpolated
% oddeven - optional fl... |
github | Ciaran1981/SeAMS-master | agc.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/agc.m | 3,871 | utf_8 | e4153ae09348114147d2cd732b327195 | % AGC Automatic Gain Control for geophysical images
%
% Usage: agcim = agc(im, sigma, p, r)
%
% Arguments: im - The input image. NaNs in the image are handled
% automatically.
% sigma - The standard deviation of the Gaussian filter used to
% determine local image me... |
github | Ciaran1981/SeAMS-master | normalise.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/normalise.m | 2,312 | utf_8 | 5ea78a2901be537abb01b07cd78b3ddf | % NORMALISE - Normalises image values to 0-1, or to desired mean and variance
%
% Usage:
% n = normalise(im)
%
% Offsets and rescales image so that the minimum value is 0
% and the maximum value is 1. Result is returned in n. If the image is
% colour the image is converted to HSV and the value/intensity c... |
github | Ciaran1981/SeAMS-master | remapim.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/remapim.m | 2,589 | utf_8 | 197534d04489cb4cfd3b0d641d848c0a | % REMAPIM - Remaps image intensity values
%
% Usage: newim = remapim(im, x, y, rescale)
% \
% optional
% Arguments
% im - Image to be transformed.
% x,y - Coordinates of spline control points that define the
% ... |
github | Ciaran1981/SeAMS-master | greytrans.m | .m | SeAMS-master/Utilities/MatlabFns/GreyTrans/greytrans.m | 4,462 | utf_8 | f2f1254324be1d786b5fee45794f6bca | % GREYTRANS - Interactive greyscale manipulation of an image (RGB or greyscale)
%
% Usage: [newim, x, y] = greytrans(im, npts)
%
% Arguments
% im - Image to be transformed
% npts - Optional number of control points of the spline
% defining the mapping function. This defaults... |
github | Ciaran1981/SeAMS-master | ransacfitfundmatrix7.m | .m | SeAMS-master/Utilities/MatlabFns/Robust/ransacfitfundmatrix7.m | 6,338 | utf_8 | e8bb75917201904ec6c3bdd4f36479f1 | % RANSACFITFUNDMATRIX7 - fits fundamental matrix using RANSAC
%
% Usage: [F, inliers] = ransacfitfundmatrix7(x1, x2, t)
%
% This function requires Andrew Zisserman's 7 point fundamental matrix code.
% See: http://www.robots.ox.ac.uk/~vgg/hzbook/code/
%
% Arguments:
% x1 - 2xN or 3xN set of homogeneous poi... |
github | Ciaran1981/SeAMS-master | fitline3d.m | .m | SeAMS-master/Utilities/MatlabFns/Robust/fitline3d.m | 1,247 | utf_8 | 1f7cee8975c9f96bfb8aa43046474e5f | % FITLINE3D - Fits a line to a set of 3D points
%
% Usage: [L] = fitline3d(XYZ)
%
% Where: XYZ - 3xNpts array of XYZ coordinates
% [x1 x2 x3 ... xN;
% y1 y2 y3 ... yN;
% z1 z2 z3 ... zN]
%
% Returns: L - 3x2 matrix consisting of the two endpoints of the line
% ... |
github | Ciaran1981/SeAMS-master | ransacfitfundmatrix.m | .m | SeAMS-master/Utilities/MatlabFns/Robust/ransacfitfundmatrix.m | 5,544 | utf_8 | b87d72c56902f27c573b6c545f6754ab | % RANSACFITFUNDMATRIX - fits fundamental matrix using RANSAC
%
% Usage: [F, inliers] = ransacfitfundmatrix(x1, x2, t)
%
% Arguments:
% x1 - 2xN or 3xN set of homogeneous points. If the data is
% 2xN it is assumed the homogeneous scale factor is 1.
% x2 - 2xN or 3xN set of homogeneo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.