Ask Your Question

how to use getFullMaskedImage()

asked 2013-11-27 16:02:40 -0500

dangerboy gravatar image

I see this within the SimpleCV Docs but I can't seem to get it to work.

img_mask = blobs[-1].getFullMaskedImage()

# AttributeError: 'Blob' object has no attribute 'getFullMaskedImage'

The description sounds good: "Get the full size image with the masked to the blob"

any advice? am I using it wrong as a call on a blob?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-02 12:07:11 -0500

dangerboy gravatar image

I found that my error message was correct. I had no 'getFullMaskedImage' function within my Blob modual!

This function was listed on the simpleCV API docs.

It wasn't within my '' file within my 'C:\Python27\Lib\site-packages\SimpleCV\Features' folder...

I IS included in the '' file found on GitHub with 'SimpleCV/SimpleCV/Features'...

So, I had to update my file:

These are the steps done on Windows 7: 1.) I made a copy of my old '' and the 'Blob.pyc' just in case something went wrong 2.) I copied the code from GitHub into an empty text file 3.) I saved this new code as '' on top of the existing '' (replacing the old file with the new one) 4.) I opened a command window and CD to C:\Python27 5.) I ran the command as found on the simpleCV install page: pip install

I had to repeat the above steps for '', as that had a function referenced by getFullMaskedImage that also was missing...

now this function works as expected:

img_mask = blobs[-1].getFullMaskedImage()

This returns an image of the biggest blob shown in white on top of a blank (Black) image!
now you can getNumpy() on this and have a nice matrix to do math and logic on!

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2013-11-27 16:02:40 -0500

Seen: 65 times

Last updated: Dec 02 '13