How to get bilateral symmetry axis?

1 次查看(过去 30 天)
Diah
Diah 2012-12-3
I have an image, and I have extracted the region of interest (ROI). This ROI have bilateral symmetry shape. How can I get the bilateral symmetry axis for it?

回答(1 个)

Matt J
Matt J 2012-12-12
编辑:Matt J 2012-12-12
Maybe as follows.
fa=@(X) norm(X(:) - reshape(flipud(X),[],1) );
fb=@(theta) fa(imrotate(TheROI,-theta));
AngleOfAxis = fminsearch(fb,0)

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by