in an image of size 256 by 256,what is the command to retrieve the value of the pixel (3,4)

2 次查看(过去 30 天)
is there any command available to get the pixel value of (3,4) from an image of size 256 by 256 ,so that i need not look from the variable editor window

采纳的回答

Jos (10584)
Jos (10584) 2013-9-10
PixelValue = ImageArray(3,4)
or if your image is actually having the size 256x256x3
PixelValueRGB = ImageArray(3,4,:)
which will give you the RGB components
  2 个评论
Sapam Jaya
Sapam Jaya 2013-9-10
i have taken the cameraman.tif image .when i give the above command error is showing as "??? Undefined function or method 'ImageArray' for input arguments of type 'double'."

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by