lessthanoptimal/BoofCV — Issue #4: Exception in Surf description
Author: olegc
Created: 2012-01-04 17:18:17+00:00
State: open

Hello,

I am trying to run your code for point association with surf and I got an ArrayOutOfBoundsEcxeption at:

FATAL EXCEPTION: main
java.lang.ArrayIndexOutOfBoundsException
at boofcv.alg.feature.describe.impl.ImplSurfDescribeOps.gradientInner(ImplSurfDescribeOps.java:149)
at boofcv.alg.feature.describe.SurfDescribeOps.gradient_noborder(SurfDescribeOps.java:92)
at boofcv.alg.feature.orientation.impl.ImplOrientationAverageIntegral_I32.compute(ImplOrientationAverageIntegral_I32.java:69)
at boofcv.abst.feature.describe.WrapDescribeSurf.process(WrapDescribeSurf.java:87)
at com.nobm.stereocamera.InterestPointAssociator.describeImage(InterestPointAssociator.java:151)

with indexes:

length = 460800
r = 6 w = 13
indexSrc1 452677
indexSrc2 456517
indexSrc3 457157
indexSrc4 460997

image size is 640X720.

It seems that the check for bounds was successful while it actually isn't.

Any help will be much appreciated.

Thanks,
Oleg.