First time here? Check out the FAQ!
answered 2013-09-01 14:18:46 -0600
import cv2
imwrite("my.ppm",img)
updated 2013-09-01 14:19:29 -0600
cv2.imwrite("my.ppm",img)
updated 2013-09-01 14:35:48 -0600
import cv2writing the ppm file is quite easy:
if your "image" is actually a in-memory representation of an image-file ( not plain pixels ), you have to decode it before:
img = cv2.imdecode(input,1)
updated 2013-09-01 14:39:38 -0600
writing the ppm file is quite easy:
i have no idea, what function_that_return_an_image() actually returns.
updated 2013-09-01 14:42:02 -0600