1 | initial version |

```
cv.GetMat(myIplImage)
```

Since OpenCV seems to be moving away from IplImages, it would make sense for cv_bridge to do the same. Perhaps that should be ticketed.

2 | Additional info for the answer |

```
cv.GetMat(myIplImage)
```

Since OpenCV seems to be moving away from IplImages, it would make sense for cv_bridge to do the same. Perhaps that should be ticketed.

Edit by @Pi Robot: it also seems necessary to then convert this to a numpy array for other OpenCV functions like cvtColor to work; so the above would become:

```
np.array(cv.GetMat(myIplImage), dtype=np.uint8)
```

3 | Removed edit by Pi Robot |

```
cv.GetMat(myIplImage)
```

Since OpenCV seems to be moving away from IplImages, it would make sense for cv_bridge to do the same. Perhaps that should be ticketed.

Edit by @Pi Robot: it also seems necessary to then convert this to a numpy array for other OpenCV functions like cvtColor to work; so the above would become:

```
np.array(cv.GetMat(myIplImage), dtype=np.uint8)
```

ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.