How to get bilateral symmetry axis?

3 ビュー (過去 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)

Community Treasure Hunt

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

Start Hunting!

Translated by