WOLFRAM
Products
Wolfram|One
Mathematica
Wolfram Notebook Assistant + LLM Kit
Wolfram|Alpha Notebook Edition
System Modeler
All Products
Consulting & Solutions
Wolfram Consulting
Industry Solutions
Solutions for Education
Learning & Support
Wolfram U Courses
Wolfram Language Resources
Wolfram Community
Support FAQs
Contact Support
Company
About Wolfram
Careers
Events
Educational Programs
All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
Your Account
User Portal
Search
Close
Enable JavaScript to interact with content and submit forms on Wolfram websites.
Learn how
Legacy Documentation
Digital Image Processing
(2000)
This is documentation for an obsolete product.
Current products and services
Function Index
ScaleGamma
ScaleGamma[
img
]
returns a nonlinearly scaled copy of
img
.
ScaleGamma
is an implementation of the so-called gamma transformation.
The options
GammaTransferType
and
GammaInputType
may be used to select one of four predefined mappings. The built-in mappings are implementations of the so-called Rec. 709 and sRGB transfer functions. Rec. 709, formally ITU-R Recommendation 709, is an international standard that specifies the basic parameters of HDTV, while sRGB is a standard color space used on the PC and the web.
The options
GammaTrasferType
→
"sRGB"
and
GammaInputType
→
"Linear"
yield the following transformation:
Options
GammaTrasferType
→
"sRGB"
and
GammaInputType
→
"Nonlinear"
yield the following transformation:
Options
GammaTrasferType
→
"Rec709"
and
GammaInputType
→
"Linear"
yield the following transformation:
Options
GammaTrasferType
→
"Rec709"
and
GammaInputType
→
"Nonlinear"
yield the following transformation:
The option
GammaTransferType
may also be a user-supplied function.
See also User's Guide
3.4
.
New in Version 2.
Example
This loads the package.
In[1]:=
This reads an RGB color example image and scales the image to the range {0,1}.
In[2]:=
This returns a gamma-corrected image.
In[3]:=
Out[3]//InputForm=