In an image to set reference coordinate and get coordinates of color points .

3 ビュー (過去 30 日間)
Navodita Das
Navodita Das 2020 年 3 月 24 日
コメント済み: Navodita Das 2020 年 3 月 24 日
Hi everyone,
I have an image in which i want MATLAB to detect black color point and set that point as reference x-y coordinates.
After that MATLAB to detect other color points(RGB) and get their x-y coordinates w.r.t. reference coordinate.
How can I do it?

採用された回答

KSSV
KSSV 2020 年 3 月 24 日
If I is your matrix of image ..use
[y,x] = find(I==val) ;
where val is your pixel value you want.
If I is m*n*3 RGB image.
R = I(:,:,1) ;
G = I(:,:,2) ;
B = I(:,:,3) ;
  3 件のコメント
KSSV
KSSV 2020 年 3 月 24 日
Add the coordinates to the reference corrdinates.
Navodita Das
Navodita Das 2020 年 3 月 24 日
Thank you.

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

その他の回答 (0 件)

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by