Copyright © Fred Weinhaus My scripts are available free of charge for non-commercial (non-profit) use, ONLY. For use of my scripts in commercial (for-profit) environments or non-free applications, please contact me (Fred Weinhaus) for licensing arrangements. My email address is fmw at alink dot net. If you: 1) redistribute, 2) incorporate any of these scripts into other free applications or 3) reprogram them in another scripting language, then you must contact me for permission, especially if the result might be used in a commercial or for-profit environment. Usage, whether stated or not in the script, is restricted to the above licensing arrangements. It is also subject, in a subordinate manner, to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php Please read the Pointers For Use on my home page to properly install and customize my scripts. |
Applies a zero crossing edge detector to an image. |
last modified: March 01, 2024
USAGE: zerocrossing [-w width ] [-b brightness] [-s smoothing] [-g] infile outfile
-e ... edge ...... edge type; choices are sobel (s) or morphologic (m); PURPOSE: To apply a zero crossing edge detector to image. DESCRIPTION: ZEROCROSSING applies a zero crossing edge detector to image in order to thin the edges. The user may select either sobel or morphologic for the basic type of edge detection as well as the type of laplacian used for detecting the zero crossings. ARGUMENTS: -e edge ... EDGE type. The choices are sobel (s) or morphologic (m). The default=sobel. -l laplace ... LAPLACIAN type. The choices are: 0, 2 and 5. The default=0. -a amplify ... AMPLIFICATION is the zero crossing percent amplification. Values are integer>=0. The default=100 (no amplification). -s size ... SIZE is twice the morphologic disk size. Values are integer>=2. The default=4 (values will be divided by 2 later). -g ... converts the input image to GRAYSCALE before extracting edges. REQUIREMENTS: IM 6.5.9.3 is required for the use of -morphology edges. IM 6.6.1.8 is required for the use of sobel edges. CAVEAT: No guarantee that this script will work on all platforms, nor that trapping of inconsistent parameters is complete and foolproof. Use At Your Own Risk. |
Example 1 -- Sobel Gray |
||
Original |
|
Sobel |
Arguments: |
Arguments: |
Arguments: |
|
|
Arguments: |
Example 2 -- Morphologic Gray |
||
Original |
|
Mophologic (size=4) |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
|
Arguments: |
Example 3 -- Color |
||
Original |
Sobel |
Mophologic (size=4) |
|
Arguments: |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands
|