Segmentation Fault on some images
alexanderswerdlow opened this issue · comments
Alexander Swerdlow commented
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.
Li Zhaoxi commented
@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)
.