Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Representation > PixelValue >

PixelValue

PixelValue
gives the pixel value of image at position .
PixelValue
gives the pixel value converted to the specified type.
  • In PixelValue, the values of x range from to w+0.5, and the values of y range from to h+0.5 for an image of width w and height h.
  • Integer coordinates correspond to the centers of the pixels. Position represents the center of the pixel at the bottom-left corner.
  • PixelValue gives the value of the pixel nearest to .
  • Use ImageValue to extract interpolated values at in the image coordinate where x runs from to width and y runs from to height. Position corresponds to the bottom-left corner of the image.
  • PixelValue can be used to get pixel values for multiple positions.
  • PixelValue by default returns values between 0 and 1. Using PixelValue, pixel value is returned in the range specified by . See the reference page for Image for a list of all possible data types.
  • PixelValue can take a Padding option that is used when a specified position is beyond an image.
Value of the bottom-left corner pixel:
Value of the bottom-left corner pixel:
In[1]:=
Click for copyable input
Out[1]=
Exact pixel values can be extracted using ImageValue and special setting of Resampling and DataRange:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF