MATLAB Answers

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

2 views (last 30 days)
NAVODITA DAS
NAVODITA DAS on 24 Mar 2020
Commented: NAVODITA DAS on 24 Mar 2020
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?

  0 Comments

Sign in to comment.

Accepted Answer

KSSV
KSSV on 24 Mar 2020
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 Comments

NAVODITA DAS
NAVODITA DAS on 24 Mar 2020
Thank you for your answer. But sir i want coordinate values of color point w.r.t. reference coordinate which was created.

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2018b