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 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!