Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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

Akzeptierte Antwort

Jos (10584)
Jos (10584) am 10 Sep. 2013
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 Kommentare
Image Analyst
Image Analyst am 10 Sep. 2013
That's how I do it, though there is also the impixel() function.
Sapam Jaya
Sapam Jaya am 10 Sep. 2013
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'."

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by