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 Superman Bizarro-like cartoon effect to an image. |
last modified: December 16, 2018
USAGE: toonizarro [-f filter] [-s sigma] [-g gain] [-t thickness] [-l lothresh]
[-h hithresh] infile outfile
-f ... filter ...... filter to adjust the coarseness; integer>0; default=3 PURPOSE: To apply a Superman Bizarro-like cartoon effect to an image. DESCRIPTION: TOONIZARRO applies a Superman Bizarro-like cartoon effect to an image. Edges may be added optionally. ARGUMENTS: -f filter ... FILTER to adjust the coarseness. Values are integers>0. The default=3. -s sigma ... SIGMA for unsharpening. Values are float>0. The default=2 -g gain ... GAIN for unsharpening. Values are float>=0. The default=4. -t thickness ... THICKNESS of edges. Values are integers>=0. The default=0 means no edges. -l lothresh ... LOTHRESHOLD is the canny edge detection low threshold. Values are integers>=0. The default=20. -l hithresh ... HITHRESHOLD is the canny edge detection high threshold. Values are integers>=0. The default=40. -c colors ... COLORS is a list of colors for colorizing the result. Any space-separate list of valid IM colors is allowed. (No spaces withing rgb color triples). The default is no colorization.
REQUIREMENTS: IM 6.8.9.9 due to the use of the Kuwahara filter. IM 6.8.9-0 to use
the Canny edge detection. See: 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 -- Variation in Filter And Edge Thickness |
||
Original |
||
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Arguments: |
Example 2 |
||
Original |
||
Arguments: |
Arguments: |
Arguments: |
Example 3 |
||
Original |
||
Arguments: |
Arguments: |
Arguments: |
Example 4 |
Original |
Arguments: |
Arguments: |
Arguments: |
Example 5 |
||
Original |
||
Arguments: |
||
Arguments: |
||
Arguments: |
||
Example 6 -- Colorization |
Original |
Arguments: |
Example 7 -- Colorization |
Original |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands
|