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. |
Simulates a picture as viewed through night vision goggles. |
last modified: December 15, 2018
USAGE: nightvision [-b brightness] [-d diameter] [-r rolloff] [-n noise] [-s seed] infile outfile
-b ... brightness ... brightness of night view; 0<=integer<=200; default=100 PURPOSE: To simulate a picture as viewed through night vision goggles. DESCRIPTION: NIGHTVISION simulates a picture as viewed through night vision goggles. The brightness and noise in the view may be adjusted as well as vignetting and blooming. ARGUMENTS: -b brightness ... BRIGHTNESS of the night view. Values are integers between 0 and 200. The default=100. -d diameter ... DIAMETER of the vignetting. It is a relative size expressed as a percent of the image dimensions. Values are integers between 0 and 100. The default=60. -r rolloff ... ROLLOFF of the vignette ramping. Values are integers between 0 and 100. Larger values lengthen the ramp and shorter values shorten the ramp. The default=0 is a linear ramp to the most distant image point. -n noise ... NOISE amount added to the image. Values are floats>=0. The default=2. -s seed ... SEED value for the random noise. Values are integers>=0. The default=100. -B blooming ... BLOOMING is a flag to include/exclude a blooming effect at very bright locations. The choices are yes or no. The default=no. -T threshold ... THRESHOLD locates some pixels that are the brightest for for use with the blooming effect. Value are floats between 0 and 100. The default=5. 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: |
Example 2 - Variation of Arguments |
|
Original |
Arguments: |
Arguments: |
Arguments: |
Example 3 - Variation of Blooming |
||
Original |
Arguments: |
Arguments: |
What the script does is as follows:
This is equivalent to the following IM commands.
|