rmislam/PythonSIFT

FindScaleSpaceExtrema error

SebastianusRadhya opened this issue · 1 comments

Hi, I'm trying to compute the FindScaleSpaceExtrema function and it's taking a really long time with a Runtime warning below.
RuntimeWarning: overflow encountered in ubyte_scalars
dx = gaussian_image[region_y, region_x + 1] - gaussian_image[region_y, region_x - 1]
RuntimeWarning: overflow encountered in ubyte_scalars
gradient_magnitude = np.sqrt(dx * dx + dy * dy)
RuntimeWarning: overflow encountered in ubyte_scalars
dy = gaussian_image[region_y - 1, region_x] - gaussian_image[region_y + 1, region_x]

How can i resolve this issue? Thank you.

It will take a long time because of how it's implemented in Python for readability.
If you can give me details about your Python, Numpy, etc. versions, then I can try to reproduce this.