Curvature estimation in contour extracted from gray image
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Turbulence Analysis
el 24 de Jun. de 2021
Comentada: Turbulence Analysis
el 25 de Jun. de 2021
Hi,
I have the edges/contours extacted from the gray image, now I intend to estimate the curvature.
For e.g., I have attached my sample contour here..
Could someone help me with this out ??
0 comentarios
Respuesta aceptada
KSSV
el 24 de Jun. de 2021
Editada: KSSV
el 25 de Jun. de 2021
You may use this file exchange function:
Check the code:
load('Test image.mat') ;
[y,x] = find(I) ;
idx = boundary(x,y) ;
x = x(idx) ; y = y(idx) ;
Vertices = [x y] ;
k=LineCurvature2D(Vertices) ;
N=LineNormals2D(Vertices) ;
figure(1)
scatter(x,y,20,k,'filled')
colorbar
title('curvature')
figure(2)
plot(x,y)
hold on
plot([Vertices(:,1) Vertices(:,1)+10*N(:,1)]',[Vertices(:,2) Vertices(:,2)+10*N(:,2)]');
title('Normals')
11 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!