Legacy Documentation

Digital Image Processing (2000)

This is documentation for an obsolete product.
Current products and services
Previous section-----Next section

2.2 Monochrome Image Representation

In[1]:=
In[2]:=
In[3]:=
Out[3]=Out[3]=
Here is a small 8 × 8 segment of the example image. The Take command is used to extract a part of the original data array.
In[4]:=
Out[4]//MatrixForm=Out[4]//MatrixForm=
In Mathematica, matrix-organized numerical data may be displayed using a variety of Graphics functions such as ListDensityPlot, Raster, ListPlot3D, and ListContourPlot. Thus any of these functions may be used to plot the raw data of a monochrome image. Here is a graphical representation of the matrix data using ArrayPlot.
In[5]:=
Out[5]=Out[5]=
Mathematica adheres to the common convention of displaying small sample values as dark spots and large values as bright spots. Thus the segment exhibits a dark streak in the center of the display. Note also that row indices increase from bottom to top of the display area while the column orientation is from left to right. Raster is another convenient image display function. Raster by default assumes that the input argument is a 2D array of real numeric samples with z values in the range {0, 1}. It is therefore necessary to scale the standard integer valued image data.
In[6]:=
Out[6]=Out[6]=
In[7]:=
Out[7]=Out[7]=
In[8]:=
Out[8]=Out[8]=