I have segmented an image into 16X16 blocks and stored the segmented frames in an array. Now i need to feed document frames as video frames into AVC/H.264. Kindly help how to implement AVC and how to feed document frames into AVC.

조회 수: 1 (최근 30일)
I have segmented an image into 16X16 blocks and stored the segmented frames in an array. Now i need to feed document frames as video frames into AVC/H.264. Kindly help how to implement AVC and how to feed document frames into AVC.
Following is my code. clear; close all; img = imread('sample1.bmp'); figure,imshow(img,[]); [x,y] = size(img);
t1=fix(x/16); t2=fix(y/16); % x=23 So we compute x/16 which is 23/16=1.437 % y=98/16 we compute y/16 which is 98/16=6.125
r=t1*16; %r=1*16 c=t2*16; %c=6*16
count=0; for i = 1:16:r for j = 1:16:c count=count+1; tmp = img(i:(i+15), j:(j+15)); blocks{count}=tmp; % Storing block of images into array figure; imshow(blocks{count}); end end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by