Rank: 443 based on 267 downloads (last 30 days) and 13 files submitted
photo

Zachary Danziger

E-mail
Company/University
Duke University

Personal Profile:

Postdoctoral researcher in neuroscience.

Web: https://sites.google.com/site/zdanziger/home


 

Watch this Author's files

 

Files Posted by Zachary Danziger View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
28 Oct 2014 Screenshot Theil-Sen Robust Linear Regression Perform linear regression that is robust to outliers. Author: Zachary Danziger signal processing, regression, outlier, statistics, linear, median 18 0
21 Nov 2013 Symbolic Matrix Creates a matrix composed of properly indexed symbolic elements. Author: Zachary Danziger mathematics, linear algebra, symbolic math, symbols, matrix 15 0
30 May 2013 Screenshot Discrete Frechet Distance The discrete Frechet distance is a scalar measure of similarity between two curves. Author: Zachary Danziger metric, measure, similarity, curves, mathematics, frechet 36 15
  • 4.33333
4.3 | 4 ratings
03 Apr 2013 Screenshot Text Yahtzee Play Yahtzee in the command window, with multiple players per game. Author: Zachary Danziger games, game 12 0
  • 5.0
5.0 | 1 rating
03 Apr 2013 Screenshot Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger mathematics, metric, distance, trajectory similarity 106 9
  • 4.375
4.4 | 8 ratings
Comments and Ratings by Zachary Danziger View all
Updated File Comments Rating
06 Nov 2014 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger

@Shaan, One way would be to treat those images as vectors of pixels, and use the code on those vectors, however, many more nuanced implementations of HD for image comparison have been developed.

08 Aug 2014 fftnoise - generate noise with a specified power spectrum Useful helper function for Monte Carlo null-hypothesis tests and confidence interval estimation. Author: Aslak Grinsted

Useful and quick.

12 Jul 2014 ChessPeace Software for playing Chess and Chess Variants Author: Zachary Danziger

@Madhur: Castling is implemented. Drop your king on any piece that is capable of castling. :)

17 Jul 2013 Discrete Frechet Distance The discrete Frechet distance is a scalar measure of similarity between two curves. Author: Zachary Danziger

Leyon,
The Frechet Distance, which this code approximates, is only defined for 2 curves. However, I am sure that some one cleverer than I could think of a way...

04 Jun 2013 Discrete Frechet Distance The discrete Frechet distance is a scalar measure of similarity between two curves. Author: Zachary Danziger

Arthur,
If you are just looking for the standard Euclidean distance you can leave off the dfcn argument and it will be used by default.

Otherwise it expects a function handle. The 'ordinary' distance function is passed as:
dfcn = @(p,q) sqrt(sum( (p-q).^2 ));

But any function will work that operates on points p and q that respects their dimensionality. A Chebyshev-like measure could be used, for example:
dcheb = @(p,q) max(abs(p-q))

Comments and Ratings on Zachary Danziger's Files View all
Updated File Comment by Comments Rating
06 Nov 2014 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger Zachary Danziger

@Shaan, One way would be to treat those images as vectors of pixels, and use the code on those vectors, however, many more nuanced implementations of HD for image comparison have been developed.

06 Nov 2014 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger Shaan

How do you use this code to calculate Hausdorff distance between two binary images?

12 Jul 2014 ChessPeace Software for playing Chess and Chess Variants Author: Zachary Danziger Zachary Danziger

@Madhur: Castling is implemented. Drop your king on any piece that is capable of castling. :)

11 Jul 2014 ChessPeace Software for playing Chess and Chess Variants Author: Zachary Danziger Madhur

Castling is not implemented ?

16 May 2014 Hausdorff Distance Calculates the Hausdorff Distance between two sets of points in a Euclidean metric space. Author: Zachary Danziger Amir Pasha Mahmoudzadeh

It is great code, but you need to fix your bugs: in order to achieve the same column for your both images, you can fix number of columns with the following codes:

nrows = max(size(I1,1), size(I2,1));
ncols = max(size(I1,2), size(I2,2));
nchannels = size(I1,3);

extendedI1 = [ I1, zeros(size(I1,1), ncols-size(I1,2), nchannels); ...
zeros(nrows-size(I1,1), ncols, nchannels)];

extendedI2 = [ I2, zeros(size(I2,1), ncols-size(I2,2), nchannels); ...
zeros(nrows-size(I2,1), ncols, nchannels)];

I1=extendedI1;
I2=extendedI2;

Also, Binary images don't give us the minimum numbers for Hausdorff Distance. I checked your codes with several binary images and all of the times the max Hausdorff Distance numbers were the correct answer, not the minimum number.

Contact us