亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? motionesttss.m

?? 運(yùn)動估計(jì)(包含七種算法)
?? M
字號:
% Computes motion vectors using Three Step Search method
%
% Input
%   imgP : The image for which we want to find motion vectors
%   imgI : The reference image
%   mbSize : Size of the macroblock
%   p : Search parameter  (read literature to find what this means)
%
% Ouput
%   motionVect : the motion vectors for each integral macroblock in imgP
%   TSScomputations: The average number of points searched for a macroblock
%
% Written by Aroh Barjatya


function [motionVect, TSScomputations] = motionEstTSS(imgP, imgI, mbSize, p)

[row col] = size(imgI);

vectors = zeros(2,row*col/mbSize^2);
costs = ones(3, 3) * 65537;

computations = 0;

% we now take effectively log to the base 2 of p
% this will give us the number of steps required

L = floor(log10(p+1)/log10(2));   
stepMax = 2^(L-1);

% we start off from the top left of the image
% we will walk in steps of mbSize
% for every marcoblock that we look at we will look for
% a close match p pixels on the left, right, top and bottom of it

mbCount = 1;
for i = 1 : mbSize : row-mbSize+1
    for j = 1 : mbSize : col-mbSize+1
        
        % the three step search starts
        % we will evaluate 9 elements at every step
        % read the literature to find out what the pattern is
        % my variables have been named aptly to reflect their significance

        x = j;
        y = i;
        
        % In order to avoid calculating the center point of the search
        % again and again we always store the value for it from teh
        % previous run. For the first iteration we store this value outside
        % the for loop, but for subsequent iterations we store the cost at
        % the point where we are going to shift our root.
        
        costs(2,2) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(i:i+mbSize-1,j:j+mbSize-1),mbSize);
        
        computations = computations + 1;
        stepSize = stepMax;               

        while(stepSize >= 1)  

            % m is row(vertical) index
            % n is col(horizontal) index
            % this means we are scanning in raster order
            for m = -stepSize : stepSize : stepSize        
                for n = -stepSize : stepSize : stepSize
                    refBlkVer = y + m;   % row/Vert co-ordinate for ref block
                    refBlkHor = x + n;   % col/Horizontal co-ordinate
                    if ( refBlkVer < 1 || refBlkVer+mbSize-1 > row ...
                        || refBlkHor < 1 || refBlkHor+mbSize-1 > col)
                        continue;
                    end


                    costRow = m/stepSize + 2;
                    costCol = n/stepSize + 2;
                    if (costRow == 2 && costCol == 2)
                        continue
                    end
                    costs(costRow, costCol ) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                        imgI(refBlkVer:refBlkVer+mbSize-1, refBlkHor:refBlkHor+mbSize-1), mbSize);
                    
                    computations = computations + 1;
                end
            end
        
            % Now we find the vector where the cost is minimum
            % and store it ... this is what will be passed back.
        
            [dx, dy, min] = minCost(costs);      % finds which macroblock in imgI gave us min Cost
            
            
            % shift the root for search window to new minima point

            x = x + (dx-2)*stepSize;
            y = y + (dy-2)*stepSize;
            
            % Arohs thought: At this point we can check and see if the
            % shifted co-ordinates are exactly the same as the root
            % co-ordinates of the last step, then we check them against a
            % preset threshold, and ifthe cost is less then that, than we
            % can exit from teh loop right here. This way we can save more
            % computations. However, as this is not implemented in the
            % paper I am modeling, I am not incorporating this test. 
            % May be later...as my own addition to the algorithm
            
            stepSize = stepSize / 2;
            costs(2,2) = costs(dy,dx);
            
        end
        vectors(1,mbCount) = y - i;    % row co-ordinate for the vector
        vectors(2,mbCount) = x - j;    % col co-ordinate for the vector            
        mbCount = mbCount + 1;
        costs = ones(3,3) * 65537;
    end
end

