필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to update the value of next pixel in chain code?

조회 수: 1 (최근 30일)
Ekta Sharma
Ekta Sharma 2016년 3월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2016년 3월 4일
There is code for Freeman chain in the File Exchange
Ekta Sharma
Ekta Sharma 2016년 3월 6일
Yes Sir...You are right.Code is available but I am unable to understand it.How to provide input to the function?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 3월 6일
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

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by