find the third point
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sajid Rahim
le 7 Sep 2017
Réponse apportée : Image Analyst
le 7 Sep 2017
this is my code
%%%%%%%%%%%%%%%%%%%%%%%%%
clear all;
[filename pathname]=uigetfile('*.jpg;*.png;*.tif;*.tiff;*.gif;*.bmp;');
inputimage=imread([pathname filename]);
I=inputimage;
I = rgb2gray(I) ;
[y,x] = find(I) ;
figure
imshow(I)
hold on
plot(x,y,'.b')
plot(x(1),y(1),'*y')
plot(x(end),y(end),'*r')
line([x(1),0],[y(1), 0])
line([x(end),0],[y(end), 0])
figure(1);line([0 1],[0 1]);
%%%%%%%%%%%%%%%%%%%%%%
i wana to find the mid point between the yellow point and red point.... the mid poit is that point where the curve become bended........... as shown the point by arrow...
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167074/image.png)
orignal image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167075/image.png)
ofter code
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167076/image.png)
0 commentaires
Réponse acceptée
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!