Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
How to update the value of next pixel in chain code?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am getting first non zero pixel and its chain code but then i need to go to next pixel depending upon that direction.How I can proceed further? Thanks in advance.
2 Kommentare
Antworten (1)
Walter Roberson
am 6 Mär. 2016
Use bwboundaries to extract boundaries. The first output of it will be a cell array, one entry for each region found. Pass the contents of each entry in the cell array to the chaincode routine at http://www.mathworks.com/matlabcentral/fileexchange/29518-freeman-chain-code
B = bwboundaries(YourImage);
numregions = length(B);
chains = cell(numregions,1);
for blobnum = 1 : numregions
chains{blobnum} = chaincode(B{blobnum});
end
0 Kommentare
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!