matlab公共函數之保存YUV數據
matlab保存圖像為YUV格式的腳本函數
% function flag = saveYUVData(filename,Y,U,V,format) % input params. % filename: saving data path % Y: Y data, res. width x height % U: U data, res. width/2 x height/2 for NV12, NV21 and YUV420P, width x height for YUV444 % V: V data, res. width/2 x height/2 for NV12, NV21 and YUV420P, width x height for YUV444 % format: must be NV12, NV21, YUV420P or YUV444 % % output % flag: if successed, flag = 1, otherwise flag = 0 % % % Author: KevenLee % Contact: [email protected]
matlab公共函數之保存YUV數據