PythonSIFT icon indicating copy to clipboard operation
PythonSIFT copied to clipboard

FindScaleSpaceExtrema error

Open SebastianusRadhya opened this issue 3 years ago • 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.

SebastianusRadhya avatar Nov 03 '22 18:11 SebastianusRadhya

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.

rmislam avatar Jan 26 '24 13:01 rmislam