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
ImageThread
ImageThread[
fun
,
img
,
args
]
applies function
fun
to each channel of
img
and threads the arguments
args
.
The length of each supplied argument must match the number of color channels in
img
.
The argument
img
is an
ImageData
expression.
See also User's Guide
2.4
.
Examples
This loads the package.
In[1]:=
Here we read a color test image.
In[2]:=
ImageThread
permits the threading of arguments over the channels of a color image. It is possible, therefore, to apply a different threshold to each of the color channels. Here we effectively remove the green and blue channels. (Note that the following example is for demonstration purposes only, since the
Threshold
command automatically threads lists of threshold values across color channels.)
In[3]:=
Out[3]//InputForm=
In[4]:=
Out[4]=
The following demonstrates how to apply a different filter to each of the color channels of
img
.
In[5]:=
In[6]:=
Out[6]=