Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ImageTools[CombineLayers] - combine layers into a color image
Calling Sequence
CombineLayers( img1, img2, img3, img4, opts )
Parameters
img1
-
GrayImage; first image layer
img2
GrayImage; second image layer
img3
GrayImage; third image layer
img4
(optional) GrayImage; fourth image layer
opts
(optional) equation(s) of the form option = value; specify options for the CombineLayers command
Description
The CombineLayers command combines monochromatic images to create a colored image.
The img1, img2, img3, and img4 parameters specify the input image layers. They must have the same dimensions and be of type GrayImage.
If the optional parameter img4 is not given, the result is an image of type ColorImage. If img4 is given, it corresponds to the alpha layer and the result is an image of type ColorAImage.
Options
output = Image
Specifies a data structure into which the output is written. This can be used to avoid allocating memory. The size and number of layers must match that of the input. The dimensions of the output image are adjusted so that the row and column indices match the input. The default is NULL.
Examples
Create monochromatic images for the red, green, and blue layers.
Combine them to create a color image.
See Also
ImageTools, ImageTools[GetLayer], ImageTools[Layers], ImageTools[SetLayer]
Download Help Document