PRODUCTS
Products Overview
Mathematica
Mathematica Student Edition
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Wolfram
SystemModeler
Wolfram
Finance Platform
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
Merchandise
SUPPORT
Support Overview
Mathematica
Documentation
Knowledge Base
Learning Center
Technical Services
Community & Forums
Training
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News
Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
User's Guide
Point Operations
3.2 Luminance Quantization
Any analog signal that is to be processed by a computer must be converted to a suitable binary code. In practice this usually means a signed integer. The process of converting analog-valued signal samples to discrete-valued samples is known as quantization. A digital image is thus a quantized approximation of the original signal entering an optical system. The range of integers available for signal quantization is known as luminance resolution and is determined by the number of binary digits used to represent each image sample value. It is typical to use 8 bits-per-pixel (bpp), therefore pixel values are integers in the range
8
={0,1,...,255}. Some high-end digital cameras output 10 and 12 bpp for improved luminance fidelity.
The concept of quantization may also be applied to digital signals. The goal is to reduce the number of bits needed to represent a given signal sample with hopefully little or no visible distortion. This leads to a reduction of storage requirements or equivalently a decrease in transmission time, so quantization is of great interest in the context of data or image compression. Quantization also arises naturally in the context of displaying and printing images on binary media such as paper. Finally, quantization at the level of 1 bpp, called binary thresholding, is a very common first step in many image processing algorithms and applications.
UniformQuantizer
[
img
,
]
gives
img
with all elements quantized using step size
UniformQuantizer
[
img
,
,
d
]
gives
img
with all elements quantized using step size
and offset by
d
Quantization function.
This loads the package.
In[1]:=
This shows the transfer function of a uniform quantizer, with step size
=32.
In[2]:=
Out[2]=
This illustrates the effect of reducing the luminance resolution of an image. First we load an example monochrome image and extract a small subregion.
In[3]:=
Here we quantize and display the example image. Shown are the original image and, clockwise, quantized copies of the original at 16 levels, 4 levels, and 2 levels. This simulates 4, 2, and 1 bpp representations, respectively, of the original 8 bpp example image.
In[4]:=
Out[4]=
The preceding example demonstrates a phenomenon called contouring, which becomes visible when the number of quantization levels is insufficient. In flat regions of an image, this tends to occur at about 6 bpp.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.