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

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

?? phasecong2.m

?? MATLAB Functions for Multiple View Geometry
?? M
?? 第 1 頁 / 共 2 頁
字號:
% PHASECONG2 - Computes edge and corner phase congruency in an image.
%
% This function calculates the PC_2 measure of phase congruency.  
% This function supersedes PHASECONG
%
% There are potentially many arguments, here is the full usage:
%
%   [M m or ft pc EO] = phasecong2(im, nscale, norient, minWaveLength, ...
%                         mult, sigmaOnf, dThetaOnSigma, k, cutOff, g)
%
% However, apart from the image, all parameters have defaults and the
% usage can be as simple as:
%
%    M = phasecong2(im);
% 
% Arguments:
%              Default values      Description
%
%    nscale           4    - Number of wavelet scales, try values 3-6
%    norient          6    - Number of filter orientations.
%    minWaveLength    3    - Wavelength of smallest scale filter.
%    mult             2.1  - Scaling factor between successive filters.
%    sigmaOnf         0.55 - Ratio of the standard deviation of the Gaussian 
%                            describing the log Gabor filter's transfer function 
%                            in the frequency domain to the filter center frequency.
%    dThetaOnSigma    1.2  - Ratio of angular interval between filter orientations
%                            and the standard deviation of the angular Gaussian
%                            function used to construct filters in the
%                            freq. plane.
%    k                2.0  - No of standard deviations of the noise energy beyond
%                            the mean at which we set the noise threshold point.
%                            You may want to vary this up to a value of 10 or
%                            20 for noisy images 
%    cutOff           0.5  - The fractional measure of frequency spread
%                            below which phase congruency values get penalized.
%    g                10   - Controls the sharpness of the transition in
%                            the sigmoid function used to weight phase
%                            congruency for frequency spread.                        
%
% Returned values:
%    M          - Maximum moment of phase congruency covariance.
%                 This is used as a indicator of edge strength.
%    m          - Minimum moment of phase congruency covariance.
%                 This is used as a indicator of corner strength.
%    or         - Orientation image in integer degrees 0-180,
%                 positive anticlockwise.
%                 0 corresponds to a vertical edge, 90 is horizontal.
%    ft         - *Not correctly implemented at this stage*
%                 A complex valued image giving the weighted mean 
%                 phase angle at every point in the image for each
%                 orientation. 
%    pc         - Cell array of phase congruency images (values between 0 and 1)   
%                 for each orientation
%    EO         - A 2D cell array of complex valued convolution results
%
%   EO{s,o} = convolution result for scale s and orientation o.  The real part
%   is the result of convolving with the even symmetric filter, the imaginary
%   part is the result from convolution with the odd symmetric filter.
%
%   Hence:
%       abs(EO{s,o}) returns the magnitude of the convolution over the
%       image at scale s and orientation o.
%       angle(EO{s,o}) returns the phase angles.
%   
% Notes on specifying parameters:  
%
% The parameters can be specified as a full list eg.
%  >> [M m or ft pc EO] = phasecong2(im, 5, 6, 3, 2.5, 0.55, 1.2, 2.0, 0.4, 10);
%
% or as a partial list with unspecified parameters taking on default values
%  >> [M m or ft pc EO] = phasecong2(im, 5, 6, 3);
%
% or as a partial list of parameters followed by some parameters specified via a
% keyword-value pair, remaining parameters are set to defaults, for example:
%  >> [M m or ft pc EO] = phasecong2(im, 5, 6, 3, 'cutOff', 0.3, 'k', 2.5);
% 
% The convolutions are done via the FFT.  Many of the parameters relate to the
% specification of the filters in the frequency plane.  The values do not seem
% to be very critical and the defaults are usually fine.  You may want to
% experiment with the values of 'nscales' and 'k', the noise compensation factor.
%
% Notes on filter settings to obtain even coverage of the spectrum
% dthetaOnSigma 1.2    norient 6
% sigmaOnf       .85   mult 1.3
% sigmaOnf       .75   mult 1.6     (filter bandwidth ~1 octave)
% sigmaOnf       .65   mult 2.1  
% sigmaOnf       .55   mult 3       (filter bandwidth ~2 octaves)
%
% For maximum speed the input image should have dimensions that correspond to
% powers of 2, but the code will operate on images of arbitrary size.
%
% See Also:  PHASECONG, PHASESYM, GABORCONVOLVE, PLOTGABORFILTERS

