find the third point

1 次查看(过去 30 天)
Sajid Rahim
Sajid Rahim 2017-9-7
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...
orignal image
ofter code

采纳的回答

Image Analyst
Image Analyst 2017-9-7
Try findchangepts().

更多回答(1 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by