フィルターのクリア

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 Center および File ExchangeZernike Polynomials についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by