% References:
%
%     Peter Kovesi, "Image Features From Phase Congruency". Videre: A
%     Journal of Computer Vision Research. MIT Press. Volume 1, Number 3,
%     Summer 1999 http://mitpress.mit.edu/e-journals/Videre/001/v13.html
%
%     Peter Kovesi, "Phase Congruency Detects Corners and
%     Edges". Proceedings DICTA 2003, Sydney Dec 10-12

% April 1996     Original Version written 
% August 1998    Noise compensation corrected. 
% October 1998   Noise compensation corrected.   - Again!!!
% September 1999 Modified to operate on non-square images of arbitrary size. 
% May 2001       Modified to return feature type image. 
% July 2003      Altered to calculate 'corner' points. 
% October 2003   Speed improvements and refinements. 
% July 2005      Better argument handling, changed order of return values
% August 2005    Made Octave compatible
% May 2006       Bug in checkargs fixed
% Jan 2007       Bug in setting radius to 0 for odd sized images fixed.

% Copyright (c) 1996-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.

function [M, m, or, featType, PC, EO]=phasecong2(varargin)
    
% Get arguments and/or default values    
[im, nscale, norient, minWaveLength, mult, sigmaOnf, ...
                  dThetaOnSigma,k, cutOff, g] = checkargs(varargin(:));     

Octave = exist('OCTAVE_VERSION') ~= 0;  % Are we running under Octave?

epsilon         = .0001;                % Used to prevent division by zero.

thetaSigma = pi/norient/dThetaOnSigma;  % Calculate the standard deviation of the
                                        % angular Gaussian function used to
                                        % construct filters in the freq. plane.

[rows,cols] = size(im);
imagefft = fft2(im);              % Fourier transform of image

zero = zeros(rows,cols);
totalEnergy = zero;               % Total weighted phase congruency values (energy).
totalSumAn  = zero;               % Total filter response amplitude values.
orientation = zero;               % Matrix storing orientation with greatest
                                  % energy for each pixel.
EO = cell(nscale, norient);       % Array of convolution results.                                 
covx2 = zero;                     % Matrices for covariance data
covy2 = zero;
covxy = zero;

estMeanE2n = [];
ifftFilterArray = cell(1,nscale); % Array of inverse FFTs of filters

% Pre-compute some stuff to speed up filter construction

% Set up X and Y matrices with ranges normalised to +/- 0.5
% The following code adjusts things appropriately for odd and even values
% of rows and columns.
if mod(cols,2)
    xrange = [-(cols-1)/2:(cols-1)/2]/(cols-1);
else
    xrange = [-cols/2:(cols/2-1)]/cols;	
end

if mod(rows,2)
    yrange = [-(rows-1)/2:(rows-1)/2]/(rows-1);
else
    yrange = [-rows/2:(rows/2-1)]/rows;	
end

[x,y] = meshgrid(xrange, yrange);

radius = sqrt(x.^2 + y.^2);       % Matrix values contain *normalised* radius from centre.
theta = atan2(-y,x);              % Matrix values contain polar angle.
                                  % (note -ve y is used to give +ve
                                  % anti-clockwise angles)
				  
radius = ifftshift(radius);       % Quadrant shift radius and theta so that filters
theta  = ifftshift(theta);        % are constructed with 0 frequency at the corners.
radius(1,1) = 1;                  % Get rid of the 0 radius value at the 0
                                  % frequency point (now at top-left corner)
                                  % so that taking the log of the radius will 
                                  % not cause trouble.

sintheta = sin(theta);
costheta = cos(theta);
clear x; clear y; clear theta;    % save a little memory

% Filters are constructed in terms of two components.
% 1) The radial component, which controls the frequency band that the filter
%    responds to
% 2) The angular component, which controls the orientation that the filter
%    responds to.
% The two components are multiplied together to construct the overall filter.

% Construct the radial filter components...

% First construct a low-pass filter that is as large as possible, yet falls
% away to zero at the boundaries.  All log Gabor filters are multiplied by
% this to ensure no extra frequencies at the 'corners' of the FFT are
% incorporated as this seems to upset the normalisation process when
% calculating phase congrunecy.
lp = lowpassfilter([rows,cols],.45,15);   % Radius .45, 'sharpness' 15

logGabor = cell(1,nscale);

