how we can get two points at maximum distance from its centroide in matlab
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
boundaries = bwboundaries(image); thisBoundary = boundaries{1}; % Get the distances of the boundary pixels from the centroid. distances = sqrt((thisBoundary(:,1) - centroidX).^2 + (thisBoundary(:,2) - centroidY).^2); % Scan the boundary to find the pixel on it that is % farthest from the centroid. maxRadius = max(distances); [maxRadius, maxRadiusIndex] = max(distances); maxPointCoord = thisBoundary(maxRadiusIndex,:); I did it but this return only one point at maximum distance. I need second point at maximum distance. help me out
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Point Cloud Processing 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!