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
Overview of the ImageTools Package
Calling Sequence
ImageTools[command](arguments)
command(arguments)
Description
The ImageTools package implements a number of image processing functions.
Within this package, image data is represented as dense rectangular Arrays of 64-bit hardware floating point numbers. Grayscale and color images can be represented; see ImageTools[ImageTypes] for descriptions of the types and data structures.
See the applications,ImageProcessing worksheet for a demonstration of the ImageTools package.
Accessing Package Commands
Each command in the ImageTools package can be accessed by using either the long form or the short form of the command name in the command calling sequence.
Because the underlying implementation of the ImageTools package is a module, it is possible to use the form ImageTools:-command to access a command from the package. For more information, see Module Members.
List of Package Commands
The following is a list of available commands. To display the help page for a particular command, see Getting Help with a Command in a Package.
Analysis
Entropy compute entropy of an image
Height return height (rows) of an image
Histogram create a histogram of the layers
Intensity measure intensity of layers
Quality compute quality measure of a reconstructed image
Width return width (columns) of an image
Arithmetic
Clip clip image to low and high values
Complement complement an image
Flip flip an image horizontally or vertically
GetSubImage extract a subimage from an image
PadImage pad an image to desired size
Rotate rotate an image (90 degree increments)
Scale rescale an image
SetSubImage insert a subimage into an image
Stack stack images horizontally or vertically
Transpose transpose an image
Color
ColorTransform perform arbitrary color space conversion
CombineLayers combine grayscale images into a color image
Gamma adjust intensity of layers
GetLayer return layer from a multi-layer image
HSVtoRGB convert HSV to RGB
RGBtoGray convert RGB to Grayscale
RGBtoHSV convert RGB to HSV
RGBtoYUV convert RGB to YUV
SetLayer insert a layer into a multi-layer image
ToGrayscale synonym for RGBtoGray
ToRGB convert Gray/RGB/RGBA to RGB
ToRGBA convert Gray/RGB/RGBA to RGBA
YUVtoRGB convert YUV to RGB
Creation
Checkerboard create a checkerboard test image
Create create an image
File I/O
FormatFromName return file type (format)
Formats supported file formats
Read read an image from a file
Write write an image to a file
Miscellaneous
Convolution convolve an image with a mask/kernel
FitIntensity scale intensities to fit within a range
Mask apply mask to image
ScaleIntensity scale intensities of selected layers
Threshold threshold an image
WhatTypeImage return the specific image type
View
PlotHistogram plot histogram of an image
Preview preview an image
View view images
See Also
UsingPackages, with
Download Help Document