motionVect = vectors;
TSScomputations = computations/(mbCount - 1);
                    

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区小说| 亚洲一区在线观看网站| 久久蜜桃香蕉精品一区二区三区| 91精品国产日韩91久久久久久| 欧美亚洲国产怡红院影院| 91在线免费看| 欧美性色综合网| 欧美视频三区在线播放| 国产乱人伦偷精品视频不卡| 国产成人日日夜夜| 在线观看日韩国产| 制服丝袜av成人在线看| 久久久亚洲综合| 欧美日韩国产一二三| 蜜桃av一区二区| 国产精品一区在线观看乱码| 91首页免费视频| 日韩一区二区三区高清免费看看| 欧美不卡一区二区三区| ...中文天堂在线一区| 免费的成人av| 欧美一a一片一级一片| 久久久久久毛片| 日韩精品一级中文字幕精品视频免费观看 | 日本在线不卡视频一二三区| 国模套图日韩精品一区二区| 欧洲亚洲精品在线| 中文字幕第一区| 成人做爰69片免费看网站| 日韩午夜精品视频| 日韩电影在线免费看| 欧美专区日韩专区| 最新国产精品久久精品| 久久精品国产99国产精品| 91精品国产91久久综合桃花| 亚洲另类春色校园小说| 91婷婷韩国欧美一区二区| 久久久久国产精品麻豆ai换脸 | 丰满岳乱妇一区二区三区| 色偷偷一区二区三区| 国产欧美日韩麻豆91| 日韩高清国产一区在线| 色综合色狠狠天天综合色| 久久亚洲精品小早川怜子| 美女在线视频一区| 欧美日韩综合不卡| 亚洲成人av在线电影| 色综合久久久网| 亚洲色图.com| 成人精品视频一区二区三区尤物| 91精品国产91热久久久做人人| 亚洲综合色婷婷| 波多野结衣精品在线| 国产精品久久久久久久久久久免费看| 精品在线观看免费| 欧美电影免费观看高清完整版在线观看| 亚洲一区二区三区小说| 欧美理论片在线| 蜜乳av一区二区三区| 精品国产sm最大网站| 国产高清亚洲一区| 国产欧美日韩视频在线观看| 成人午夜视频福利| 亚洲天堂久久久久久久| 日本道免费精品一区二区三区| 一二三区精品视频| 精品少妇一区二区三区视频免付费| 韩国一区二区三区| 亚洲色图清纯唯美| 欧美成人精品1314www| 成人av在线网站| 亚洲国产综合91精品麻豆| 欧美刺激脚交jootjob| 99久久精品99国产精品| www.99精品| 欧美国产激情二区三区| 欧美中文字幕一区二区三区| 亚洲高清不卡在线| 日韩精品一区二区三区视频播放 | 亚洲视频一区二区在线| 7777精品伊人久久久大香线蕉最新版| 精品一区二区三区视频| 成人欧美一区二区三区视频网页 | av午夜精品一区二区三区| 狠狠色综合日日| 亚洲成av人在线观看| 国产精品久久久久久一区二区三区 | 亚洲免费在线观看视频| 国产午夜精品理论片a级大结局| 91精品国产综合久久精品性色 | 欧美日本国产一区| 色综合久久88色综合天天| 成人在线综合网| bt7086福利一区国产| 成人动漫在线一区| 狠狠色狠狠色综合| 激情综合五月天| 韩国毛片一区二区三区| 国产精品资源网| 国产91色综合久久免费分享| 成人午夜电影小说| 国产精品一区二区三区四区| 国产精品亚洲第一区在线暖暖韩国| 国产美女一区二区| 国产91精品一区二区麻豆亚洲| 国产成人精品亚洲日本在线桃色 | 色狠狠桃花综合| 欧美日韩在线播放三区四区| 日韩一区二区三区四区| 久久一区二区三区四区| 亚洲欧美另类在线| 久久精品国产精品亚洲综合| 黄页视频在线91| 99久久国产综合精品女不卡| 欧美日韩亚洲高清一区二区| 日韩欧美久久一区| 亚洲精品中文在线观看| 精品一区精品二区高清| 一本久久a久久精品亚洲| 91精品国产综合久久福利| 国产精品每日更新在线播放网址| 久久久久久久久久久久久久久99 | 亚洲一级二级在线| 国产美女在线观看一区| 欧美日韩成人高清| 亚洲丝袜精品丝袜在线| 国产suv精品一区二区883| 欧美一区二区免费视频| 亚洲精品国产成人久久av盗摄 | 亚洲精品一线二线三线| 亚洲国产精品传媒在线观看| 青青草视频一区| 色婷婷综合久久久久中文| 久久久精品国产免大香伊| 蜜臀av国产精品久久久久| 9191精品国产综合久久久久久| 亚洲一区二区三区激情| 99riav一区二区三区| 亚洲欧洲国产日本综合| 成人综合在线视频| 国产精品久久久久久久久图文区 | 不卡欧美aaaaa| 国产精品久久三| 99久久久免费精品国产一区二区 | 亚洲国产视频一区| 欧美无乱码久久久免费午夜一区 | 男男成人高潮片免费网站| 7777精品伊人久久久大香线蕉的 | 欧美老女人第四色| 国产精品成人一区二区艾草| 在线视频综合导航| 日韩中文字幕av电影| 久久久久一区二区三区四区| 国产成人精品三级麻豆| 亚洲午夜免费视频| 久久精品一区四区| 欧美日韩二区三区| 成人18视频在线播放| 首页国产丝袜综合| 亚洲欧美另类久久久精品| 欧美刺激脚交jootjob| 色噜噜狠狠一区二区三区果冻| 久久成人久久爱| 偷拍日韩校园综合在线| 最新日韩av在线| 中文字幕第一区| 国产亚洲成av人在线观看导航| 91精品国产综合久久精品麻豆| 91丝袜国产在线播放| 成人av免费在线| 国产精品资源在线观看| 久99久精品视频免费观看| 日韩成人精品在线| 日韩专区一卡二卡| 日韩精品亚洲一区| 美脚の诱脚舐め脚责91| 青青青伊人色综合久久| 美女视频网站黄色亚洲| 久99久精品视频免费观看| 国产精品自拍一区| jlzzjlzz欧美大全| 91国偷自产一区二区开放时间 | 中文字幕亚洲一区二区av在线| 亚洲三级在线免费观看| 亚洲一区二区精品视频| 国产成人精品www牛牛影视| 91精品国产麻豆国产自产在线 | 五月天中文字幕一区二区| 丁香六月久久综合狠狠色| 精品国偷自产国产一区| 日韩不卡在线观看日韩不卡视频| 91麻豆免费看片| 亚洲欧美日韩国产综合| 成人精品高清在线| 国产女人aaa级久久久级 | 不卡av在线免费观看| 国产精品久久精品日日| 99视频国产精品| 亚洲精品日韩专区silk| 一本大道av一区二区在线播放 |