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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? motionestsestss.m

?? 運動估計(包含七種算法)
?? M
字號:
% Computes motion vectors using Simple and Efficient TSS method
%
% Based on the paper by Jianhua Lu and Ming L. Liou
% IEEE Trans. on Circuits and Systems for Video Technology
% Volume 7, Number 2, April 1997 :  Pages 429:433
%
% 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
%   SESTSScomputations: The average number of points searched for a macroblock
%
% Written by Aroh Barjatya


function [motionVect, SESTSScomputations] = motionEstSESTSS(imgP, imgI, mbSize, p)

[row col] = size(imgI);

vectors = zeros(2,row*col/mbSize^2);


% 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);
costs = ones(1,6)*65537;

computations = 0;

% 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 Simple and Efficient three step search starts here
        %
        % each step is divided into two phases
        % in the first phase we evaluate the cost in two ortogonal
        % directions at a distance of stepSize away
        % based on a certain relationship between the three points costs
        % we select the remaining TSS points in the second phase
        % At the end of the second phase, which ever point has the least
        % cost becomes the root for the next step.
        % Please read the paper to find out more detailed information

        stepSize = stepMax;
        x = j;
        y = i;
        while (stepSize >= 1)
            refBlkVerPointA = y;
            refBlkHorPointA = x;
            
            refBlkVerPointB = y;
            refBlkHorPointB = x + stepSize;
            
            refBlkVerPointC = y + stepSize;
            refBlkHorPointC = x;
            
            if ( refBlkVerPointA < 1 || refBlkVerPointA+mbSize-1 > row ...
                    || refBlkHorPointA < 1 || refBlkHorPointA+mbSize-1 > col)
                % do nothing %
                
            else
                costs(1) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                              imgI(refBlkVerPointA:refBlkVerPointA+mbSize-1, ...
                                 refBlkHorPointA:refBlkHorPointA+mbSize-1), mbSize);
                computations = computations + 1;
            end
            
            if ( refBlkVerPointB < 1 || refBlkVerPointB+mbSize-1 > row ...
                    || refBlkHorPointB < 1 || refBlkHorPointB+mbSize-1 > col)
                % do nothing %
                
            else
                costs(2) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                        imgI(refBlkVerPointB:refBlkVerPointB+mbSize-1, ...
                            refBlkHorPointB:refBlkHorPointB+mbSize-1), mbSize);
                computations = computations + 1;
            end
                       

            if ( refBlkVerPointC < 1 || refBlkVerPointC+mbSize-1 > row ...
                    || refBlkHorPointC < 1 || refBlkHorPointC+mbSize-1 > col)
                % do nothing %
                
            else
                costs(3) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                        imgI(refBlkVerPointC:refBlkVerPointC+mbSize-1, ...
                            refBlkHorPointC:refBlkHorPointC+mbSize-1), mbSize);
                computations = computations + 1;
            end
                        

                        
            if (costs(1) >= costs(2) && costs(1) >= costs(3))
                quadrant = 4;
            elseif (costs(1) >= costs(2) && costs(1) < costs(3))
                quadrant = 1;
            elseif (costs(1) < costs(2) && costs(1) < costs(3))
                quadrant = 2;
            elseif (costs(1) < costs(2) && costs(1) >= costs(3))
                quadrant = 3;
            end
            
            switch quadrant
                case 1
                    refBlkVerPointD = y - stepSize;
                    refBlkHorPointD = x;
                    
                    refBlkVerPointE = y - stepSize;
                    refBlkHorPointE = x + stepSize;
                    
                    if ( refBlkVerPointD < 1 || refBlkVerPointD+mbSize-1 > row ...
                            || refBlkHorPointD < 1 || refBlkHorPointD+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(4) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                    
                    if ( refBlkVerPointE < 1 || refBlkVerPointE+mbSize-1 > row ...
                            || refBlkHorPointE < 1 || refBlkHorPointE+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(5) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                    
                         
                case 2
                    refBlkVerPointD = y - stepSize;
                    refBlkHorPointD = x;
                    
                    refBlkVerPointE = y - stepSize;
                    refBlkHorPointE = x - stepSize;
                    
                    refBlkVerPointF = y;
                    refBlkHorPointF = x - stepSize;
                    
            
                    if ( refBlkVerPointD < 1 || refBlkVerPointD+mbSize-1 > row ...
                            || refBlkHorPointD < 1 || refBlkHorPointD+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(4) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                    
                    if ( refBlkVerPointE < 1 || refBlkVerPointE+mbSize-1 > row ...
                            || refBlkHorPointE < 1 || refBlkHorPointE+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(5) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointE:refBlkVerPointE+mbSize-1, ...
                                        refBlkHorPointE:refBlkHorPointE+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                    
                    if ( refBlkVerPointF < 1 || refBlkVerPointF+mbSize-1 > row ...
                            || refBlkHorPointF < 1 || refBlkHorPointF+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(6) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointF:refBlkVerPointF+mbSize-1, ...
                                        refBlkHorPointF:refBlkHorPointF+mbSize-1), mbSize);
                        computations = computations + 1;
                    end

                   
                case 3
                    refBlkVerPointD = y;
                    refBlkHorPointD = x - stepSize;
                    
                    refBlkVerPointE = y - stepSize;
                    refBlkHorPointE = x - stepSize;
                    
                    if ( refBlkVerPointD < 1 || refBlkVerPointD+mbSize-1 > row ...
                            || refBlkHorPointD < 1 || refBlkHorPointD+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(4) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                    
                    if ( refBlkVerPointE < 1 || refBlkVerPointE+mbSize-1 > row ...
                            || refBlkHorPointE < 1 || refBlkHorPointE+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(5) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end

                    
                 case 4
                    refBlkVerPointD = y + stepSize;
                    refBlkHorPointD = x + stepSize;
                    
                    if ( refBlkVerPointD < 1 || refBlkVerPointD+mbSize-1 > row ...
                            || refBlkHorPointD < 1 || refBlkHorPointD+mbSize-1 > col)
                        % do nothing %
                        
                    else
                        costs(4) = costFuncMAD(imgP(i:i+mbSize-1,j:j+mbSize-1), ...
                                    imgI(refBlkVerPointD:refBlkVerPointD+mbSize-1, ...
                                        refBlkHorPointD:refBlkHorPointD+mbSize-1), mbSize);
                        computations = computations + 1;
                    end
                otherwise
                    

            end

            
            % Now we find the vector where the cost is minimum
            % and store it ... this is what will be passed back.
            % we use the matlab function min() in this case and not the one 
            % that is written by author: minCosts()
                    
            
            [cost, dxy] = min(costs);      % finds which macroblock in imgI gave us min Cost
            
            switch dxy
                 case 1
                     % x = x; y = y;  
                 case 2
                     x = refBlkHorPointB; 
                     y = refBlkVerPointB;
                 case 3
                     x = refBlkHorPointC;
                     y = refBlkVerPointC; 
                 case 4
                     x = refBlkHorPointD;
                     y = refBlkVerPointD; 
                 case 5
                     x = refBlkHorPointE;
                     y = refBlkVerPointE;
                 case 6
                     x = refBlkHorPointF;
                     y = refBlkVerPointF;
                     
             end
        
            costs = ones(1,6) * 65537  ;
            stepSize = stepSize / 2;
            
        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;
    end
end

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

                    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产69精品久久久久毛片| 国产精品自拍三区| 亚洲乱码国产乱码精品精98午夜| 精品理论电影在线| 欧美一二三四区在线| 91精品国产aⅴ一区二区| 欧美日韩国产小视频| 精品视频资源站| 一本久久a久久免费精品不卡| 91在线视频官网| 欧美综合在线视频| 欧美一区二区三区人| 精品久久久久一区二区国产| 日韩视频免费观看高清在线视频| 69成人精品免费视频| 精品欧美久久久| 国产日韩欧美亚洲| 国产精品久久久久aaaa樱花| 亚洲综合色区另类av| 麻豆91小视频| www.亚洲精品| 制服丝袜国产精品| 国产视频一区不卡| 一区二区三区免费| 六月丁香综合在线视频| 粉嫩高潮美女一区二区三区 | 在线不卡中文字幕播放| 欧美一区二区不卡视频| 国产欧美一区二区精品久导航 | 欧美亚洲日本国产| 日韩欧美综合一区| 国产精品久久久久久久久果冻传媒 | 91在线播放网址| 欧美精品视频www在线观看| 精品电影一区二区三区| 综合网在线视频| 久久疯狂做爰流白浆xx| 91美女精品福利| 久久丝袜美腿综合| 亚洲一区在线视频| 国产乱码精品一区二区三区av| 欧美最猛黑人xxxxx猛交| xnxx国产精品| 日日夜夜精品视频免费| www.日本不卡| 国产午夜亚洲精品不卡| 天天操天天干天天综合网| 大桥未久av一区二区三区中文| 欧美精品一二三四| 亚洲欧美一区二区三区孕妇| 国产精品一区二区在线播放| 欧美日韩国产高清一区二区三区 | 天天做天天摸天天爽国产一区| 成人激情图片网| 久久久久久久久久久电影| 视频一区国产视频| 欧洲一区在线电影| 亚洲欧美影音先锋| 豆国产96在线|亚洲| 日韩你懂的在线观看| 亚洲成人av一区二区三区| 91麻豆免费观看| 国产精品国产三级国产普通话三级 | 日本欧美加勒比视频| 在线观看精品一区| 亚洲影视在线观看| 欧美亚洲一区二区在线观看| 亚洲精品免费播放| 91亚洲精品乱码久久久久久蜜桃| 国产亚洲精品资源在线26u| 久久99精品久久只有精品| 日韩欧美一区电影| 久久91精品国产91久久小草| 日韩午夜av电影| 蜜臀av亚洲一区中文字幕| 在线电影一区二区三区| 丝袜亚洲另类欧美综合| 欧美乱妇15p| 日本不卡一区二区三区| 日韩欧美一区电影| 国产一区二区三区免费| 久久久久久免费毛片精品| 国产一二三精品| 国产精品视频第一区| 成人黄色在线网站| 一区二区三区中文字幕精品精品| 日本精品裸体写真集在线观看| 亚洲精品国产精华液| 欧美日韩精品一区二区天天拍小说 | 日本不卡免费在线视频| 日韩欧美国产成人一区二区| 国产一区二区主播在线| 国产精品国产三级国产普通话蜜臀 | 一本大道久久a久久精品综合| 亚洲综合在线五月| 欧美电影免费观看高清完整版在| 紧缚奴在线一区二区三区| 国产午夜精品久久久久久久| 91亚洲精品乱码久久久久久蜜桃 | 欧美mv和日韩mv国产网站| 国产福利91精品一区二区三区| 中文字幕乱码久久午夜不卡 | 亚洲综合一区二区| 日韩一区二区在线看| 国产盗摄一区二区| 亚洲综合色丁香婷婷六月图片| 日韩一区二区精品葵司在线| 成人av电影在线观看| 亚洲国产一区二区a毛片| 亚洲精品一线二线三线| 一本一本久久a久久精品综合麻豆| 香蕉av福利精品导航| 国产色一区二区| 在线播放国产精品二区一二区四区| 精品一区二区三区日韩| 亚洲一区二区三区四区的| 精品国产免费人成在线观看| 日本高清成人免费播放| 国产一二三精品| 日韩av中文在线观看| 亚洲伦理在线精品| 久久久不卡网国产精品二区| 精品视频一区二区不卡| 成人夜色视频网站在线观看| 日韩av网站免费在线| 亚洲一区二区四区蜜桃| 中文字幕一区二区三区蜜月| 欧美videos中文字幕| 欧美老肥妇做.爰bbww视频| 波多野结衣在线一区| 国产在线不卡视频| 蜜桃久久久久久| 午夜精品久久久久| 亚洲免费观看高清在线观看| 久久精品视频在线看| 欧美成人伊人久久综合网| 欧美男男青年gay1069videost | 欧美精品 国产精品| 91麻豆精品秘密| 99久久精品国产导航| 国产不卡高清在线观看视频| 国产乱子伦一区二区三区国色天香 | 亚洲福利视频导航| 一二三区精品福利视频| 国产精品麻豆网站| 中文成人av在线| 国产精品私房写真福利视频| 国产午夜精品美女毛片视频| 久久亚洲捆绑美女| 欧美精品一区二区在线播放| 精品国产91洋老外米糕| 日韩三级视频中文字幕| 欧美一级理论片| 精品盗摄一区二区三区| 日韩精品一区二区三区四区视频| 欧美一区二区福利在线| 精品久久久影院| 国产午夜精品一区二区| 国产精品久久久久久一区二区三区| 国产喷白浆一区二区三区| 中文字幕在线不卡视频| 亚洲欧美偷拍三级| 亚瑟在线精品视频| 男人的j进女人的j一区| 捆绑调教美女网站视频一区| 国产一区在线不卡| 成人在线一区二区三区| 91亚洲永久精品| 69堂精品视频| 久久久久久久性| 亚洲男人天堂av网| 肉丝袜脚交视频一区二区| 国内精品伊人久久久久av一坑| 国产另类ts人妖一区二区| 不卡欧美aaaaa| 欧美日韩中文字幕精品| 精品国产乱码久久久久久牛牛| 中文字幕精品一区二区三区精品| 亚洲人精品午夜| 免费黄网站欧美| 91丝袜呻吟高潮美腿白嫩在线观看| 色婷婷av一区二区三区大白胸| 欧美精品在线观看播放| 国产人成亚洲第一网站在线播放| 一区二区三区丝袜| 久久国产麻豆精品| 91在线观看地址| 久久亚区不卡日本| 一区二区三区国产| 国产一区二区三区美女| 在线免费观看一区| 久久人人爽爽爽人久久久| 一区二区激情小说| 国产白丝精品91爽爽久久| 制服.丝袜.亚洲.另类.中文| 国产精品护士白丝一区av| 久久精工是国产品牌吗| 欧美日韩中文字幕一区| 国产精品久久久久aaaa樱花 | 99re这里只有精品首页|