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
mhrztrk/thesis-src-master
homoTrans.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/homoTrans.m
879
utf_8
bde17d25ed5c319d12d7c6c52fa76ac9
% HOMOTRANS - homogeneous transformation of points % % Function to perform a transformation on homogeneous points/lines % The resulting points are normalised to have a homogeneous scale of 1 % % Usage: % t = homoTrans(P,v); % % Arguments: % P - 3 x 3 or 4 x 4 transformation matrix % v - ...
github
mhrztrk/thesis-src-master
imTrans.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/imTrans.m
6,645
utf_8
fea80d088fd8c2973f2ee271ab3dc146
% IMTRANS - Homogeneous transformation of an image. % % Applies a geometric transform to an image % % [newim, newT] = imTrans(im, T, region, sze); % % Arguments: % im - The image to be transformed. % T - The 3x3 homogeneous transformation matrix. % region - An optional 4 element vector ...
github
mhrztrk/thesis-src-master
affinefundmatrix.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/affinefundmatrix.m
3,219
utf_8
7cbd1c7c427cf3466f0df1c9c57cd131
% AFFINEFUNDMATRIX - computes affine fundamental matrix from 4 or more points % % Function computes the affine fundamental matrix from 4 or more matching % points in a stereo pair of images. The Gold Standard algorithm given % by Hartley and Zisserman p351 (2nd Ed.) is used. % % Usage: [F, e1, e2] = affinefundmatri...
github
mhrztrk/thesis-src-master
imTransD.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/imTransD.m
3,965
utf_8
253939b60899cb7418ae8eebee0f8b87
% IMTRANSD - Homogeneous transformation of an image. % % This is a stripped down version of imTrans which does not apply any origin % shifting to the transformed image % % Applies a geometric transform to an image % % newim = imTransD(im, T, sze, lhrh); % % Arguments: % im - The image to be transformed. %...
github
mhrztrk/thesis-src-master
hnormalise.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/hnormalise.m
1,007
utf_8
0746cbe968e6a6c352eb7a61604922dd
% HNORMALISE - Normalises array of homogeneous coordinates to a scale of 1 % % Usage: nx = hnormalise(x) % % Argument: % x - an Nxnpts array of homogeneous coordinates. % % Returns: % nx - an Nxnpts array of homogeneous coordinates rescaled so % that the scale values nx(N,:) are all 1. % ...
github
mhrztrk/thesis-src-master
homography2d.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/homography2d.m
2,493
utf_8
60985e0ab95fe690d769c83adff61080
% HOMOGRAPHY2D - computes 2D homography % % Usage: H = homography2d(x1, x2) % H = homography2d(x) % % Arguments: % x1 - 3xN set of homogeneous points % x2 - 3xN set of homogeneous points such that x1<->x2 % % x - If a single argument is supplied it is assumed ...
github
mhrztrk/thesis-src-master
digiplane.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/digiplane.m
2,368
utf_8
9634b931390f4536b8d7280b8745f6a1
% DIGIPLANE - Digitise and transform points within a planar region in an image. % % This function allows you to digitise points within a planar region of an % image for which an inverse perspective transformation has been previously % determined using, say, INVPERSP. The digitised points are then % transformed into co...
github
mhrztrk/thesis-src-master
circle.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/circle.m
1,218
utf_8
ba9706e6c9e81a1fc3191f944d5891d2
% 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
mhrztrk/thesis-src-master
makeinhomogeneous.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/makeinhomogeneous.m
791
utf_8
ce76d362845ed0c7eef257d1d0406795
% MAKEINHOMOGENEOUS - Converts homogeneous coords to inhomogeneous coordinates % % Usage: x = makehomogeneous(hx) % % Argument: % hx - an N x npts array of homogeneous coordinates. % % Returns: % x - an (N-1) x npts array of inhomogeneous coordinates % % Warning: If there are any points at infinity ...
github
mhrztrk/thesis-src-master
equalAngleConstraint.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/equalAngleConstraint.m
1,377
utf_8
ad2156349de0fe1efde5bee65bc38203
% equalAngleConstraint - Affine transform constraints given two equal angles. % % Function calculates centre and radius of the constraint % circle in alpha-beta space generated by having two equal % (but unknown) angles between two pairs of lines in % an affine image % % Usage: [c, r] = equalAngleConstraint(la1...
github
mhrztrk/thesis-src-master
homogreprojerr.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/homogreprojerr.m
1,423
utf_8
15a06a2d240a29dd5d8a3a1e64268057
% HOMOGREPROJERR % % Computes the symmetric reprojection error for points related by a % homography. % % Usage: % d2 = homogreprojerr(H, x1, x2) % % Arguments: % H - The homography. % x1, x2 - [ndim x npts] arrays of corresponding homogeneous % data points. % % Retu...
github
mhrztrk/thesis-src-master
rq3.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/rq3.m
1,834
utf_8
c4bc67ad27ec99fe1dd731b4d56762c1
% RQ3 RQ decomposition of 3x3 matrix % % Usage: [R,Q] = rq3(A) % % Argument: A - 3 x 3 matrix % Returns: R - Upper triangular 3 x 3 matrix % Q - 3 x 3 orthonormal rotation matrix % Such that R*Q = A % % The signs of the rows and columns of R and Q are chosen so that the diagonal % elements of R are ...
github
mhrztrk/thesis-src-master
knownAngleConstraint.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/knownAngleConstraint.m
929
utf_8
b51714229fca51b80fc72c837575dd25
% knownAngleConstraint - Affine transform constraints given a known angle. % % Function calculates centre and radius of the constraint % circle in alpha-beta space generated by having a known % angle between two lines in an affine image % % Usage: [c, r] = knownAngleConstraint(la, lb, theta) % % Where: la and l...
github
mhrztrk/thesis-src-master
fundmatrix.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/fundmatrix.m
3,961
utf_8
250dfa8051640daab30229f35667f4d6
% FUNDMATRIX - computes fundamental matrix from 8 or more points % % Function computes the fundamental matrix from 8 or more matching points in % a stereo pair of images. The normalised 8 point algorithm given by % Hartley and Zisserman p265 is used. To achieve accurate results it is % recommended that 12 or more poi...
github
mhrztrk/thesis-src-master
hline.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/hline.m
1,584
utf_8
7887599478d2ebb7e50fdef565f8f3f5
% HLINE - Plot 2D lines defined in homogeneous coordinates. % % Function for ploting 2D homogeneous lines defined by 2 points % or a line defined by a single homogeneous vector % % Usage: hline(p1,p2) where p1 and p2 are 2D homogeneous points. % hline(p1,p2,'colour_name') 'black' 'red' 'white' etc % ...
github
mhrztrk/thesis-src-master
homography1d.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/homography1d.m
2,662
utf_8
bf1d84269964988e4400e66cabf14617
% HOMOGRAPHY1D - computes 1D homography % % Usage: H = homography1d(x1, x2) % % Arguments: % x1 - 2xN set of homogeneous points % x2 - 2xN set of homogeneous points such that x1<->x2 % Returns: % H - the 2x2 homography such that x2 = H*x1 % % This code is modelled after the norm...
github
mhrztrk/thesis-src-master
decomposecamera.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/decomposecamera.m
3,156
utf_8
efd38c35a47ed57382a1f129db6e8395
% DECOMPOSECAMERA Decomposition of a camera projection matrix % % Usage: [K, R, C, pp, pv] = decomposecamera(P); % % P is decomposed into the form P = K*[R -R*C] % % Argument: P - 3 x 4 camera projection matrix % Returns: % K - Calibration matrix of the form % | ax s x0 | % ...
github
mhrztrk/thesis-src-master
normalise2dpts.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/normalise2dpts.m
2,361
utf_8
2b9d94a3681186006a3fd47a45faf939
% NORMALISE2DPTS - normalises 2D homogeneous points % % Function translates and normalises a set of 2D homogeneous points % so that their centroid is at the origin and their mean distance from % the origin is sqrt(2). This process typically improves the % conditioning of any equations used to solve homographies, fun...
github
mhrztrk/thesis-src-master
hcross.m
.m
thesis-src-master/toolboxes/Kovesi/Projective/hcross.m
919
utf_8
dbb3f3d4ef79e25ca3000ea976409e0c
% HCROSS - Homogeneous cross product, result normalised to s = 1. % % Function to form cross product between two points, or lines, % in homogeneous coodinates. The result is normalised to lie % in the scale = 1 plane. % % Usage: c = hcross(a,b) % % Copyright (c) 2000-2005 Peter Kovesi % School of Computer Science & ...
github
mhrztrk/thesis-src-master
smoothorient.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/smoothorient.m
1,577
utf_8
792640aa0e4acc0b3bf99d63587a382f
% SMOOTHORIENT - applies smoothing to orientation field % % Usage: smorient = smoothorient(orient, sigma) % % Input: % orient - Image containing feature normal orientation angles in degrees. % sigma - Standard deviation of Gaussian to use (try 1) % % Returns: % smorient - Smoothed orientation image. ...
github
mhrztrk/thesis-src-master
imtrim.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/imtrim.m
767
utf_8
3198c92eac92c39200792c9dc1e94f9d
% IMTRIM - removes a boundary of an image % % Usage: trimmedim = imtrim(im, b) % % Arguments: im - Image to be trimmed (greyscale or colour) % b - Width of boundary to be removed % % Returns: trimmedim - Trimmed image of size rows-2*b x cols-2*b % % See also: IMPAD, IMSETBORDER % Peter Kovesi % Ce...
github
mhrztrk/thesis-src-master
regionadjacency.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/regionadjacency.m
2,623
utf_8
1789916c81e86fc3d25de699b6360e0e
% REGIONADJACENCY Computes adjacency matrix for an image of segmented regions % % Usage: [Am, Al] = regionadjacency(L) % % Argument: L - A region segmented image, such as might be produced by a % graph cut algorithm. All pixels in each region are labeled % by an integer. % % Returns...
github
mhrztrk/thesis-src-master
integgausfilt.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/integgausfilt.m
2,500
utf_8
a2a14a4604cd4a021514fffb77dd587e
% INTEGGAUSFILT - Approximate Gaussian filtering using integral filters % % This function approximates Gaussian filtering by repeatedly applying % averaging filters. The averaging is performed via integral images which % results in a fixed and very low computational cost that is independent of % the Gaussian size. % %...
github
mhrztrk/thesis-src-master
anisodiff.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/anisodiff.m
2,612
utf_8
44cb5f8f44aea3b4e24ab8a438b049be
% ANISODIFF - Anisotropic diffusion. % % Usage: % diff = anisodiff(im, niter, kappa, lambda, option) % % Arguments: % im - input image % niter - number of iterations. % kappa - conduction coefficient 20-100 ? % lambda - max value of .25 for stability % option - 1 Perona Ma...
github
mhrztrk/thesis-src-master
canny.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/canny.m
1,902
utf_8
1911475f231bbdcdcfa5ba814d1267a6
% CANNY - Canny edge detection % % Function to perform Canny edge detection. % % Usage: [gradient or] = canny(im, sigma) % % Arguments: im - image to be procesed % sigma - standard deviation of Gaussian smoothing filter % (typically 1) % % Returns: gradient - edge strength im...
github
mhrztrk/thesis-src-master
integralimage.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/integralimage.m
1,583
utf_8
625ff486923979d644b6b48a01c2af43
% INTEGRALIMAGE - computes integral image of an image % % Usage: intim = integralimage(im) % % This function computes an integral image such that the value of intim(r,c) % equals sum(sum(im(1:r, 1:c)) % % An integral image can be used with the function INTEGRALFILTER to perform % filtering operations (using rectangula...
github
mhrztrk/thesis-src-master
nonmaxsuppts.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/nonmaxsuppts.m
4,944
utf_8
7c2736f3cc990cf9fe61f0bd1339f5dc
% NONMAXSUPPTS - Non-maximal suppression for features/corners % % Non maxima suppression and thresholding for points generated by a feature % or corner detector. % % Usage: [r,c] = nonmaxsuppts(cim, radius, thresh, im) % / % ...
github
mhrztrk/thesis-src-master
hysthresh.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/hysthresh.m
2,218
utf_8
1083374237be0a6bad69e6afd431e1c0
% HYSTHRESH - Hysteresis thresholding % % Usage: bw = hysthresh(im, T1, T2) % % Arguments: % im - image to be thresholded (assumed to be non-negative) % T1 - upper threshold value % T2 - lower threshold value % (T1 and T2 can be entered in any order, the larger o...
github
mhrztrk/thesis-src-master
renumberregions.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/renumberregions.m
1,683
utf_8
8bd81f22349e2b6303451b7c2b11b09d
% RENUMBERREGIONS % % Usage: nL = renumberregions(L) % % Argument: L - A region segmented image, such as might be produced by a % graph cut algorithm. All pixels in each region are labeled % by an integer. % % Returns: nL - A relabeled version of L so that label numbers form a % ...
github
mhrztrk/thesis-src-master
harris.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/harris.m
4,707
utf_8
9123c3c21835dfa4d233abe149d6620d
% HARRIS - Harris corner detector % % Usage: cim = harris(im, sigma) % [cim, r, c] = harris(im, sigma, thresh, radius, disp) % [cim, r, c, rsubp, csubp] = harris(im, sigma, thresh, radius, disp) % % Arguments: % im - image to be processed. % sigma - standard...
github
mhrztrk/thesis-src-master
imsetborder.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/imsetborder.m
807
utf_8
8dd6e75f6b5240fffbdb56e60521ef9b
% IMSETBORDER - sets pixels on image border to a value % % Usage: im = imsetborder(im, b, v) % % Arguments: % im - image % b - border size % v - value to set image borders to (defaults to 0) % % See also: IMPAD, IMTRIM % Peter Kovesi % Centre for Exploration Targeting % The Universit...
github
mhrztrk/thesis-src-master
integralfilter.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/integralfilter.m
3,939
utf_8
ec95f49a7ef5558aefe8fd9a4309c358
% INTEGRALFILTER - performs filtering using an integral image % % This function exploits an integral image to perform filtering operations % (using rectangular filters) on an image in time that only depends on the % image size irrespective of the filter size. % % Usage: fim = integralfilter(intim, f) % % Arguments: i...
github
mhrztrk/thesis-src-master
adaptivethresh.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/adaptivethresh.m
5,822
utf_8
bc7dac46afe55c2c4fb9c0add2d40792
% ADAPTIVETHRESH - Wellner's adaptive thresholding % % Thresholds an image using a threshold that is varied across the image relative % to the local mean, or median, at that point in the image. Works quite well on % text with shadows % % Usage: bw = adaptivethresh(im, fsize, t, filterType, thresholdMode) % % bw...
github
mhrztrk/thesis-src-master
cleanupregions.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/cleanupregions.m
4,161
utf_8
7330f3a2c76802cded3d0433012af4af
% CLEANUPREGIONS Cleans up small segments in an image of segmented regions % % Usage: seg = cleanupregions(seg, areaThresh) % % Arguments: seg - A region segmented image, such as might be produced by a % graph cut algorithm. All pixels in each region are labeled % by an integer. % ...
github
mhrztrk/thesis-src-master
subpix2d.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/subpix2d.m
3,983
utf_8
18d15956198e29a24e64871a95378041
% SUBPIX2D Sub-pixel locations in 2D image % % Usage: [rs, cs] = subpix2d(r, c, L); % % Arguments: % r, c - row, col vectors of extrema to pixel precision. % L - 2D corner image % % Returns: % rs, cs - row, col vectors of valid extrema to sub-pixel % precision. % % Note that...
github
mhrztrk/thesis-src-master
intfilttranspose.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/intfilttranspose.m
1,102
utf_8
0007e26379314049c0716d1ff851e36c
% INTFILTTRANSPOSE - transposes an integral filter % % Usage: ft = intfilttranspose(f) % % Argument: f - an integral image filter as described in the function INTEGRALFILTER % % Returns: ft - a transposed version of the filter % % See also: INTEGRALFILTER, INTEGRALIMAGE, INTEGAVERAGE % Copyright (c) 2007 Peter Koves...
github
mhrztrk/thesis-src-master
integaverage.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/integaverage.m
2,088
utf_8
6ff6d948c4e18c25ee2d9269d186448c
% INTEGAVERAGE - performs averaging filtering using an integral image % % Usage: avim = integaverage(im,rad) % % Arguments: im - Image to be filtered % rad - 'Radius' of square region over which averaging is % performed (rad = 1 implies a 3x3 average) % Returns: avim ...
github
mhrztrk/thesis-src-master
subpix3d.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/subpix3d.m
4,434
utf_8
22fda4d036d1bac30b6b36da20187f7a
% SUBPIX3D Sub-pixel locations in 3D volume % % Usage: [rs, cs, ss] = subpix3d(r, c, s, L); % % Arguments: % r, c, s - row, col and scale vectors of extrema to pixel precision. % L - 3D volumetric corner data, or 2D + scale space data. % % Returns: % rs, cs, ss - row, col and scale vectors of val...
github
mhrztrk/thesis-src-master
fastradial.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/fastradial.m
5,399
utf_8
b540902aad74684be591d3126ad87319
% FASTRADIAL - Loy and Zelinski's fast radial feature detector % % An implementation of Loy and Zelinski's fast radial feature detector % % Usage: S = fastradial(im, radii, alpha, beta) % % Arguments: % im - Image to be analysed % radii - Array of integer radius values to be processed ...
github
mhrztrk/thesis-src-master
impad.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/impad.m
717
utf_8
9859031cbab9e1bbdd1fa763c54fdaef
% IMPAD - adds zeros to the boundary of an image % % Usage: paddedim = impad(im, b) % % Arguments: im - Image to be padded (greyscale or colour) % b - Width of padding boundary to be added % % Returns: paddedim - Padded image of size rows+2*b x cols+2*b % % See also: IMTRIM, IMSETBORDER % Peter Ko...
github
mhrztrk/thesis-src-master
gaussfilt.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/gaussfilt.m
892
utf_8
266e718eee73f61a8bc07650565a1692
% GAUSSFILT - Small wrapper function for convenient Gaussian filtering % % Usage: smim = gaussfilt(im, sigma) % % Arguments: im - Image to be smoothed. % sigma - Standard deviation of Gaussian filter. % % Returns: smim - Smoothed image. % % See also: INTEGGAUSSFILT % Peter Kovesi % Centre for Explorti...
github
mhrztrk/thesis-src-master
derivative5.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/derivative5.m
4,808
utf_8
989b39a3f681a8cad7375573fa1a7a0f
% DERIVATIVE5 - 5-Tap 1st and 2nd discrete derivatives % % This function computes 1st and 2nd derivatives of an image using the 5-tap % coefficients given by Farid and Simoncelli. The results are significantly % more accurate than MATLAB's GRADIENT function on edges that are at angles % other than vertical or horizont...
github
mhrztrk/thesis-src-master
solveinteg.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/solveinteg.m
3,146
utf_8
0b0df74b4066fbe41ed1f8a44f09200f
% SOLVEINTEG % % This function is used by INTEGGAUSFILT to solve for the multiple averaging % filter widths needed to approximate a Gaussian of desired standard deviation. % % Usage: [wl, wu, m, sigmaActual] = solveinteg(sigma, n) % % Arguments: sigma - Desired standard deviation of Gaussian. This should not % ...
github
mhrztrk/thesis-src-master
derivative7.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/derivative7.m
3,752
utf_8
59ac2311726917925b934ce48b7ae87f
% DERIVATIVE5 - 7-Tap 1st and 2nd discrete derivatives % % This function computes 1st and 2nd derivatives of an image using the 7-tap % coefficients given by Farid and Simoncelli. The results are significantly % more accurate than MATLAB's GRADIENT function on edges that are at angles % other than vertical or horizont...
github
mhrztrk/thesis-src-master
nonmaxsup.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/nonmaxsup.m
6,600
utf_8
f72536506a96132d3571ac8ec2148caf
% NONMAXSUP - Non-maxima suppression % % Usage: % [im,location] = nonmaxsup(inimage, orient, radius); % % Function for performing non-maxima suppression on an image using an % orientation image. It is assumed that the orientation image gives % feature normal orientation angles in degrees (0-180). % % Input: ...
github
mhrztrk/thesis-src-master
integgaussfilt.m
.m
thesis-src-master/toolboxes/Kovesi/Spatial/integgaussfilt.m
4,030
utf_8
095058649c6275863b06e3025c490126
% INTEGGAUSSFILT - Approximate Gaussian filtering using integral filters % % This function approximates Gaussian filtering by repeatedly applying % averaging filters. The averaging is performed via integral images which % results in a fixed and very low computational cost that is independent of % the Gaussian size. % ...
github
mhrztrk/thesis-src-master
rotx.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/rotx.m
589
utf_8
bc55598911b9d73eb90ab44cab59a9db
% ROTX - Homogeneous transformation for a rotation about the x axis % % Usage: T = rotx(theta) % % Argument: theta - rotation about x axis % Returns: T - 4x4 homogeneous transformation matrix % % See also: TRANS, ROTY, ROTZ, INVHT % Copyright (c) 2001 Peter Kovesi % School of Computer Science & Software Engin...
github
mhrztrk/thesis-src-master
angleaxisrotate.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/angleaxisrotate.m
1,383
utf_8
9ac58e5db9309d73f49b53b0f9c99b6d
% ANGLEAXISROTATE - uses angle axis descriptor to rotate vectors % % Usage: v2 = angleaxisrotate(t, v) % % Arguments: t - 3-vector giving rotation axis with magnitude equal to the % rotation angle in radians. % v - 4xn matrix of homogeneous 4-vectors to be rotated or % 3...
github
mhrztrk/thesis-src-master
homotrans.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/homotrans.m
1,371
utf_8
8fc0c2c8b73dcccc47ba10e8a451beee
% HOMOTRANS - Homogeneous transformation of points/lines % % Function to perform a transformation on 2D or 3D homogeneous coordinates % The resulting coordinates are normalised to have a homogeneous scale of 1 % % Usage: % t = homotrans(P, v); % % Arguments: % P - 3 x 3 or 4 x 4 homogeneous transfo...
github
mhrztrk/thesis-src-master
trans.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/trans.m
708
utf_8
c2bc04ae87a1f56d814ee75d140cea19
% TRANS - Homogeneous transformation for a translation by x, y, z % % Usage: T = trans(x, y, z) % T = trans(v) % % Arguments: x,y,z - translations in x,y and z, or alternatively % v - 3-vector defining x, y and z. % Returns: T - 4x4 homogeneous transformation matrix % % See also: ROTX, RO...
github
mhrztrk/thesis-src-master
plotframe.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/plotframe.m
1,677
utf_8
40c9bb130ec46ca33912f804e87f2eac
% PLOTFRAME - plots a coordinate frame specified by a homogeneous transform % % Usage: function plotframe(T, len, label) % % Arguments: % T - 4x4 homogeneous transform % len - length of axis arms to plot (defaults to 1) % label - text string to append to x,y,z labels on axes % % len and label are optio...
github
mhrztrk/thesis-src-master
newangleaxis.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/newangleaxis.m
1,101
utf_8
4ad89dd95a736dff8b3603430648964c
% NEWANGLEAXIS - Constructs angle-axis descriptor % % Usage: t = newangleaxis(theta, axis) % % Arguments: theta - angle of rotation % axis - 3-vector defining axis of rotation % Returns: t - 3-vector giving rotation axis with magnitude equal to the % rotation angle in radians. % % S...
github
mhrztrk/thesis-src-master
rotz.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/rotz.m
593
utf_8
485891081a31d4907a07ce934642fea2
% ROTZ - Homogeneous transformation for a rotation about the z axis % % Usage: T = rotz(theta) % % Argument: theta - rotation about z axis % Returns: T - 4x4 homogeneous transformation matrix % % See also: TRANS, ROTX, ROTY, INVHT % Copyright (c) 2001 Peter Kovesi % School of Computer Science & Software Engin...
github
mhrztrk/thesis-src-master
angleaxis2matrix.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/angleaxis2matrix.m
1,762
utf_8
16a973af5909776b8684cea956980ebb
% ANGLEAXIS2MATRIX - converts angle-axis descriptor to 4x4 homogeneous % transformation matrix % % Usage: T = amgleaxis2matrix(t) % % Argument: t - 3-vector giving rotation axis with magnitude equal to the % rotation angle in radians. % Returns: T - 4x4 Homogeneous transformation matrix % % See a...
github
mhrztrk/thesis-src-master
matrix2quaternion.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/matrix2quaternion.m
2,010
utf_8
ad7a1983aceaa9953be167eddabb22ae
% MATRIX2QUATERNION - Homogeneous matrix to quaternion % % Converts 4x4 homogeneous rotation matrix to quaternion % % Usage: Q = matrix2quaternion(T) % % Argument: T - 4x4 Homogeneous transformation matrix % Returns: Q - a quaternion in the form [w, xi, yj, zk] % % See Also QUATERNION2MATRIX % Copyright (c) 2008 ...
github
mhrztrk/thesis-src-master
vector2quaternion.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/vector2quaternion.m
563
utf_8
a87aa8408a94f8010721a2ea603c64f9
% VECTOR2QUATERNION - embeds 3-vector in a quaternion representation % % Usage: Q = vector2quaternion(v) % % Argument: v - 3-vector % Returns: Q - Quaternion given by [0; v(:)] % % See also: NEWQUATERNION, QUATERNIONROTATE, QUATERNIONPRODUCT, QUATERNIONCONJUGATE % Copyright (c) 2008 Peter Kovesi % School of Compute...
github
mhrztrk/thesis-src-master
invht.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/invht.m
505
utf_8
62f8fca3096c7b08ba22952fef7e6416
% INVHT - inverse of a homogeneous transformation matrix % % Usage: Tinv = invht(T) % % Argument: T - 4x4 homogeneous transformation matrix % Returns: Tinv - inverse % % See also: TRANS, ROTX, ROTY, ROTZ % Copyright (c) 2001 Peter Kovesi % School of Computer Science & Software Engineering % The University of ...
github
mhrztrk/thesis-src-master
roty.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/roty.m
589
utf_8
1523f4098a8a375de8eed1c69ae75c92
% ROTY - Homogeneous transformation for a rotation about the y axis % % Usage: T = roty(theta) % % Argument: theta - rotation about y axis % Returns: T - 4x4 homogeneous transformation matrix % % See also: TRANS, ROTX, ROTZ, INVHT % Copyright (c) 2001 Peter Kovesi % School of Computer Science & Software Engin...
github
mhrztrk/thesis-src-master
invrpy.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/invrpy.m
1,251
utf_8
327fc230e354d616448b0620e8b51b4f
% INVRPY - inverse of Roll Pitch Yaw transform % % Usage: [rpy1, rpy2] = invrpy(RPY) % % Argument: RPY - 4x4 Homogeneous transformation matrix or 3x3 rotation matrix % Returns: rpy1 = [phi1, theta1, psi1] - the 1st solution and % rpy2 = [phi2, theta2, psi2] - the 2nd solution % % rotx(phi1)*roty(theta1)*...
github
mhrztrk/thesis-src-master
normaliseangleaxis.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/normaliseangleaxis.m
995
utf_8
a160233e601e4a5bf231afef48739445
% NORMALISEANGLEAXIS - normalises angle-axis descriptor % % Function normalises theta so that it has maximum magnitude of pi to ensure one-to-one % mapping between angle-axis descriptor and resulting rotation % % Usage: t2 = normaliseangleaxis(t) % % Argument: t - 3-vector giving rotation axis with magnitude equal t...
github
mhrztrk/thesis-src-master
quaternionconjugate.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/quaternionconjugate.m
525
utf_8
d7df86d9770e7881f0cda73f664a8be5
% QUATERNIONCONJUGATE - Conjugate of a quaternion % % Usage: Qconj = quaternionconjugate(Q) % % Argument: Q - Quaternions in the form Q = [Qw Qi Qj Qk] % Returns: Qconj - Conjugate % % See also: NEWQUATERNION, QUATERNIONROTATE, QUATERNIONPRODUCT % Copyright (c) 2008 Peter Kovesi % School of Computer Science & So...
github
mhrztrk/thesis-src-master
dhtrans.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/dhtrans.m
1,161
utf_8
817bf7d3f603627a2da4773fefc67097
% DHTRANS - computes Denavit Hartenberg matrix % % This function calculates the 4x4 homogeneous transformation matrix, representing % the Denavit Hartenberg matrix, given link parameters of joint angle, length, joint % offset and twist. % % Usage: T = DHtrans(theta, offset, length, twist) % % Arguments: theta - joint...
github
mhrztrk/thesis-src-master
matrix2angleaxis.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/matrix2angleaxis.m
2,082
utf_8
a78c0e321cb8ec55fa4dfcdedfa9ac77
% MATRIX2ANGLEAXIS - Homogeneous matrix to angle-axis description % % Usage: t = matrix2angleaxis(T) % % Argument: T - 4x4 Homogeneous transformation matrix % Returns: t - 3-vector giving rotation axis with magnitude equal to the % rotation angle in radians. % % See also: ANGLEAXIS2MATRIX, ANGLEAXI...
github
mhrztrk/thesis-src-master
quaternionproduct.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/quaternionproduct.m
818
utf_8
bcfe792d9518a1c110b9957970f4f7c8
% QUATERNIONPRODUCT - Computes product of two quaternions % % Usage: Q = quaternionproduct(A, B) % % Arguments: A, B - Quaternions assumed to be 4-vectors in the % form A = [Aw Ai Aj Ak] % Returns: Q - Quaternion product % % See also: NEWQUATERNION, QUATERNIONROTATE, QUATERNIONCONJUGATE % Copyr...
github
mhrztrk/thesis-src-master
quaternion2matrix.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/quaternion2matrix.m
1,413
utf_8
7296cadf62f6ca9273e726ffd7e19d95
% QUATERNION2MATRIX - Quaternion to a 4x4 homogeneous transformation matrix % % Usage: T = quaternion2matrix(Q) % % Argument: Q - a quaternion in the form [w xi yj zk] % Returns: T - 4x4 Homogeneous rotation matrix % % See also MATRIX2QUATERNION, NEWQUATERNION, QUATERNIONROTATE % Copyright (c) 2008 Peter Kovesi ...
github
mhrztrk/thesis-src-master
newquaternion.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/newquaternion.m
647
utf_8
a36af1ff9a23186bd42b779523671cea
% NEWQUATERNION - Construct quaternion % % Q = newquaternion(theta, axis) % % Arguments: theta - angle of rotation % axis - 3-vector defining axis of rotation % Returns: Q - a quaternion in the form [w xi yj zk] % % See Also: QUATERNION2MATRIX, MATRIX2QUATERNION, QUATERNIONROTATE % Copyright (c) ...
github
mhrztrk/thesis-src-master
quaternionrotate.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/quaternionrotate.m
2,343
utf_8
f2d3306a478a187944ccd081efd63482
% QUATERNIONROTATE - Rotates a 3D vector by a quaternion % % Usage: vnew = quaternionrotate(Q, v) % % Arguments: Q - a quaternion in the form [w xi yj zk] % v - a vector to rotate, either an inhomogeneous 3-vector or a % homogeneous 4-vector % Returns: vnew - rotated vector % % See also MATRI...
github
mhrztrk/thesis-src-master
inveuler.m
.m
thesis-src-master/toolboxes/Kovesi/Rotations/inveuler.m
1,220
utf_8
5ebf0b9f54aead905ee1300724228adc
% INVEULER - inverse of Euler transform % % Usage: [euler1, euler2] = inveuler(T) % % Argument: T - 4x4 Homogeneous transformation matrix or 3x3 rotation matrix % Returns: euler1 = [phi1, theta1, psi1] - the 1st solution and, % euler2 = [phi2, theta2, psi2] - the 2nd solution % % rotz(phi1)*roty(theta1)*rot...
github
mhrztrk/thesis-src-master
findendsjunctions.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/findendsjunctions.m
3,378
utf_8
9de4b89d8f3794b533f458929bea85db
% FINDENDSJUNCTIONS - find junctions and endings in a line/edge image % % Usage: [rj, cj, re, ce] = findendsjunctions(edgeim, disp) % % Arguments: edgeim - A binary image marking lines/edges in an image. It is % assumed that this is a thinned or skeleton image (or % nearly s...
github
mhrztrk/thesis-src-master
selectseg.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/selectseg.m
3,097
utf_8
bdbe2a909309c465b0131e308d8ddc32
% SELECTSEG - Interactive selection of linesegments with mouse. % % Usage: segs = selectseg(seglist); % % seglist - an Nx4 array storing line segments in the form % [x1 y1 x2 y2 % x1 y1 x2 y2 % . . ] etc % % % See al...
github
mhrztrk/thesis-src-master
maxlinedev.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/maxlinedev.m
2,478
utf_8
64cc6d88009aa2a148c843e2d4041218
% MAXLINEDEV - Find max deviation from a line in an edge contour. % % Function finds the point of maximum deviation from a line joining the % endpoints of an edge contour. % % Usage: [maxdev, index, D, totaldev] = maxlinedev(x,y) % % Arguments: % x, y - arrays of x,y (col,row) indicies of connected pixels...
github
mhrztrk/thesis-src-master
drawedgelist.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/drawedgelist.m
3,351
utf_8
6495437c55e3ebd001ca3d7f3a5f3514
% DRAWEDGELIST - plots pixels in edgelists % % Usage: drawedgelist(edgelist, rowscols, lw, col, figno) % % edgelist - Cell array of edgelists in the form % { [r1 c1 [r1 c1 etc } % ... % rN cN] ....] % rowscols - Optional 2 element ve...
github
mhrztrk/thesis-src-master
lineseg.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/lineseg.m
3,017
utf_8
ff2e4a5d3f9faabdf548561ed00b22b6
% LINESEG - Form straight line segements from an edge list. % % Usage: seglist = lineseg(edgelist, tol) % % Arguments: edgelist - Cell array of edgelists where each edgelist is an % Nx2 array of (row col) coords. % tol - Maximum deviation from straight line before a % ...
github
mhrztrk/thesis-src-master
cleanedgelist.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/cleanedgelist.m
13,314
utf_8
a79468f2b92f2ce262730a04d766d643
% CLEANEDGELIST - remove short edges from a set of edgelists % % Function to clean up a set of edge lists generated by EDGELINK so that % isolated edges and spurs that are shorter that a minimum length are removed. % This code can also be use with a set of line segments generated by LINESEG. % % Usage: nedgelist = clea...
github
mhrztrk/thesis-src-master
edgelink.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/edgelink.m
13,346
utf_8
fecef60a1c780d3e1e01a86d7dd94950
% EDGELINK - Link edge points in an image into lists % % Usage: [edgelist edgeim] = edgelink(im, minlength, location) % % Arguments: im - Binary edge image, it is assumed that edges % have been thinned. % minlength - Optional minimum edge length of interest, defaults % ...
github
mhrztrk/thesis-src-master
edgelist2image.m
.m
thesis-src-master/toolboxes/Kovesi/LineSegments/edgelist2image.m
2,027
utf_8
5c5436b3f23a712f883ddb43a21e1d1c
% EDGELIST2IMAGE - transfers edgelist data back into a 2D image array % % Usage: im = edgelist2image(edgelist, rowscols) % % edgelist - Cell array of edgelists in the form % { [r1 c1 [r1 c1 etc } % ... % rN cN] ....] % rowscols - Opt...
github
mhrztrk/thesis-src-master
bandpassfilter.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/bandpassfilter.m
1,514
utf_8
d98c0b715b1b05c4e8c5e415a260dd2c
% BANDPASSFILTER - Constructs a band-pass butterworth filter % % usage: f = bandpassfilter(sze, cutin, cutoff, n) % % where: sze is a two element vector specifying the size of filter % to construct [rows cols]. % cutin and cutoff are the frequencies defining the band pass 0 - 0.5 % n ...
github
mhrztrk/thesis-src-master
highboostfilter.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/highboostfilter.m
1,962
utf_8
ada657e25d617c134fb03bf410b0be5b
% HIGHBOOSTFILTER - Constructs a high-boost Butterworth filter. % % usage: f = highboostfilter(sze, cutoff, n, boost) % % where: sze is a two element vector specifying the size of filter % to construct [rows cols]. % cutoff is the cutoff frequency of the filter 0 - 0.5. % n is the ...
github
mhrztrk/thesis-src-master
invfft2.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/invfft2.m
250
utf_8
41b97c8ab7dc15522b2c5a414bf55b38
% INVFFT2 - takes inverse fft and returns real part % % Function to `wrap up' taking the inverse Fourier transform % and extracting the real part into the one operation % Peter Kovesi October 1999 function ift = invfft2(ft) ift = real(ifft2(ft));
github
mhrztrk/thesis-src-master
lowpassfilter.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/lowpassfilter.m
2,448
utf_8
1bdb6b9b70b06af9d2bc12b6b877da54
% LOWPASSFILTER - Constructs a low-pass butterworth filter. % % usage: f = lowpassfilter(sze, cutoff, n) % % where: sze is a two element vector specifying the size of filter % to construct [rows cols]. % cutoff is the cutoff frequency of the filter 0 - 0.5 % n is the order of the f...
github
mhrztrk/thesis-src-master
imspect.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/imspect.m
4,268
utf_8
509f5451a2768b2e47bc1d6b697ada2c
% IMSPECT - Plots image amplitude spectrum averaged over all orientations. % % Usage: [amp, f, slope] = imspect(im, nbins, lowcut) % \ / % optional % Arguments: % im - Image to be analysed. % nbins - ...
github
mhrztrk/thesis-src-master
psf.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/psf.m
2,323
utf_8
de5c27f8dd4eb69a3ae36c1be3f20990
% PSF - Generates point spread functions for use with deconvolution fns. % % This function can generate a variety function shapes based around the % Butterworth filter. In plan view the filter can be elliptical and at % any orientation. The `squareness/roundness' of the shape can also be % manipulated. % % Usag...
github
mhrztrk/thesis-src-master
highpassfilter.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/highpassfilter.m
1,443
utf_8
78f60a0dd6f0ef66653d547868fad1f9
% HIGHPASSFILTER - Constructs a high-pass butterworth filter. % % usage: f = highpassfilter(sze, cutoff, n) % % where: sze is a two element vector specifying the size of filter % to construct [rows cols]. % cutoff is the cutoff frequency of the filter 0 - 0.5 % n is the order of t...
github
mhrztrk/thesis-src-master
circsine.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/circsine.m
4,364
utf_8
4b2d3f6974bd3cd11dde7d3b2a600790
% CIRCSINE Generates circular sine wave grating % Can also be use to construct phase congruent patterns % % Usage: im = circsine(sze, wavelength, nScales, ampExponent, offset, p, trim) % % Arguments: % sze - The size of the square image to be produced. % wavelength - The wavelength in pixe...
github
mhrztrk/thesis-src-master
starsine.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/starsine.m
2,906
utf_8
929263192b6c499585f5af175f649a83
% STARSINE Generates phase congruent star shaped sine wave grating % % Usage: im = starsine(sze, nCycles, nScales, ampExponent, offset) % % Arguments: % sze - The size of the square image to be produced. % nCycles - The number of sine wave cycles around centre point. % ...
github
mhrztrk/thesis-src-master
freqcomp.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/freqcomp.m
5,474
utf_8
58a18bdbdc50fca6a82844487445c5ad
% FREQCOMP - Demonstrates image reconstruction from Fourier components % % Usage: recon = freqcomp(im, Npts, delay) % % Arguments: im - Image to be reconstructed. % Npts - Number of frequency components to consider % (defaults to 50). % delay - Optional ...
github
mhrztrk/thesis-src-master
psf2.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/psf2.m
3,000
utf_8
20d5aff861110c5341b9d6fec90f8007
% PSF2 - Generates point spread functions for use with deconvolution fns. % % This function can generate a variety function shapes based around the % Butterworth filter. In plan view the filter can be elliptical and at % any orientation. The 'squareness/roundness' of the shape can also be % manipulated. % % Usa...
github
mhrztrk/thesis-src-master
invfft2shft.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/invfft2shft.m
308
utf_8
1ee9d3b8e1e84f25b0fb5503595f7bfa
% INVFFT2SHFT - takes inverse fft, quadrant shifts and returns real part. % % Function to `wrap up' taking the inverse Fourier transform % quadrant shifting and extraction of the real part into the one operation % Peter Kovesi October 1999 function ift = invfft2shft(ft) ift = fftshift(real(ifft2(ft)));
github
mhrztrk/thesis-src-master
scalogram.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/scalogram.m
7,409
utf_8
d52ef40b2b1cf4ebfb92b343dc1d3381
% SCALOGRAM - Calculates phase and amplitude scalogram of 1D signal. % % Usage: % [amplitude, phase] = scalogram(signal, minwavelength, mult, nscales, sigmaOnf, threeD) % % Function to calculate the phase and amplitude scalograms of a 1D signal % Analysis is done using quadrature pairs of log Gabor filters % % Argumen...
github
mhrztrk/thesis-src-master
homomorphic.m
.m
thesis-src-master/toolboxes/Kovesi/FrequencyFilt/homomorphic.m
5,424
utf_8
51155a84aab5eba10f502eb788a81b16
% HOMOMORPHIC - Performs homomorphic filtering on an image. % % Function performs homomorphic filtering on an image. This form of % filtering sharpens features and flattens lighting variantions in an image. % It usually is very effective on images which have large variations in % lighting, for example when a subject ap...
github
uutzinger/RTIMULib-master
mag_fit_display.m
.m
RTIMULib-master/Linux/RTIMULibCal/RTEllipsoidFit/mag_fit_display.m
1,220
utf_8
81967cd5d9770da8af70e9d17262fde3
%// %// Copyright (c) 2014, richards-tech %// %// This file is part of RTEllipsoidFit %// %// RTEllipsoidFit is free software: you can redistribute it and/or modify %// it under the terms of the GNU General Public License as published by %// the Free Software Foundation, either version 3 of the License, or %// (...
github
ShapeNet/JointEmbedding-master
rdir.m
.m
JointEmbedding-master/src/rdir.m
5,967
utf_8
9645930d6444ae2bd533318d9cd9ea91
% Copyright (c) 2009, Gus Brown % All rights reserved. % % Redistribution and use in source and binary forms, with or without % modification, are permitted provided that the following conditions are % met: % % * Redistributions of source code must retain the above copyright % notice, this list of co...
github
ShapeNet/JointEmbedding-master
GPS.m
.m
JointEmbedding-master/src/shape_embedding_testing/GPS.m
2,672
utf_8
8767a18666657bde1395c7c0fd2fb663
% posToAnchorDist (n by m): distance from sensor points to anchor points (per row) % posToSensorDist (n by n): distance from sensor points to sensor points (per row) % anchorLoc (m by d): anchor point location per row % estLoc (n by d): estimation point location % x0: initial location of sensor points function estLoc ...
github
xiongchenyan/GraphRepresentation-master
ComputeStationaryP.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/ComputeStationaryP.m
1,272
utf_8
cdfcf2008570e20eb701903792d20dbc
% % This function computes stationary probability(P) and (dP) of each node given % transition probability matrix(Q) and partial derivatives of trantition % matrix(dQ) % % input: % Q: transiton probability matrix, size(n,n) % dQ: partial derivatives of Q wrt parameters, size(n,n,m) % output: % P: stationary di...
github
xiongchenyan/GraphRepresentation-master
sigmoid.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/sigmoid.m
90
utf_8
bacd309823562ce24f6277cdde772478
% returns the sigmoid of a number function res = sigmoid(x) res = 1/(1+exp(-x)); end
github
xiongchenyan/GraphRepresentation-master
EdgeStrengthToTransitionProbability.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/EdgeStrengthToTransitionProbability.m
574
utf_8
e183f1f86647a452a05897771c7841aa
% % this function takes as input edge strength matrix(A) and random restart % parameter(alpha) returns the transition probability matrix Q % % % input: % A : edge strength matrix, size(n,n) % alpha: random restart parameter, size(1,1) % output: % Q : transition probability matrix, size(n,n) % % function Q ...
github
xiongchenyan/GraphRepresentation-master
DifferenceIndices.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/DifferenceIndices.m
708
utf_8
063d7b150955ad9cc92533f020e730d7
% % this function takes as input the stationary probability of the nodes and the destination node binary vector and returns the pairs of nodes for which (pl - pd) is positive and also the difference % % input: % P: Stationanry probabilities, size(1,n) % d: destination nodes, size(1,n) binary vector % % output: %...
github
xiongchenyan/GraphRepresentation-master
Converged.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/Converged.m
225
utf_8
32dcc05ebf613f324ffcc6bc7d338730
% % this function takes two arrays and retuns 1 if both the arrays are same % with in an given error margin.. % function ret = Converged(p1,p2,eps) temp = max(abs(p1-p2)); if temp < eps ret = 1; else ret = 0; end end
github
xiongchenyan/GraphRepresentation-master
dwilcoxon.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/dwilcoxon.m
434
utf_8
582ea0bb32f35fbd9c3a547d713fe254
% this function takes a matrix and its wilcoxon loss of each element and b, to give derivative % % % wilcox function = sigmoid(x/b); % derivative = (sigmoid(x/b)*(1-sigmoid(x/b)))/b % % diff = input matrix % wmvloss = wilcoxon(diff,b) % b = hyper parameter % % der = derivative according to the above for...
github
xiongchenyan/GraphRepresentation-master
FeaturesFromAdjacentMatrix.m
.m
GraphRepresentation-master/depreciated/SupervisedRandomWalkMatlab/FeaturesFromAdjacentMatrix.m
771
utf_8
2c7968dd69efe997d0d6f2bf401d58c9
% temporary function written to get features from adjacence matrix function psi = FeaturesFromAdjacentMatrix(Adj) % load('Adj.mat'); % directed graph, you can make it undirected graph if you can temp1 = Adj; for i = 1:396 for j = 1:396 if Adj(i,j) == 1 temp1(j,i) = temp1(i,j); end end end temp2 ...