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. |
Interleaves the channels of a single image or each image of a set of multiple images. |
last modified: December 15, 2018
USAGE: interleave [-t type] [-a alpha] [-c colorize] infile1 ... infileN outfile
-t .... type ......... type of interleave; choices are: a) row, line, bil or PURPOSE: To interleave the channels of a single image or each image of a set of multiple images. DESCRIPTION: INTERLEAVE interleaves the channels of a single image or each image of a set of multiple images. If a single input image is provided, then each channel will be separated and interleaved either row-by-row or column-by-column. The channels may be recolorized optionally. Images with colorspace RGB or CMYK (with or without alpha channel) are supported. If more than one image is proveded, then each image will be interleaved in succession either row-by-row or column-by-column. ARGUMENTS: -t type ... TYPE is the type of interleave to use. The choices are either: row (or line or bil) or col (or pixel or bip). BIL and BIP mean band interleaved by line or band interleaved by pixel. The default=row -a alpha ... ALPHA is a flag to include the alpha channel or not. The choices are: yes or no. The default=no -c colorize ... COLORIZE is a flag to re-color the channels. It is valid only when one input image is provided. The choices are: yes or no. The default=no. WARNING: It is not recommended to use JPG for output as the JPG compression will badly distort the output when colorized. 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: |
Original |
Arguments: |
Original |
Arguments: |
Original |
Arguments: |
Original 1 |
Original 2 |
Original 3 |
Arguments: |
What the script does is as follows for a 3 channel image for type=row:
This is equivalent to the following IM commands
|