Find Ridges
 
Author: Bob Dougherty 
Installation: Download  Find_Ridges.class or Find_Ridges.java to the plugins folder.   (Windows users right-click to download.)
Description: Plugin to find the ridge points of the grey value in an image. Pixels corresponding to ridge points are not changed. Pixels that are not identified as ridge points are set to 0. There are two dialog input: "Gaussian radius" and "Minimum thinning factor." The Gaussian radius should be chosen to be comparable to the pixel width of the ridges to be found. Features that are much narrower or much wider than this value will not be identified as ridges. A typical value is 2 pixels. The "Minimum thinning factor" is the minimum factor by which the number of ridge points is smaller than the total number of pixels. For example, if the image has 512 x 512 = 262144 pixels, and "Minimum thinning factor" is given as 10, then the maximum number of pixels that will not be set to zero by the plugin is 26214. If the number of ridge points identified by the algorithm is less than 26214, then the "Minimum thinning factor" will have no effect. If a greater number of ridge points is initially identified, then some of them will be disallowed, to bring the total down to 26214. The ridge points that are retained are the ones that correspond to the strongest ridges in the sense of having the most negative second derivative, divided by the pixel value, in the direction perpendicular to the ridge.

Detail of the Nile Bend sample image before and after finding ridges.
Dialog.
History: April 20, 2014 initial version.
May 2, 2014 improved accuracy
License:

Copyright (c) 2014, OptiNav, Inc.
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 conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of OptiNav, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

ImageJ: ImageJ can be freely downloaded from the ImageJ web site.