Ask Your Question
0

Why does calling findBlobs on this Image cause a segfault?

asked 2013-05-07 06:45:48 -0500

blz gravatar image

This image was obtained by calling Image.split(3, 3) on the original png file here. It is located at index 0, 2 in the list that is output by the split method.

The following code produces a segfault on my machine (Ubuntu 13.04, x86_64 running SimpleCV 1.3.0):

img = Image('/path/to/problem.png')  # first link
img.findBlobs()

What gives?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-05-07 09:01:11 -0500

kscottz gravatar image

Interesting. Can you post the images? There was a bug fix for 1.3 awhile ago that fixed an OpenCV bug that caused images that were all black with a single white pixel to segfault. I can't say a whole lot without seeing the input. My first suggestion is to do a git pull from the develop branch versus running 1.3.

edit flag offensive delete link more

Comments

@kscottz, The links above point to the images in question. You can either load the first link into a `SimpleCV.Image` instance and run`findBlobs` to reproduce the bug, or you can try splitting the original image (second link) yourself and calling `findBlobs` on each result. I'll try the git pull!

blz gravatar imageblz ( 2013-05-07 10:00:05 -0500 )edit

Sorry, I was going through these before coffee. That image looks like it hits the bug we thought we fixed. I can confirm that it does indeed segfault. Unfortunately the seg fault lives in OpenCV and not SimpleCV. I went ahead and filed an [issue](https://github.com/sightmachine/SimpleCV/issues/516)

kscottz gravatar imagekscottz ( 2013-05-08 08:51:17 -0500 )edit

I will see if I can find a quick fix for this today. I may need to confer with the OpenCV team to see if we can't get this resolved.

kscottz gravatar imagekscottz ( 2013-05-08 08:52:03 -0500 )edit

One of our awesome GSoC students got to this today. Pull from the develop branch of SimpleCV on github and it should fix your problem.

kscottz gravatar imagekscottz ( 2013-05-08 12:55:30 -0500 )edit

@kscottz, thanks for the follow-up! I can confirm that this fix works on my end as well. Please give your GSoC student a pat on the back from me!

blz gravatar imageblz ( 2013-05-14 02:52:59 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-05-07 06:45:48 -0500

Seen: 583 times

Last updated: May 07 '13