Can anyone provide me chain code for boundary detection in the matlab with explanation?
    7 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
Chain code is used for boundary detection.
0 Kommentare
Antworten (2)
  Walter Roberson
      
      
 am 22 Dez. 2015
        2 Kommentare
  Walter Roberson
      
      
 am 23 Dez. 2015
				unwrap: "if enable phase inversions are eliminated"
As for the errors: you will need to show us the error messages you are encountering.
  Image Analyst
      
      
 am 23 Dez. 2015
        It's easy enough to do yourself. You can use bwboundaries() to get a list of boundary coordinates. Then loop over them and figure out which of the 8 directions the next pixel in the list is and assign a number from 1 to 8 to that pixel.
boundaries = bwboundaries()
x = boundaries(:, 2);
y = boundaries(:, 1);
for k = 1 : length(x)-1;
    thisX = x(k);
    thisY = y(k);
    nextX = x(k+1);
    nextY = y(k+1);
    if nextX == thisX
        % and so on.....
end
It's late here, so see if you can complete it yourself. It's easy.
Siehe auch
Kategorien
				Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


