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[Formats] - supported image I/O formats
Calling Sequence
Formats
Description
The Formats variable is a set containing the names of image formats supported by ImageTools[Read] and ImageTools[Write].
ImageTools supports three image file formats: JPEG, TIFF, and BMP.
The vast majority of existing JPEG files (as specified by the JPEG File Interchange Format standard, JFIF) can be read by ImageTools[Read], but there are a few exceptions. Most notably, JPEG files using hierarchical storage, lossless JPEG compression, arithmetic entropy encoding, DNL markers, or non-integral subsampling ratios are not supported. Fortunately, none of these features of the JPEG standard are in widespread use.
Only RGB, YCbCr, and Grayscale color spaces are supported. When reading a YCbCr image, it is converted to RGB on input. CMYK, YCCK, and proprietary color spaces are not supported.
When writing RGB images, ImageTools[Write] uses the YCbCr color space, which is the standard for JFIF formatted JPEG files. When writing grayscale images, the Grayscale color space is used.
JPEG reading and writing support is based on the Independent JPEG Group's "libjpeg", version 6.2. See copyright.
Most TIFF files can be read by ImageTools[Read], including bi-level (black and white), grayscale, color mapped, RGB, fax, separated (CMYK), YCbCr, and JPEG-encoded TIFF images. Both compressed and non-compressed images are supported.
All TIFF images returned by ImageTools[Read] are converted to grayscale, RGB, or RGBA data.
When writing to TIFF files, ImageTools[Write] produces 8-bit per color channel, contiguous plane, LZW compressed, RGB or grayscale files (depending on the image data to be written).
TIFF reading and writing support is based on Silicon Graphics' "libtiff" library, version 3.6.1. See copyright.
Maple can read all non-compressed Microsoft Windows BMP format files, including 1-bit monochrome, 4-bit and 8-bit color mapped, and 24-bit true color images. Compressed BMP formats are not supported, but the compression provided by BMP is so ineffective for most images that it is almost never used. OS/2 BMP format is also not supported.
When reading 1-bit, 4-bit, or 8-bit color mapped images, ImageTools[Read] returns grayscale data if all the colors in the image's color map are shades of gray, or RGB data otherwise.
Only 8-bit and 24-bit BMP files are supported by ImageTools[Write]. Grayscale data is written in 8-bit color mapped format (where all the colors are shades of gray). RGB data is written in 24-bit true color format.
Examples
See Also
ImageTools, ImageTools[Read], ImageTools[Write]
References
Independent JPEG Group http://www.ijg.org/
Download Help Document