Before I more closely studied the following error message...
ERROR:
Traceback (most recent call last):
File "polarize.py", line 13, in <module>
output = img.binarize(val).invert()
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.py", line 3045, in invert
return -self
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.py", line 4729, in __neg__
return Image(newbitmap, colorSpace=self._colorSpace)
File "/usr/local/lib/python2.7/dist-packages/SimpleCV/ImageClass.py", line 1035, in __init__
self._bitmap = cv.CreateImage(cv.GetSize(source), source.depth, 3)
error: Failed to allocate 614794416 bytes
I hadn't thought to convert the bytes figure there into megabytes. Well, turns out its something like 500MB.
I've now allocated well over 8GB of memory (16GB Macbook) to this VirtualBox and obviously that does not aide me anymore here.
I need more "room" for Python.
By the way, the file being loaded in is a 9MB PNG file which balloons into about 80MB when expanded as a png, and fully balloons to something like 800mb when it becomes an uncompressed TIFF bitmap. However, in this case, it looks like the full extent of the memory requirements (~500MB) are a bit less than that. I would like to allocate 2-3GB to Python if it needs it.