for s = 1:nscale
    wavelength = minWaveLength*mult^(s-1);
    fo = 1.0/wavelength;                  % Centre frequency of filter.
    logGabor{s} = exp((-(log(radius/fo)).^2) / (2 * log(sigmaOnf)^2));  
    logGabor{s} = logGabor{s}.*lp;        % Apply low-pass filter
    logGabor{s}(1,1) = 0;                 % Set the value at the 0 frequency point of the filter
                                          % back to zero (undo the radius fudge).
end

% Then construct the angular filter components...

spread = cell(1,norient);

for o = 1:norient
  angl = (o-1)*pi/norient;           % Filter angle.

  % For each point in the filter matrix calculate the angular distance from
  % the specified filter orientation.  To overcome the angular wrap-around
  % problem sine difference and cosine difference values are first computed
  % and then the atan2 function is used to determine angular distance.

  ds = sintheta * cos(angl) - costheta * sin(angl);    % Difference in sine.
  dc = costheta * cos(angl) + sintheta * sin(angl);    % Difference in cosine.
  dtheta = abs(atan2(ds,dc));                          % Absolute angular distance.
  spread{o} = exp((-dtheta.^2) / (2 * thetaSigma^2));  % Calculate the
                                                       % angular filter component.
end

% The main loop...

for o = 1:norient                    % For each orientation.
  fprintf('Processing orientation %d\r',o);
  if Octave fflush(1); end

  angl = (o-1)*pi/norient;           % Filter angle.
  sumE_ThisOrient   = zero;          % Initialize accumulator matrices.
  sumO_ThisOrient   = zero;       
  sumAn_ThisOrient  = zero;      
  Energy            = zero;      

  for s = 1:nscale,                  % For each scale.
    filter = logGabor{s} .* spread{o};   % Multiply radial and angular
                                         % components to get the filter. 

%    if o == 1   % accumulate filter info for noise compensation (nominally the same 
                 % for all orientations, hence it is only done once)
        ifftFilt = real(ifft2(filter))*sqrt(rows*cols);  % Note rescaling to match power
        ifftFilterArray{s} = ifftFilt;                   % record ifft2 of filter
