pixel per cell

how to get the value of pixel per cell in image.
example..(1.52372e+006)..how to get and display this value from image.

回答 (2 件)

Image Analyst
Image Analyst 2011 年 11 月 26 日

0 投票

row = 42; % or whatever.
column = 69; % or whatever.
% Display the value of the image in the command window.
fprintf(1, 'The pixel value at (row=%d, col=%d) = %f', row, column, imageArray(row, column));

2 件のコメント

Ahmed
Ahmed 2011 年 11 月 26 日
I can't get value like this 1.52372e+006 from my image based on this code.
Actually, what is the value of pixel per cell in image.
Image Analyst
Image Analyst 2011 年 11 月 26 日
If you have a floating point image, and if the value or your image at some particular row and column is 1.52372e+006, then imageArray(row, column) will give you that value. It's as simple as that. If your image does not have that value in it, then no, of course you can't get a value like that. Please think about what you're saying from my point of view, or ask a coworker to look over your question and see if they can figure out what you mean from what little you provided.

サインインしてコメントする。

Walter Roberson
Walter Roberson 2011 年 11 月 26 日

0 投票

Is the question: given a particular value, find the locations that the value occurs in an array?
If so, then
[r, c] = find(abs(YourArray - ValueToFind) < AcceptableTolerance);
For example,
[r, c] = find(abs(I - 1.52372e+006) < 0.1)
to locate the locations that are within 0.1 of the particular value.

カテゴリ

ヘルプ センター および File ExchangeImages についてさらに検索

質問済み:

2011 年 11 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by