hi i need instruction or function to return locaition of pixel

2 ビュー (過去 30 日間)
fatima ali
fatima ali 2014 年 12 月 19 日
コメント済み: Image Analyst 2014 年 12 月 20 日
hi i need instruction or function to return locaition of pixel....i search pixel in image ..i need to return location pixel ...how work this in matlab
  1 件のコメント
Image Analyst
Image Analyst 2014 年 12 月 20 日
Your edit did not help. We still don't know what you mean. Again, please explain/clarify. Perhaps give an example or a screenshot after you read this.

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

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 19 日
You can use find function
  2 件のコメント
fatima ali
fatima ali 2014 年 12 月 19 日
find not reurun location of pixel
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 12 月 19 日
編集済み: Azzi Abdelmalek 2014 年 12 月 19 日
Maybe you need to use ginput function

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


Image Analyst
Image Analyst 2014 年 12 月 20 日
Either use ginput() to have the user manually specify a point, or use impixelinfo() to put up a label that updates "live" with the mouse movement, giving the location and pixel value.
  2 件のコメント
fatima ali
fatima ali 2014 年 12 月 20 日
thanks..i know ginput and impixel but i not want ginput amd impxel..i search pixel in image ..i need to return location pixel ...how work this in matlab
Image Analyst
Image Analyst 2014 年 12 月 20 日
If you have a binary image, like you commented on to Shoaibur, and you want locations where the image is true (value of 1), then just do
[rows, columns] = find(binaryImage);
Is that what you want? If so, why? Because I never do that and I do image processing all the time. You probably don't need to do that. Tell me what you really really want to do and I can show you how.
Please explain in way more detail what this means : "i search pixel in image"
And please explain this in way more detail: "i need to return location pixel". What is a "location pixel"?
You told Shoaibur that whatever it is, it's not what you can get from doing this:
[rows, columns] = find(yourImage == pixelValue)
so exactly what do you want?

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

Community Treasure Hunt

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

Start Hunting!

Translated by