Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Read YUV image from filedump

Hello Guys, I am having yuv pixel contents(YUV420) as file dump. For example,

byte[1], byte[2]........byte[(width * height * 3)/2] in file.

I am having few questions:

1) How to read YUV pixels using file pointer and store in Mat object.

2) How to convert YUV Mat object to RGB Mat object.

I am using CPP code.

Thanks in Advance ...

click to hide/show revision 2
retagged

updated 2017-01-05 09:35:33 -0600

berak gravatar image

Read YUV image from filedump

Hello Guys, I am having yuv pixel contents(YUV420) as file dump. For example,

byte[1], byte[2]........byte[(width * height * 3)/2] in file.

I am having few questions:

1) How to read YUV pixels using file pointer and store in Mat object.

2) How to convert YUV Mat object to RGB Mat object.

I am using CPP code.

Thanks in Advance ...

click to hide/show revision 3
retagged

updated 2017-01-05 09:35:36 -0600

berak gravatar image

Read YUV image from filedump

Hello Guys, I am having yuv pixel contents(YUV420) as file dump. For example,

byte[1], byte[2]........byte[(width * height * 3)/2] in file.

I am having few questions:

1) How to read YUV pixels using file pointer and store in Mat object.

2) How to convert YUV Mat object to RGB Mat object.

I am using CPP code.

Thanks in Advance ...