# Revision history [back]

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 Pi Robot 3956 ●131 ●156 ●191 http://www.pirobot.org/
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 Pi Robot 3956 ●131 ●156 ●191 http://www.pirobot.org/
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)