Ask Your Question

VladTheImpala's profile - activity

2014-10-08 13:25:58 -0600 asked a question OpenCV tries to allocate a crazy amount of memory

Whenever I try to read this image (http://static.adit.io/image.tiff) with OpenCV, I get the following error:

OpenCV Error: Insufficient memory (Failed to allocate 18446744072949170176 bytes) in OutOfMemoryError, file /path/to/file/opencv-2.4.9/modules/core/src/alloc.cpp, line 52

I have seen this happen with other images too. What's going on?

2014-08-20 13:57:53 -0600 asked a question Preserve CMYK colorspace in OpenCV

I load an image in the CMYK color space, and immediately write it back out without doing anything else. The resulting image is in sRGB. Is there a way to preserve CMYK?

2014-08-19 16:58:56 -0600 commented question Write out mat to stream / print to screen

Not actively maintained for sure. But I need to use opencv from nginx, and lua runs in nginx, so I needed lua bindings.

2014-08-19 14:55:04 -0600 received badge  Editor (source)
2014-08-19 14:54:43 -0600 commented question Write out mat to stream / print to screen

That did it, thanks! I should've specified: I'm not using python, I am using luacv. It provides lua bindings and uses opencv v2.

2014-08-18 16:28:39 -0600 asked a question Write out mat to stream / print to screen

I have a mat, and I can save it to the filesystem with something like:

cv.SaveImage("/tmp/out.png", mat)

But I'm using opencv with a web server, and I want to write out the image data directly to the client. The equivalent would be writing out the image data to stdout. Is there a way to do this?