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

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

?? motionestsestss.m

?? The attached file for motion estimation algorithms using matlab
?? 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一区二区三区免费野_久草精品视频
欧美一区二区国产| 欧洲另类一二三四区| 欧美激情一区三区| 色婷婷狠狠综合| 色婷婷综合激情| 国产99久久久国产精品 | 国产一区999| 韩国视频一区二区| 高清免费成人av| 国产福利精品一区| 成人午夜短视频| av在线不卡电影| 日本韩国欧美在线| 在线不卡中文字幕播放| 日本一区二区成人在线| 国产视频不卡一区| 777欧美精品| 在线欧美日韩精品| 欧美色中文字幕| 欧美成人精品3d动漫h| 国产精品―色哟哟| 久久这里只有精品首页| 中文字幕欧美国产| 性做久久久久久久免费看| 国产白丝网站精品污在线入口| 日本高清不卡视频| 日韩精品资源二区在线| 国产精品拍天天在线| 国产午夜亚洲精品午夜鲁丝片 | 成人免费看黄yyy456| 成人aaaa免费全部观看| 在线看国产一区二区| 3d动漫精品啪啪一区二区竹菊| 精品久久国产97色综合| 国产精品夫妻自拍| 五月天激情综合| 高清不卡一二三区| 欧美剧情电影在线观看完整版免费励志电影 | 成人免费福利片| 欧美丰满一区二区免费视频| 2020国产精品自拍| 精品卡一卡二卡三卡四在线| 免费观看一级欧美片| 精品一区二区影视| 激情六月婷婷综合| 欧美在线观看视频一区二区| 精品91自产拍在线观看一区| 亚洲欧美日韩国产另类专区| 激情偷乱视频一区二区三区| 色久优优欧美色久优优| 久久久亚洲精华液精华液精华液| 亚洲免费观看高清完整版在线观看熊| 日韩av一区二| 日本丶国产丶欧美色综合| wwwwww.欧美系列| 日本伊人色综合网| 欧洲国产伦久久久久久久| 久久精品夜色噜噜亚洲aⅴ| 亚洲 欧美综合在线网络| av福利精品导航| 久久久久久久久久久电影| 奇米影视一区二区三区小说| 91官网在线观看| 亚洲天堂网中文字| 国产91综合网| 中文字幕第一区| 国产成人啪免费观看软件| 欧美本精品男人aⅴ天堂| 欧美大尺度电影在线| 国产精品综合视频| 色丁香久综合在线久综合在线观看| 91极品美女在线| 国产91露脸合集magnet| 亚洲一区二区成人在线观看| 国产精品久久久久久亚洲伦| 日韩—二三区免费观看av| 国产福利视频一区二区三区| 成人免费在线观看入口| 精品日韩成人av| 精品欧美久久久| 欧美日韩国产免费一区二区| 成人av电影免费在线播放| 亚洲mv大片欧洲mv大片精品| 成人app软件下载大全免费| 国产精品久久久久一区二区三区共| 精品亚洲欧美一区| 精品国产第一区二区三区观看体验| 婷婷综合在线观看| 日韩视频一区二区三区| 蜜桃精品在线观看| 亚欧色一区w666天堂| 亚洲欧美偷拍卡通变态| 亚洲制服丝袜av| 成人爽a毛片一区二区免费| 亚洲欧洲韩国日本视频| 91蝌蚪porny九色| 亚洲一区视频在线观看视频| 欧美色爱综合网| 毛片av一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 国产一区二区三区四| 国产精品白丝在线| 欧美三级在线播放| 国产一区在线精品| 亚洲日本护士毛茸茸| 在线电影一区二区三区| 国产福利一区二区三区视频在线| 亚洲欧洲无码一区二区三区| 欧美色图天堂网| 国产91精品一区二区麻豆网站| 亚洲日本欧美天堂| 久久影院午夜论| 天天色图综合网| 精品一区二区免费| 精品盗摄一区二区三区| 成人激情黄色小说| 免费在线观看日韩欧美| 亚洲欧美一区二区视频| 欧美电影一区二区| 91免费观看在线| 国产精品一二三区| 亚洲高清免费在线| 中文字幕中文字幕一区二区| 日韩午夜小视频| 在线亚洲高清视频| 波多野洁衣一区| 国内精品国产成人国产三级粉色 | 欧美亚洲国产bt| 粉嫩av一区二区三区在线播放| 亚洲婷婷综合久久一本伊一区| 久久久国际精品| 国产成人午夜高潮毛片| 欧美三级中文字幕在线观看| 免费在线看成人av| 久久精品亚洲精品国产欧美kt∨ | 欧洲精品在线观看| 国产人伦精品一区二区| 国产91精品露脸国语对白| 久久这里只有精品首页| 国产成人精品免费看| 亚洲欧洲美洲综合色网| 91福利在线观看| 日日夜夜精品视频天天综合网| 欧美α欧美αv大片| 91免费版在线| 亚洲精选免费视频| 亚洲欧美综合色| 欧美一区二区三区免费观看视频| 色偷偷88欧美精品久久久| www.激情成人| va亚洲va日韩不卡在线观看| 高清av一区二区| 懂色av一区二区三区免费看| 国产精品一区二区三区四区| 国产精品亚洲专一区二区三区| 国产一区二区在线观看免费| 男女男精品视频| 奇米影视在线99精品| 黄色日韩网站视频| 国产一区二区三区久久久| 国产高清不卡一区| 91麻豆免费看片| 欧美婷婷六月丁香综合色| 欧美日韩小视频| 日韩你懂的电影在线观看| 精品国产乱码久久久久久免费| 国产欧美日本一区视频| 亚洲免费av在线| 香蕉av福利精品导航| 日韩高清在线一区| 国产成人精品午夜视频免费| 91美女福利视频| 91精品久久久久久久99蜜桃 | 伊人开心综合网| 亚洲成人资源网| 精品在线亚洲视频| 成人高清av在线| 欧美日韩亚洲综合在线| 欧美mv和日韩mv国产网站| 国产三级一区二区| 亚洲美女屁股眼交| 日本视频一区二区| 国产aⅴ综合色| 欧美日韩在线播放三区| 久久这里只精品最新地址| 国产精品人人做人人爽人人添| 亚洲午夜久久久久中文字幕久| 精品一区二区在线免费观看| 色婷婷久久久综合中文字幕| 日韩欧美中文字幕精品| 欧美成人一区二区| 国产成人精品三级麻豆| 成人综合在线观看| a美女胸又www黄视频久久| 制服.丝袜.亚洲.中文.综合| 中文一区二区完整视频在线观看| 亚洲午夜在线观看视频在线| 国产精品不卡在线| 国产成人综合亚洲91猫咪| 欧美性极品少妇|