how to get the pixel value and the location in an image
1 回表示 (過去 30 日間)
古いコメントを表示
Karbala'a Unvi. Science
2020 年 6 月 18 日
コメント済み: Ameer Hamza
2020 年 6 月 20 日
Hi to evryone,
I am looking for a code, that find and write the location and the value (attomatically)of each pixel in an image ..
I know that there is a lot of work need to do insted of asking, but I am welling to collacet any help to do that code
Welling to have an answer from my fellow freinds here in this community..
Best of all wishes
0 件のコメント
採用された回答
Ameer Hamza
2020 年 6 月 19 日
See ginput(). For example, run this
img = imread('pears.png');
imshow(img)
[x, y] = ginput(1);
pixel_values = img(floor(x), floor(y), :);
disp(pixel_values)
2 件のコメント
Ameer Hamza
2020 年 6 月 20 日
What is the complete error message? Can you explain in which format do you want all the pixel values? All the pixel values are already stored in the array 'img'.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Computer Vision with Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!