Return the pixel values of a specific point in matlab

1 回表示 (過去 30 日間)
halima jamil
halima jamil 2015 年 8 月 29 日
回答済み: Image Analyst 2015 年 8 月 29 日
how we can return the pixel values of our own desired point on matlab. kindly help me out

回答 (2 件)

Matt J
Matt J 2015 年 8 月 29 日
Depends what information you have. If you already know the pixel coordinates of interest (i,j), just index into the image
myImage(i,j)
If you're asking how to interactively probe a displayed image for its pixel values, you can use the data cursor,

Image Analyst
Image Analyst 2015 年 8 月 29 日
If you want to do it interactively, by mousing around on the image and see the x,y and RGB or gray level in a status line, then you want the impixelinfo() function. Let me know if you can't figure out how to use it. Otherwise you can use impixel() or just use the image array itself like Matt said.

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by