%    end

    % Convolve image with even and odd filters returning the result in EO
    EO{s,o} = ifft2(imagefft .* filter);      

    An = abs(EO{s,o});                         % Amplitude of even & odd filter response.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美一区二区精品忘忧草| 91在线云播放| 精品毛片乱码1区2区3区| 国产综合久久久久久鬼色 | 欧美亚洲禁片免费| 亚洲国产wwwccc36天堂| 51午夜精品国产| 国模无码大尺度一区二区三区| 欧美激情中文字幕一区二区| 白白色亚洲国产精品| 亚洲精品视频在线看| 51精品国自产在线| 国产成人在线电影| 亚洲综合激情网| 日韩免费视频一区| 成人动漫在线一区| 午夜一区二区三区视频| 精品久久久久99| 99久久久久免费精品国产| 亚洲午夜国产一区99re久久| 日韩视频国产视频| www.66久久| 日韩激情av在线| 国产日韩欧美激情| 欧美日韩一区高清| 国产精品一区二区视频| 一区二区三区产品免费精品久久75| 91精选在线观看| 成人短视频下载| 日韩av在线播放中文字幕| 欧美国产日产图区| 91精品综合久久久久久| 91香蕉国产在线观看软件| 激情深爱一区二区| 亚洲国产美女搞黄色| 久久久久久毛片| 欧美精品久久99久久在免费线| 国产成人精品一区二区三区网站观看| 亚洲在线成人精品| 日本视频中文字幕一区二区三区| 欧美极品aⅴ影院| 在线91免费看| 色综合久久中文字幕| 精品午夜久久福利影院| 无吗不卡中文字幕| 亚洲精品一卡二卡| 欧美极品美女视频| 精品久久久久一区二区国产| 欧美日韩国产精选| 91在线观看视频| 懂色av中文字幕一区二区三区| 日韩黄色免费电影| 亚洲午夜三级在线| 中文字幕一区二区不卡| 久久久精品天堂| 欧美成人性福生活免费看| 欧美日本一区二区三区| 在线视频国产一区| 不卡一卡二卡三乱码免费网站| 狠狠狠色丁香婷婷综合激情| 免费观看一级欧美片| 亚洲二区视频在线| 亚洲天堂a在线| 国产精品成人免费在线| 亚洲国产成人自拍| 国产精品毛片高清在线完整版| 国产亚洲欧美一区在线观看| 精品成人免费观看| 日韩欧美中文字幕公布| 日韩一区二区免费电影| 777奇米四色成人影色区| 在线电影欧美成精品| 欧美猛男男办公室激情| 欧美图区在线视频| 欧美日韩一区二区三区视频 | 亚洲黄色尤物视频| 综合欧美亚洲日本| 亚洲综合视频网| 亚洲精选视频免费看| 国产精品传媒视频| 亚洲精品视频在线观看免费| 亚洲欧洲日韩在线| 一区二区三区久久久| 亚洲午夜成aⅴ人片| 五月天激情综合网| 蜜桃视频在线观看一区二区| 麻豆精品视频在线观看| 久久99精品国产91久久来源| 国产精品一区专区| 不卡在线视频中文字幕| 在线观看网站黄不卡| 欧美丝袜自拍制服另类| 这里只有精品免费| 欧美电影免费观看高清完整版在线 | 中文字幕日韩av资源站| 亚洲欧美日韩国产中文在线| 亚洲成av人**亚洲成av**| 天天色综合天天| 精品一区二区免费在线观看| 成人h动漫精品| 欧美中文字幕一区二区三区| 3d成人动漫网站| 欧美精品一区二区三| 亚洲欧美怡红院| 首页欧美精品中文字幕| 国产乱人伦精品一区二区在线观看 | 欧美羞羞免费网站| 日韩欧美电影一区| 国产精品欧美久久久久无广告| 一区二区在线免费观看| 美日韩一级片在线观看| 99久久精品国产毛片| 欧美一区二区在线免费观看| 国产欧美日韩在线| 亚洲成人精品在线观看| 国产精品自拍一区| 精品视频一区二区三区免费| 久久尤物电影视频在线观看| 亚洲在线一区二区三区| 国产夫妻精品视频| 欧美日韩精品欧美日韩精品| 国产视频一区二区在线观看| 亚洲成人免费在线| 懂色av中文字幕一区二区三区| 4438x成人网最大色成网站| 国产精品毛片久久久久久| 麻豆专区一区二区三区四区五区| a美女胸又www黄视频久久| 日韩一级免费观看| 一区二区欧美国产| 成人精品免费视频| 日韩一二在线观看| 亚洲激情自拍偷拍| 国产suv精品一区二区三区| 欧美美女黄视频| 亚洲三级免费观看| 国产大陆亚洲精品国产| 91精品国产91久久综合桃花| 亚洲免费电影在线| 丁香五精品蜜臀久久久久99网站 | 久久免费偷拍视频| 丝袜美腿亚洲综合| 一本大道久久精品懂色aⅴ| 国产三级精品视频| 经典三级在线一区| 欧美一卡2卡三卡4卡5免费| 一区二区三区四区av| 99re这里都是精品| 国产欧美一区二区精品婷婷 | 日韩写真欧美这视频| 一区二区三区电影在线播| www.日本不卡| 中文字幕av一区二区三区高| 极品少妇xxxx精品少妇偷拍| 日韩一区二区三区视频在线| 午夜免费欧美电影| 欧美日韩精品系列| 亚洲成av人片在线观看| 欧美日韩在线一区二区| 一区二区激情视频| 欧美这里有精品| 亚洲一二三专区| 欧洲精品一区二区三区在线观看| 自拍偷拍国产亚洲| 99久久婷婷国产| 亚洲欧美日韩人成在线播放| 91女厕偷拍女厕偷拍高清| 亚洲精品视频自拍| 在线观看三级视频欧美| 亚洲韩国一区二区三区| 欧美性高清videossexo| 婷婷综合在线观看| 日韩一区二区在线看| 黄色资源网久久资源365| 久久久99精品久久| 北条麻妃一区二区三区| 亚洲三级理论片| 欧美日韩国产电影| 久久69国产一区二区蜜臀| 久久综合成人精品亚洲另类欧美 | 精品国产伦一区二区三区观看体验| 看片网站欧美日韩| 久久无码av三级| 99re视频精品| 爽好久久久欧美精品| 精品日韩欧美在线| 盗摄精品av一区二区三区| 国产精品乱人伦| 欧洲在线/亚洲| 日韩av成人高清| 久久久精品综合| 色婷婷亚洲精品| 蜜臀av一级做a爰片久久| 国产亚洲综合在线| 91免费视频网| 老司机精品视频在线| 国产亚洲va综合人人澡精品| 色婷婷久久久亚洲一区二区三区| 丝袜美腿亚洲综合| 中文字幕一区二区三区在线观看|