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

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

?? imtrans.m

?? MATLAB Functions for Multiple View Geometry
?? M
字號:
% IMTRANS - Homogeneous transformation of an image.%% Applies a geometric transform to an image%%  [newim, newT] = imTrans(im, T, region, sze);%%  Arguments: %        im     - The image to be transformed.%        T      - The 3x3 homogeneous transformation matrix.%        region - An optional 4 element vector specifying %                 [minrow maxrow mincol maxcol] to transform.%                 This defaults to the whole image if you omit it%                 or specify it as an empty array [].%        sze    - An optional desired size of the transformed image%                 (this is the maximum No of rows or columns).%                 This defaults to the maximum of the rows and columns%                 of the original image.%%  Returns:%        newim  - The transformed image.%        newT   - The transformation matrix that relates transformed image%                 coordinates to the reference coordinates for use in a%                 function such as DIGIPLANE.%%  The region argument is used when one is inverting a perspective%  transformation of a plane and the vanishing line of the plane lies within%  the image.  Attempts to transform any part of the vanishing line will%  position you at infinity.  Accordingly one should specify a region that%  excludes any part of the vanishing line.%%  The sze parameter is optionally used to control the size of the%  output image.  When inverting a perpective or affine transformation%  the scale parameter is unknown/arbitrary, and without specifying%  it explicitly the transformed image can end up being very small %  or very large.%%  Problems: If your transformed image ends up as being two small bits of%  image separated by a large black area then the chances are that you have%  included the vanishing line of the plane within the specified region to%  transform.  If your image degenerates to a very thin triangular shape%  part of your region is probably very close to the vanishing line of the%  plane.% Copyright (c) 2000-2005 Peter Kovesi% School of Computer Science & Software Engineering% The University of Western Australia% http://www.csse.uwa.edu.au/% % Permission is hereby granted, free of charge, to any person obtaining a copy% of this software and associated documentation files (the "Software"), to deal% in the Software without restriction, subject to the following conditions:% % The above copyright notice and this permission notice shall be included in % all copies or substantial portions of the Software.%% The Software is provided "as is", without warranty of any kind.% April 2000 - original version.% July 2001  - transformation of region boundaries corrected.function [newim, newT] = imTrans(im, T, region, sze);if isa(im,'uint8')    im = double(im);  % Make sure image is double     end% Set up default region and transformed image size valuesif ndims(im) == 3    [rows cols depth] = size(im);else    [rows cols] = size(im);    depth = 1;endif nargin == 2    region = [1 rows 1 cols];    sze = max([rows cols]);elseif nargin == 3        sze = max([rows cols]);endif isempty(region)    region = [1 rows 1 cols];end	threeD = (ndims(im)==3);  % A colour imageif threeD    % Transform red, green, blue components separately    im = im/255;      [r, newT] = transformImage(im(:,:,1), T, region, sze);    [g, newT] = transformImage(im(:,:,2), T, region, sze);    [b, newT] = transformImage(im(:,:,3), T, region, sze);        newim = repmat(uint8(0),[size(r),3]);    newim(:,:,1) = uint8(round(r*255));    newim(:,:,2) = uint8(round(g*255));    newim(:,:,3) = uint8(round(b*255));    else                % Assume the image is greyscale    [newim, newT] = transformImage(im, T, region, sze);end%------------------------------------------------------------% The internal function that does all the workfunction [newim, newT] = transformImage(im, T, region, sze);[rows, cols] = size(im);if 0% Determine default parameters if neededif nargin == 2  region = [1 rows 1 cols];  sze = max(rows,cols);elseif nargin == 3  sze = max(rows,cols);elseif nargin ~= 4  error('Incorrect arguments to imtrans');endend% Cut the image down to the specified region%if nargin == 3 | nargin == 4    im = im(region(1):region(2), region(3):region(4));    [rows, cols] = size(im);%end% Find where corners go - this sets the bounds on the final imageB = bounds(T,region);nrows = B(2) - B(1);ncols = B(4) - B(3);% Determine any rescaling neededs = sze/max(nrows,ncols);S = [s 0 0        % Scaling matrix     0 s 0     0 0 1];T = S*T;Tinv = inv(T);% Recalculate the bounds of the new (scaled) image to be generatedB = bounds(T,region);nrows = B(2) - B(1);ncols = B(4) - B(3);% Construct a transformation matrix that relates transformed image% coordinates to the reference coordinates for use in a function such as% DIGIPLANE.  This transformation is just an inverse of a scaling and% origin shift. newT=inv(S - [0 0 B(3); 0 0 B(1); 0 0 0]);% Set things up for the image transformation.newim = zeros(nrows,ncols);[xi,yi] = meshgrid(1:ncols,1:nrows);    % All possible xy coords in the image.% Transform these xy coords to determine where to interpolate values% from. Note we have to work relative to x=B(3) and y=B(1).sxy = homoTrans(Tinv, [xi(:)'+B(3) ; yi(:)'+B(1) ; ones(1,ncols*nrows)]);xi = reshape(sxy(1,:),nrows,ncols);yi = reshape(sxy(2,:),nrows,ncols);[x,y] = meshgrid(1:cols,1:rows);x = x+region(3)-1; % Offset x and y relative to region origin.y = y+region(1)-1; newim = interp2(x,y,double(im),xi,yi); % Interpolate values from source image.%% Plot bounding region%P = [region(3) region(4) region(4) region(3)%     region(1) region(1) region(2) region(2)%      1    1    1    1   ];%B = round(homoTrans(T,P));%Bx = B(1,:);%By = B(2,:);%Bx = Bx-min(Bx); Bx(5)=Bx(1);%By = By-min(By); By(5)=By(1);%show(newim,2), axis xy%line(Bx,By,'Color',[1 0 0],'LineWidth',2);%% end plot bounding region%---------------------------------------------------------------------%% Internal function to find where the corners of a region, R% defined by [minrow maxrow mincol maxcol] are transformed to % by transform T and returns the bounds, B in the form % [minrow maxrow mincol maxcol]function B = bounds(T, R)P = [R(3) R(4) R(4) R(3)      % homogeneous coords of region corners     R(1) R(1) R(2) R(2)      1    1    1    1   ];     PT = round(homoTrans(T,P)); B = [min(PT(2,:)) max(PT(2,:)) min(PT(1,:)) max(PT(1,:))];%      minrow          maxrow      mincol       maxcol  

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91福利视频久久久久| 一区二区三区四区在线| 久久久精品日韩欧美| 亚洲欧洲国产日本综合| 日韩精品免费视频人成| 成人激情图片网| 欧美一区二区在线观看| 国产精品福利一区二区| 久久精品国产亚洲aⅴ| 欧美主播一区二区三区美女| 国产三级三级三级精品8ⅰ区| 国产日韩欧美不卡在线| 国产a精品视频| 日韩一级高清毛片| 亚洲第一成人在线| 99久久国产免费看| 中文字幕欧美日韩一区| 久久成人综合网| 国产日韩成人精品| 91网站在线观看视频| 中文字幕国产一区| 在线观看日韩一区| 日本免费在线视频不卡一不卡二| 欧美在线观看视频一区二区三区| 午夜精品福利一区二区蜜股av| 色噜噜狠狠色综合欧洲selulu| 天堂成人免费av电影一区| 日韩免费电影一区| 日韩经典中文字幕一区| 久久综合色综合88| 国产在线麻豆精品观看| 日韩精品一区二区三区老鸭窝| 成人一级视频在线观看| 久久久美女艺术照精彩视频福利播放| 国产a久久麻豆| 亚洲高清在线视频| 欧美日韩高清不卡| 日韩高清在线不卡| 中文字幕av一区二区三区免费看| 在线视频观看一区| 国产精选一区二区三区| 久久你懂得1024| 91高清在线观看| 国产成人免费在线观看| 久久久久九九视频| 欧美日韩一卡二卡| 日韩成人精品视频| 国产精品久久久爽爽爽麻豆色哟哟 | 精品午夜久久福利影院| 日韩免费高清视频| 欧美性色综合网| 日韩电影一二三区| 国产精品久久久久久久久免费丝袜| 欧美色图在线观看| 懂色av一区二区三区蜜臀| 天堂资源在线中文精品| 一区在线观看免费| 国产偷国产偷精品高清尤物| 51久久夜色精品国产麻豆| 日韩av午夜在线观看| 成人欧美一区二区三区| 91美女片黄在线观看| 国产精品一区二区果冻传媒| 蜜桃一区二区三区在线观看| 欧美—级在线免费片| 91精品国产入口| 欧美性猛交xxxx乱大交退制版| 99视频精品全部免费在线| 亚洲一区视频在线观看视频| 91精品国产一区二区三区香蕉| 色婷婷精品大视频在线蜜桃视频| 日韩精品一级二级| 一个色妞综合视频在线观看| 国产精品伦一区| 欧美一区二区三区免费观看视频| 欧美性淫爽ww久久久久无| www.视频一区| 成人h精品动漫一区二区三区| 国产乱码一区二区三区| 精品写真视频在线观看 | 美国欧美日韩国产在线播放| 丝袜美腿亚洲色图| 午夜不卡av免费| 蜜臀av性久久久久蜜臀aⅴ四虎| 日韩高清一级片| 日韩高清不卡一区二区| 日本欧美一区二区在线观看| 日韩国产欧美三级| 蜜臀精品久久久久久蜜臀| 六月丁香综合在线视频| 卡一卡二国产精品| 国产一区二区三区在线观看免费视频| 夜夜精品视频一区二区| 一区二区三区不卡在线观看 | 欧美日韩一级二级三级| 欧美日韩精品欧美日韩精品一| 欧美性一二三区| 日韩欧美久久一区| 久久久久久夜精品精品免费| 中文字幕av一区二区三区免费看 | 国产激情一区二区三区四区| 国产大陆a不卡| 不卡的av电影| 欧美吞精做爰啪啪高潮| 日韩限制级电影在线观看| 2020国产成人综合网| 国产精品福利一区二区三区| 亚洲一区二区三区四区不卡| 久久精工是国产品牌吗| 国内精品第一页| 色综合一区二区三区| 国产a精品视频| 色av综合在线| 精品精品国产高清a毛片牛牛| 欧美精品丝袜中出| 欧美日本免费一区二区三区| 日韩欧美在线123| 中文字幕欧美日韩一区| 午夜影院久久久| 丁香一区二区三区| 欧美日韩精品一区视频| 精品国产91乱码一区二区三区| 中文字幕日韩av资源站| 视频在线观看91| 91小视频在线| 精品欧美一区二区三区精品久久| 精品国产乱码91久久久久久网站| 中文字幕av一区二区三区免费看| 天堂一区二区在线免费观看| 成人一区二区三区视频在线观看| 欧美日韩精品免费观看视频 | 色域天天综合网| 精品福利一二区| 一区二区三区蜜桃| 国产一区久久久| 欧美日韩黄色一区二区| 中文av一区二区| 美脚の诱脚舐め脚责91 | 久久久久99精品国产片| 亚洲成va人在线观看| heyzo一本久久综合| 日韩欧美亚洲国产另类| 亚洲精品日韩综合观看成人91| 欧美激情一区二区三区四区 | 欧美大胆一级视频| 伊人色综合久久天天人手人婷| 国产成人日日夜夜| 欧美一区午夜精品| 一区二区国产盗摄色噜噜| 国产成人精品免费网站| 欧美va天堂va视频va在线| 亚洲一区二区黄色| gogo大胆日本视频一区| 国产欧美一区二区精品性| 免费看精品久久片| 六月丁香综合在线视频| 欧美视频精品在线观看| 一区二区三区在线免费| 丁香六月久久综合狠狠色| 337p日本欧洲亚洲大胆色噜噜| 青娱乐精品视频在线| 欧美高清dvd| 午夜精品视频一区| 欧美无砖砖区免费| 一区二区视频在线| 99久久99久久免费精品蜜臀| 国产精品美女久久久久久2018| 国产一区二区三区免费观看| 久久网站最新地址| 久久国产尿小便嘘嘘尿| 欧美不卡视频一区| 日本午夜精品一区二区三区电影| 欧美一区二区免费观在线| 亚洲午夜久久久久久久久电影网 | 91在线视频免费观看| 国产精品沙发午睡系列990531| 久久国产精品色| 精品国产乱码久久久久久影片| 久久成人羞羞网站| 精品日产卡一卡二卡麻豆| 美女尤物国产一区| 精品国产髙清在线看国产毛片| 韩国一区二区视频| 久久亚洲二区三区| 国产91精品露脸国语对白| 国产精品伦一区| 91国产免费观看| 日韩精品1区2区3区| 日韩无一区二区| 国产一区二区三区在线看麻豆| 国产精品亲子伦对白| 99热国产精品| 亚洲影院免费观看| 欧美性一级生活| 麻豆国产精品视频| 日本一区二区三区四区 | 欧美在线观看一二区| 欧美aaa在线| 国产欧美一区在线| 欧美最猛黑人xxxxx猛交|