Changeset 664 for trunk/software
- Timestamp:
- 02/10/10 22:36:31 (2 years ago)
- Files:
-
- 1 modified
-
trunk/software/rb/vision/_camera.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/software/rb/vision/_camera.c
r610 r664 321 321 322 322 static PyObject* 323 _camera_ipl_image_from_rgb_ string(PyObject *self, PyObject *args)323 _camera_ipl_image_from_rgb_buffer(PyObject *self, PyObject *args) 324 324 { 325 325 int width, height; 326 326 Py_buffer buffer; 327 if (!PyArg_ParseTuple(args, "s*(ii):ipl_image_from_rgb_ string", &buffer, &width, &height))327 if (!PyArg_ParseTuple(args, "s*(ii):ipl_image_from_rgb_buffer", &buffer, &width, &height)) 328 328 return NULL; 329 329 … … 358 358 "The file type will be taken from the extension in the " 359 359 "given filename --- use ``.jpg`` or ``.png``."}, 360 {"ipl_image_from_rgb_ string", _camera_ipl_image_from_rgb_string, METH_VARARGS,360 {"ipl_image_from_rgb_buffer", _camera_ipl_image_from_rgb_buffer, METH_VARARGS, 361 361 "Produce a BGR IplImage from an RGB buffer. Takes two " 362 362 "arguments: the buffer to read from and a two-tuple "

