Azzera filtri
Azzera filtri

How to get bilateral symmetry axis?

1 visualizzazione (ultimi 30 giorni)
Diah
Diah il 3 Dic 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?

Risposte (1)

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

Categorie

Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by