Sir, I want to read the pixel intensity of that pixel which I have selected by using ginput() command in MATLAB

1 次查看(过去 30 天)
Sir, I want to read the pixel intensity of that pixel which I have selected by using ginput() command in MATLAB

采纳的回答

Image Analyst
Image Analyst 2013-2-6
Try this:
[x, y] = ginput(1);
pixelInstensity = yourImage(y, x);
I know it's really obvious, so did I perhaps not understand what you're asking?

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by