Fred's ImageMagick Scripts
|
Creates an edge extracted image using the difference of two gaussian blurs. |
last modified: November 27, 2011
|
USAGE: dog [-s smallfilt] [-l largefilt] [-m mode] [-t thresh] [-b brighten] infile outfile
-s .... smallfilt .... size of small gaussian filter; float>0; default=1 PURPOSE: To create an edge extracted image using the difference of two gaussian blurs. DESCRIPTION: DOG creates an edge extracted image using the difference of two gaussian blurs of different sizes. ARGUMENTS: -s smallfilt ... SMALLFILT is the size of the smaller gaussian blur filter. Values are floats>0. The default=1 -l largefilt ... LARGEFILT is the size of the larger gaussian blur filter. Values are floats>0. The default=1 -m mode ... MODE determines the order of the subtraction. Choices are: 1 for (larger - smaller) or 2 for (smaller - larger). The default=1. -t thresh ... THRESH is the optional thresholding applied to the edge image to make the edges binary white on a black background. Values are 0<=integer<=100. The default indicates no thresholding. A value of 0 means threshold to get all edges. -b brighten ... BRIGHTEN is the brightening factor for the edges. Values are floats>=1. The default=1 indicates no brightening. 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 |
||||
|
Original |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
|
|
Example 2 |
|||
|
Original |
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
|
Example 3 -- Variation In Mode |
|||
|
Arguments: |
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
|
What the script does is as follows:
This is equivalent to the following IM commands
|