O'Reilly logo

Visual Media Processing Using MATLAB Beginner's Guide by George Siogkas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – vertical and temporal interpolation method

Now it is time to implement the process described in the previous paragraph. The function that we will use is based on the previous two examples:

function [vid] = SpatioTemporalAverage(vid,order) % Function for de-interlacing a video using spatiotemporal averaging % Inputs: % vid – Input video matrix (we assume color video) % order - Choice for row replacement % Output: % vid - Output video matrix (de-interlaced) vid = single(vid); % Convert matrix to single to perform averaging switch order % Checking choice for the order of merging case 1 % Odd rows from odd frames for fr = 2:size(vid,4)-1 % For all frames (but first&last) for row = 2:size(vid,1)-1 % For all rows (but first&last) if ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required