How can i save a Mat or Vector in objective c?

asked 2018-08-27 05:27:19 -0600

updated 2018-08-28 06:44:38 -0600

How can i save a Mat or Vector in objective c?

edit retag flag offensive close merge delete

Comments

What do u mean by save a Mat? Do u mean the image itself or the raw pixel values?

eshirima gravatar imageeshirima ( 2018-08-27 10:19:06 -0600 )edit

Why not serializing the mat as an uncompressed image (pgm format for example) There shouldnt be any loss. Writing a mat is done with imwrite()

holger gravatar imageholger ( 2018-08-28 06:41:16 -0600 )edit

Yes, I've multiple Mat in a vector(Objective C) and i want to save them to reuse.

Aditya Sharma gravatar imageAditya Sharma ( 2018-08-28 06:54:09 -0600 )edit

Why not iterating the list of mats and serializing each in an uncompressed image? Or alternativly , combine those mats together and save in one big image.

How to combine mats - http://answers.opencv.org/question/10...

holger gravatar imageholger ( 2018-08-28 07:42:09 -0600 )edit