rzdx / FHF

Fuzzy similarity measure-based hybrid image filter for color image restoration: multimethodology evolutionary computation
5 stars 0 forks source link

Zero indices in the neighbor filter #3

Closed ChinChangYang closed 10 years ago

ChinChangYang commented 10 years ago

After running main.m, the following error occurred.

Subscript indices must either be real positive integers or logicals.

Error in fltr.fznb>Y (line 18) O(r,c,:)=I(sr,sc,:);

Error in fltr.fznb (line 3) O=Y(I,di);

Error in fltr.fzhy (line 2) O=fltr.fzrg(fltr.fznb(I));

Error in main (line 7) fnl=fltr.fzhy(N1515);

ChinChangYang commented 10 years ago

Prevent zero value in denominator https://github.com/rzdx/FHF/commit/0f0e9812bf078df5ca13befb8bfb12d7e9935b45.