ranzan
ranzan

Reputation: 79

converting image into matrix and vice versa?

Please tell me how to convert image into matrix of pixels and vice versa...using opencv??

Upvotes: 7

Views: 7725

Answers (1)

OwnWaterloo
OwnWaterloo

Reputation: 1983

You can treat a matrix or an image as a matrix(or an image) by calling cvGetMat (or cvGetImage).No data will be copied.
If you want to copy the data, use cvCopy.

Upvotes: 2

Related Questions