Convert Image to Video Processing, the next step.
1 次查看(过去 30 天)
显示 更早的评论
Greetings fellow programmers! As stated in the title, I am in quite a pickle. I have done my image processing completely but I have yet to learn any techniques for running a recorded video processing.
Here are my desired pre-processing of image,
if true
Reader = VideoReader('StuckTear.MOV');
get(Reader);
DarkPixel = 125;
extraction = rgb2gray(read(Reader,80));
Threshold = imextendedmax(extraction, DarkPixel);
redux = bwareaopen (Threshold, 35000);
%imshow(extraction)
%figure, imshow(redux);
for x = 1 : nframes
singleFrame = read(Reader, x);
I = rgb2gray(singleFrame);
fill = imfill (redux, 'holes');
se = strel('disk', 10);
dilate = imdilate(fill, se);
G = fspecial('gaussian', [15 15], 2);
Ig = imfilter(dilate, G, 'circular');
end
end
I have done processing my image and I wanted the recorded video to be processed the same way but by frame by frame, is there anyone out there that could provide me some example or perhaps some guidance regarding this? Thank you very much.
I am also planning to make centroid and bounding box on the "ON" pixels as well but that can wait.
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!