Li-Zhaoxi / AAMED

Arc Adjacency Matrix based Fast Ellipse Detection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segmentation Fault on some images

alexanderswerdlow opened this issue · 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 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).