jianxux / eyes-free

Automatically exported from code.google.com/p/eyes-free
0 stars 0 forks source link

[OCR] blurExtent gives NaN. #72

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Modify IsBlurred or add a new function in Blur.cpp to return the blurExtent 
value, also need to modify blur.h and blur-jni.cpp to pass on the value.

What is the expected output? What do you see instead?
I expected to see the blur extent value (between 0 and 1). I get a NaN, 0/0. 
nrg and nbrg are always set to 0 even in a very blurred picture in the 
DetectBlur function. nda and nedge have valid values as expected. I checked and 
the conditions to increment the values seem correct according to the paper, but 
I am a bit lost to understand the maths beyond this.

What version of the product are you using? On what operating system?

Compiled the native librairies on Ubuntu 11.04. compiled the java project with 
Eclipse Helios on Window 7. Running on a Nexus S. Using sources r710 (latest 
version).

Please provide any additional information below.

I know this is low priority as it does not cause a problem with eyes-free 
itself but if you know why it would be useful.

Original issue reported on code.google.com by eric.bou...@gmail.com on 31 Aug 2011 at 6:51

GoogleCodeExporter commented 9 years ago

Original comment by alanv@google.com on 27 May 2012 at 5:14