Fred's ImageMagick Scripts
My scripts are available free of charge for non-commercial use. If you redistribute or incorporate any of these scripts into other free applications, you may use my scripts by simply referencing my name and this web page: Fred Weinhaus and http://www.fmwconcepts.com/imagemagick/index.html For use of my scripts in commercial use or non-free applications, please contact me for
licensing arrangements. Usage, whether stated in script or not, is also subject to the ImageMagick license, which can be found at: http://www.imagemagick.org/script/license.php |
|
Creates a texture pattern and optionally applies it to the background of an input image. |
last modified: April 30, 2011
|
USAGE: texturize [-d dimensions] [-n newseed] [-t threshold] [-b blur]
-d ... dimensions ... dimensions of texture image to create if no input PURPOSE: To create a texture pattern and optionally apply it to the background of an input image DESCRIPTION: TEXTURIZE creates a noise or cross-hatch texture pattern that can be saved or applied to the background of an image. The cross-hatch pattern is generated from 1D vertical and horizontal blurring of thresholded random noise. The pattern may be widened some or spread to make it more noisy. ARGUMENTS: -d dimensions ... DIMENSIONS of texture image to create if no input image is provided. Dimensions are specified as integers WIDTHxHEIGHT. The default=128x128. -n newseed ... NEWSEED is the seed value to use for the random noise generator. Values are integers>0. The default=1. -t threshold ... THRESHOLD is the white-threshold percent to apply to the random noise. Values are in the range from 0 to 100. The default=2. -b blur ... BLUR is the sigma of 1D Gaussian blur used to create the cross-hatch pattern from the random noise. It is applied both vertically and horizontally. Values are floats>=0. The default=9. -w widen ... WIDEN is the sigma of 2D Gaussian blur used to create a widening effect on the pattern. Values are floats>=0; The default=0. -s spread ... SPREAD is the amount of the spread effect to apply to the pattern. More spread will dissolve the cross-hatch and create more of a random noise pattern. Values are floats>=0. The default=0. -g gnoise ... GNOISE is the amplitude of additive Gaussian noise added to the final effect. Values are floats>=0. The default=5. -f format ... FORMAT is the format of the texture patten. Choices are: plain (p) or bump (b). The default=bump. -m mix ... MIX is mixing percentage of the texture with the infile. Values are in the range from 0 to 100. The default=25. Mix is ignored, if an infile is not provided. -c contrast ... CONTRAST is the percent contrast increase of the image prior to mixing. Values are floats>=0. The default=0. Contrast is ignored, if an infile is not provided. REQUIREMENTS: 1D morphology convolution kernels which probably were introduced at about IM 6.6.2.0 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. |
|
Original | ||
|
||
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Original | ||
|
||
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
Arguments: |
Arguments: |
Arguments: |
|
|
|
|
What the script does is as follows:
This is equivalent to the following IM commands
|