How can i find co-ordinates (x,y) of white lines in the image?

1 回表示 (過去 30 日間)
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN 2015 年 11 月 30 日
I have image with black background and white lines. How to find co-ordinates (x,y) of white lines on that image?
  2 件のコメント
William
William 2015 年 11 月 30 日
how is the data representing black and white. 0's and 1's?. What format is the image in?
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN 2015 年 11 月 30 日
Yes, the data representing black and white by 0's and 1's. The format of the image is JPG file.

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

回答 (2 件)

Thorsten
Thorsten 2015 年 11 月 30 日
[y, x] = ind2sub(size(I), find(I > 0));

Walter Roberson
Walter Roberson 2015 年 11 月 30 日
You will have difficulty finding the location of the lines. JPG images cannot handle sharp edges, so although the data may look like it is just white and black, you will find that it has a number of other values as well, similar to as if the image had been anti-aliased. JPG is a poor format for image analysis.
  1 件のコメント
LAKSHMANAN ADAIKKAPPAN
LAKSHMANAN ADAIKKAPPAN 2015 年 12 月 1 日
can i know better format image analysis?

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

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by