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 Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by