AAMED icon indicating copy to clipboard operation
AAMED copied to clipboard

Segmentation Fault on some images

Open alexanderswerdlow opened this issue 2 years ago • 1 comments

Some images seem to cause a seg fault. About half the jpegs I tested cause this.

It looks like it seg faults here. It looks like (data + idxdMove)->Location or (data + idxdFind)->Location is some erroneous values but not sure why this happens.

As an example, this image causes a seg fault bike

alexanderswerdlow avatar Jan 26 '22 18:01 alexanderswerdlow

@alexanderswerdlow This error generally indicates that you have not defined a variable of AAMED correctly. Class declaration AAMED aamed(int drows, int dcols). Please ensure that drows and dcols are larger than the rows and cols of an image separately.

For example, the height and width of your provided image are 600, 1200, so you can define AAMED aamed(700, 1300).

Li-Zhaoxi avatar Jan 29 '22 08:01 Li-Zhaoxi