Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


gives the pixel value of image at position pos.

gives the pixel value converted to the specified type.

Details and OptionsDetails and Options

  • Pixel positions pos can be in one of the following forms:
  • {x,y}or {x,y,z}single position in 2D or 3D
    {xmin;;xmax,}span of positions
    {pos1,pos2,}a list of position specifications
    markerimagea marker image
  • ImageValue assumes the standard image coordinate system.
  • Use PixelValue to use integer indices for extracting exact pixel values of the image.
  • ImageValue[image,pos] by default returns values between 0 and 1. Using ImageValue[image,pos,"type"], a pixel value is returned in the range specified by . See the reference page for Image for a list of all possible data types.
  • ImageValue[image,pos,Automatic] is equivalent to ImageValue[image,pos,ImageType[image]].
  • The following options can be given:
  • DataRangeFullrange of image coordinates
    Padding0padding method to use
    Resampling"Linear"interpolation method to use
  • Possible settings for DataRange include:
  • Automatic in 2D, in 3D
    Full in 2D, in 3D (default)
    {{left,right},{bottom,top}}explicit coordinate ranges in 2D
    {{left,right},{front,back},{bottom,top}}explicit coordinate ranges in 3D
  • With Resampling->"Nearest", when the position pos lies on a boundary between pixels, the average of the pixels surrounding pos is returned. »
Introduced in 2010
| Updated in 2014