ncmoment.m
上传用户:zslfgd
上传日期:2010-04-06
资源大小:115k
文件大小:1k
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% %%
- %% Prof. Sclaroff's CS585 Image avd Video Processing %%
- %% Project ONE %%
- %% C H A R A C T E R R E C O G N I T I O N %%
- %% %%
- %% by Stanislav Rost %%
- %% ID: 31764117 %%
- %% %%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- function result = ncmoment(j, k, matrix, width, height)
- % NORMCENTRALMOMENT.M
- %
- % function result = normcentralmoment(j, k, matrix, width, height)
- %
- % Returns (j,k)-th normalized central moment of 2D binary image "matrix"
- gamma = (j+k)/2 + 1;
- result = centralmoment(j, k, matrix, width, height)/...
- (centralmoment(0, 0, matrix, width, height)^gamma);