필터 지우기
필터 지우기

How to map image into a unit disk?

조회 수: 2 (최근 30일)
Minu
Minu 2013년 5월 6일
댓글: honey 2015년 1월 2일
I am doing my project on OCR.For feature extraction i have used zernike moments.For this i want to map the image plane inside the unit circle.I have used this code.But its not work properly.
d = size(img); xstep = 2/(d(1)-1); ystep = 2/(d(2)-1); [x,y] = meshgrid(-1:xstep:1,-1:ystep:1); circle1 = x.^2 + y.^2; inside = find(circle1<=1); mask = zeros(d); mask(inside) = ones(size(inside));
Could anyone help me to implement this .Matlab source code will be great help for me...
  댓글 수: 1
honey
honey 2015년 1월 2일
Hello Minu, I am also working on OCR for Gujarati language and using zernike moment for feature extraction. Can you give me that code? Thank you in advance.

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

답변 (1개)

Reyadh
Reyadh 2013년 6월 8일
편집: Reyadh 2013년 6월 8일
I think your code is ok just add p=mask.*img; at the end of code and p will be the output image

카테고리

Help CenterFile Exchange에서 Zernike Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by