Clear Filters
Clear Filters

How to get bilateral symmetry axis?

2 views (last 30 days)
Diah
Diah on 3 Dec 2012
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?

Answers (1)

Matt J
Matt J on 12 Dec 2012
Edited: Matt J on 12 Dec 2012
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!