Rank: 63 based on 559 downloads (last 30 days) and 14 files submitted
photo

David Young

E-mail
Company/University
University of Sussex
Lat/Long
50.86579132080078, -0.086335003376007

Personal Profile:
Professional Interests:
Image Processing

 

Watch this Author's files

 

Files Posted by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Dec 2011 Screenshot Image correspondences using cross-correlation Find matching features in pairs of images using normalised cross-correlation: class file and demo. Author: David Young image analysis, optic flow, optical flow, stereo vision, image registration, image matching 161 14
  • 5.0
5.0 | 4 ratings
09 Dec 2011 Screenshot Affine optic flow Estimates the parameters of an affine (first-order) optic flow model from two images. Author: David Young image motion, active vision, affine, logpolar, optical flow, foveal vision 81 5
  • 5.0
5.0 | 2 ratings
09 Dec 2011 Image gradients with Gaussian smoothing Image grey-level gradients are estimated using Gaussian smoothing followed by differencing. Author: David Young image processing, image smoothing, gaussian smoothing, gradients, first derivative 28 0
07 Dec 2011 Screenshot Extended Brookshear Machine emulator and assembler Emulator and assembler for a simple computer, a teaching aid for computer science courses. Author: David Young machine code, assembler, gui, education, teaching, emulator 9 0
29 Sep 2011 A multidimensional map class MapN provides a map class similar to containers.Map, but with multidimensional keys. Author: David Young map, container, containers, memoize, containersmap, oop 5 0
Comments and Ratings by David View all
Updated File Comments Rating
24 Dec 2011 Hough transform for circles A Hough transform function for detecting circles, optimised to allow search over radii. Author: David Young

Hi Ivan, thanks for the comment. If you set npeaks to 1, you will get the circle with the strongest evidence. If that is not the right circle, then you will need additional code to select the circle you want, using some other selection criteria, such as radius or position.

06 Dec 2011 Log-polar image sampling Resamples an image from a conventional grid to a log-polar grid, and back. Author: David Young

Yeoh cs: There are no general rules for setting those parameters. It depends on the original image and the purpose of doing the transform.

rmax determines the "field of view" of the transform. That is, it gives the radius of the region of the original image that is sampled.

nw determines the resolution at the outside ring. If you want to capture the full detail of the original image, with one transform pixel for each original pixel, you need to make nw equal to 2*pi*rmax. However, this results in massive oversampling nearer the centre, so you may want a smaller value.

I normally set only one of rmin and nr, and allow the other to default, so that the pixels in the sampled image have an aspect ratio of 1. There is always a "hole" at the centre of a log-polar image, and rmin determines how big this hole is. Near the centre of the log-polar image the original image is grossly oversampled, and the smaller rmin is, the worse this is.

In the end though, you have to look at what you are using the log-polar image for, and use either theoretical arguments or empirical tests to decide the parameters.

18 Nov 2011 Log-polar image sampling Resamples an image from a conventional grid to a log-polar grid, and back. Author: David Young

Yeoh cs: I'm sorry, but I have not written a tutorial on the use of this transform, and there isn't room to write one here. There are many papers on applications of log-polar transforms, and it would be best to start with those and then ask specific questions on MATLAB Answers.

18 Sep 2011 Special Functions math library Collection of Special Functions programs. Author: Paul Godfrey

Very helpful and useful (rating and comments based only on gamma and gammaln functions). Suggestions:

1. The code to allocate storage:

 f = 0.*z; % reserve space in advance

is not needed (indeed is wasteful), as preallocation is only useful ahead of a loop or to set up an array of a specific shape.

2. It might be worth switching to logical indexing rather than linear indexing - this would avoid the use of find() and the reshape at the end.

3. gammaln(z) returns infinities for abs(imag(z)) greater than about 226 and real(z) < 0. This is due to overflow of sin() in the reflection formula, but it is an unnecessary restriction as log(sin(z)) can be computed without overflow over a larger set of values than can sin(z). For example, we can use log(sin(x + iy)) (x and y real) is approximately equal to y + log(0.5i * exp(-1i * x)) for large positive y, and the approximation is good to machine accuracy if y > 18 or thereabouts. (For negative y the approximation is -y + log(-0.5i * exp(1i * x)).) Replacing log(sin()) by a call to a logsin() function that uses these approximations greatly extends the set of valid arguments.

