필터 지우기
필터 지우기

Graph Extraction from Handwritten Character?

조회 수: 2 (최근 30일)
Mohammad Bhat
Mohammad Bhat 2017년 6월 27일
댓글: Mohammad Bhat 2017년 6월 27일
1) For each connected component… 2)…find junction points 3)invert junction points 4)For each connected subcomponent… 5)find start- and end points 6)add nodes along path 7) Replace neighbours of junction point 8)Add edges based on skeleton
  댓글 수: 1
Mohammad Bhat
Mohammad Bhat 2017년 6월 27일
clc; clear all; % read in a sample image -- also see letters.png, bagel.png J=im2double(imread('1.tif'));
% Normalize and Binarization b = imresize(J,[60,60]); th = graythresh(b); BW1 = im2bw(b, th); figure; imshowpair(b, BW1, 'montage');
% the standard skeletonization: skelimg = bwmorph(~BW1,'thin',inf);
bp = bwmorph(skelimg,'branchpoints'); binaryImage = skelimg & ~bp; figure,imshow(binaryImage); I=binaryImage;
[L,num] = bwlabeln(I,8); for i1=num [r,c]=find(bwlabel(I)==2); rc=[r c] endpts=bwmorph(rc,'endpoints'); end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by