Li-Zhaoxi / AAMED

Arc Adjacency Matrix based Fast Ellipse Detection
GNU General Public License v2.0
155 stars 35 forks source link

Segmentation Fault on some images #11

Open alexanderswerdlow opened 2 years ago

alexanderswerdlow commented 2 years ago

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

Li-Zhaoxi commented 2 years ago

@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).