12 Sep 2011 Log-polar image sampling Resamples an image from a conventional grid to a log-polar grid, and back. Author: David Young

Masthan Zayid: Sorry, I don't know what the log polar gabor transform is.

Comments and Ratings on David's Files View all
Updated File Comment by Comments Rating
09 Feb 2012 Hough transform for circles A Hough transform function for detecting circles, optimised to allow search over radii. Author: David Young Fer
24 Dec 2011 Hough transform for circles A Hough transform function for detecting circles, optimised to allow search over radii. Author: David Young Young, David

Hi Ivan, thanks for the comment. If you set npeaks to 1, you will get the circle with the strongest evidence. If that is not the right circle, then you will need additional code to select the circle you want, using some other selection criteria, such as radius or position.

22 Dec 2011 Hough transform for circles A Hough transform function for detecting circles, optimised to allow search over radii. Author: David Young Ivan

wow, thanks a lot for the code David, helped with my project a lot!

just one question,

for example, if i were to set npeaks to 5, this will result in 5 circles being detected. however, i would only like one of the circle.

hence, is there a parameter i can set to eliminate the other circles? or do i have to add on to your code?

thank you so much!

06 Dec 2011 Log-polar image sampling Resamples an image from a conventional grid to a log-polar grid, and back. Author: David Young Young, David

Yeoh cs: There are no general rules for setting those parameters. It depends on the original image and the purpose of doing the transform.

rmax determines the "field of view" of the transform. That is, it gives the radius of the region of the original image that is sampled.

nw determines the resolution at the outside ring. If you want to capture the full detail of the original image, with one transform pixel for each original pixel, you need to make nw equal to 2*pi*rmax. However, this results in massive oversampling nearer the centre, so you may want a smaller value.

I normally set only one of rmin and nr, and allow the other to default, so that the pixels in the sampled image have an aspect ratio of 1. There is always a "hole" at the centre of a log-polar image, and rmin determines how big this hole is. Near the centre of the log-polar image the original image is grossly oversampled, and the smaller rmin is, the worse this is.

In the end though, you have to look at what you are using the log-polar image for, and use either theoretical arguments or empirical tests to decide the parameters.

05 Dec 2011 Log-polar image sampling Resamples an image from a conventional grid to a log-polar grid, and back. Author: David Young cs, Yeoh

Young: thx for ur advice, 1 more question .... how to defined the rmin /rmax /nr /nw value of different pattern ?

Top Tags Applied by David
image processing, filtering, image analysis, convolution, 2d
Files Tagged by David View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Dec 2011 Screenshot Image correspondences using cross-correlation Find matching features in pairs of images using normalised cross-correlation: class file and demo. Author: David Young image analysis, optic flow, optical flow, stereo vision, image registration, image matching 161 14
  • 5.0
5.0 | 4 ratings
09 Dec 2011 Screenshot Affine optic flow Estimates the parameters of an affine (first-order) optic flow model from two images. Author: David Young image motion, active vision, affine, logpolar, optical flow, foveal vision 81 5
  • 5.0
5.0 | 2 ratings
09 Dec 2011 Image gradients with Gaussian smoothing Image grey-level gradients are estimated using Gaussian smoothing followed by differencing. Author: David Young image processing, image smoothing, gaussian smoothing, gradients, first derivative 28 0
07 Dec 2011 Screenshot Extended Brookshear Machine emulator and assembler Emulator and assembler for a simple computer, a teaching aid for computer science courses. Author: David Young machine code, assembler, gui, education, teaching, emulator 9 0
29 Sep 2011 A multidimensional map class MapN provides a map class similar to containers.Map, but with multidimensional keys. Author: David Young map, container, containers, memoize, containersmap, oop 5 0

Contact us at files@mathworks.com