• 大小: 957KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-20
  • 语言: 其他
  • 标签: Gabor小波  Gabor  

资源简介

log Gabor小波图像纹理特征分析我小改過

资源截图

代码片段和文件信息

% DISPFEAT - Displays feature types as detected by PHASECONG.
%
% This function provides a visualisation of the feature types as detected
% by PHASECONG.
%
% Usage:  im = dispfeat(ft edgeim ‘l‘)
%
% Arguments:  ft     - A complex valued image giving the weighted mean 
%                      phase angle at every point in the image for the 
%                      orientation having maximum energy.
%             edgeim - A binary edge image (typically obtained via
%                      non-maxima suppression and thresholding).
%                      This is used as a ‘mask‘ to specify which bits of
%                      the phase data should be displayed.
%                      Alternatively you can supply a phase congruency
%                      image in which case it is used to control the
%                      saturation of the colour coding
%             l      - An optional parameter indicating that a line plot
%                      encoded by line style should also be produced. If
%                      this is the case then ‘edgeim‘ really should be an
%                      edge image.

% Returns:    im     - An edge image with edges colour coded according to
%                      feature type. 
%
% Two or three plots are generated:
% 1. An edge image with edges colour coded according to feature type.
% 2. A histogram of the frequencies at which the different feature types
%    occur.
% 3. Optionally a black/white edge image with edges coded by different line
%    styles.  Not as pretty as the first plot but it is something that can
%    be put in a paper and reproduced in black and white.

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

% June 2001

function im = dispfeat(ft edgeim)

% Construct the colour coded image

    maxhue = 0.7;             % Hues vary from 0 (red) indicating line feature to 
              % 0.7 (blue) indicating a step feature.
    nhues = 50;     
    phaseang = angle(ft);     % Extract phase angles.
    
    % Map -ve phase angles to 0-pi
    negphase = phaseang<0;
    phaseang = negphase.*(-phaseang) + ~negphase.*phaseang; 
    
    % Then map angles > pi/2 to 0-pi/2
    x = phaseang>(pi/2);                      
    phaseang = x.*(pi-phaseang) + ~x.*phaseang;
    
    % Now set up a HSV image and convert to RGB
    hsvim(::1) = (pi/2-phaseang)/(pi/2)*maxhue;
    hsvim(::2) = edgeim;           % saturation
    hsvim(::3) = 1;
    
    hsvim(1:3) = 0;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\1.1.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\1.2.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\1.3.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\1.4.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\1.5.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\2.1.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\2.2.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\2.3.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\2.4.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\2.5.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\3.1.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\3.2.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\3.3.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\3.4.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\3.5.bmp

     文件     228582  2010-12-11 19:29  phasecongruency-byMySelf\321.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\4.1.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\4.2.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\4.3.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\4.4.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\4.5.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\5.1.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\5.2.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\5.3.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\5.4.bmp

     文件      77254  2010-12-11 20:07  phasecongruency-byMySelf\5.5.bmp

     文件       5648  2008-11-22 20:54  phasecongruency-byMySelf\dispfeat.m

     文件      12668  2008-11-22 20:54  phasecongruency-byMySelf\edgelink.m

     文件       7461  2008-11-22 20:55  phasecongruency-byMySelf\gaborconvolve.m

     文件       2446  2008-11-22 22:01  phasecongruency-byMySelf\lowpassfilter.m

............此处省略12个文件信息

评论

共有 条评论