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

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

?? phantom.m

?? 有關matlab的電子書籍有一定的幫助希望有用
?? M
字號:
function [p,ellipse]=phantom(varargin)
%PHANTOM Generate a head phantom image.
%   P = PHANTOM(DEF,N) generates an image of a head phantom that can   
%   be used to test the numerical accuracy of RADON and IRADON or other  
%   2-D reconstruction algorithms.  P is a grayscale intensity image that
%   consists of one large ellipse (representing the brain) containing
%   several smaller ellipses (representing features in the brain).
%
%   DEF is a string that specifies the type of head phantom to generate.
%   Valid values are: 
%         
%      'Shepp-Logan'            A test image used widely by researchers in
%                               tomography
%      'Modified Shepp-Logan'   (default) A variant of the Shepp-Logan phantom
%                               in which the contrast is improved for better  
%                               visual perception.
%
%   N is a scalar that specifies the number of rows and columns in P.
%   If you omit the argument, N defaults to 256.
% 
%   P = PHANTOM(E,N) generates a user-defined phantom, where each row
%   of the matrix E specifies an ellipse in the image.  E has six columns,
%   with each column containing a different parameter for the ellipses:
%   
%     Column 1:  A    the additive intensity value of the ellipse
%     Column 2:  a    the length of the horizontal semi-axis of the ellipse 
%     Column 3:  b    the length of the vertical semi-axis of the ellipse
%     Column 4:  x0   the x-coordinate of the center of the ellipse
%     Column 5:  y0   the y-coordinate of the center of the ellipse
%     Column 6:  phi  the angle (in degrees) between the horizontal semi-axis 
%                     of the ellipse and the x-axis of the image        
%
%   For purposes of generating the phantom, the domains for the x- and 
%   y-axes span [-1,1].  Columns 2 through 5 must be specified in terms
%   of this range.
%
%   [P,E] = PHANTOM(...) returns the matrix E used to generate the phantom.
%
%   Class Support
%   -------------
%   All inputs must be of class double.  All outputs are of class double.
%
%   Remarks
%   -------
%   For any given pixel in the output image, the pixel's value is equal to the
%   sum of the additive intensity values of all ellipses that the pixel is a 
%   part of.  If a pixel is not part of any ellipse, its value is 0.  
%
%   The additive intensity value A for an ellipse can be positive or negative;
%   if it is negative, the ellipse will be darker than the surrounding pixels.
%   Note that, depending on the values of A, some pixels may have values outside
%   the range [0,1].
%    
%   See also RADON, IRADON.

%   Chris Griffin 4-22-97
%   Copyright 1993-1998 The MathWorks, Inc.  All Rights Reserved.
%   $Revision: 1.5 $  $Date: 1997/11/24 16:18:24 $

%   References: 
%      A. K. Jain, "Fundamentals of Digital Image Processing", p. 439.
%      P. A. Toft, "The Radon Transform, Theory and Implementation" (unpublished
%      dissertation), p. 199.

[ellipse,n] = parse_inputs(varargin{:});

p = zeros(n);

xax =  ( (0:n-1)-(n-1)/2 ) / ((n-1)/2); yax=xax; % x and y axes
xg = repmat(xax, n, 1);   % x coordinates, the y coordinates are rot90(xg)

for k = 1:size(ellipse,1)    
   asq = ellipse(k,2)^2;       % a^2
   bsq = ellipse(k,3)^2;       % b^2
   phi = ellipse(k,6)*pi/180;  % rotation angle in radians
   x0 = ellipse(k,4);          % x offset
   y0 = ellipse(k,5);          % y offset
   A = ellipse(k,1);           % Amplitude change for this ellipse
   x=xg-x0; y=rot90(xg)-y0;    % Center the ellipse
   cosp = cos(phi); sinp = sin(phi);
   idx=find(((x.*cosp + y.*sinp).^2)./asq + ((y.*cosp - x.*sinp).^2)./bsq <= 1); 
   p(idx) = p(idx) + A;
end
   
   
function [e,n] = parse_inputs(varargin)
%  e is the m-by-6 array which defines ellipses
%  n is the size of the phantom brain image

n=256;     % The default size
e = [];
defaults = {'shepp-logan', 'modified shepp-logan'};

for i=1:nargin
   if ischar(varargin{i})         % Look for a default phantom
      def = lower(varargin{i});
      idx = strmatch(def, defaults);
      if isempty(idx)
         error('Unknown default phantom selected.');
      end
      switch defaults{idx}
      case 'shepp-logan'
         e = shepp_logan;
      case 'modified shepp-logan'
         e = modified_shepp_logan;
      end
   elseif prod(size(varargin{i}))==1 
      n = varargin{i};            % a scalar is the image size
   elseif ndims(varargin{i})==2 & size(varargin{i},2)==6 
      e = varargin{i};            % user specified phantom
   else
      error('Invalid input arguments.');
   end
end

if isempty(e)                    % ellipse is not yet defined
   e = modified_shepp_logan;
end

   

      
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%  Default head phantoms:   
%

function shep=shepp_logan
%
%  This is the default head phantom, taken from AK Jain, 439.
%
%         A    a     b    x0    y0    phi
%        ---------------------------------
shep = [  1   .69   .92    0     0     0   
        -.98 .6624 .8740   0  -.0184   0
        -.02 .1100 .3100  .22    0    -18
        -.02 .1600 .4100 -.22    0     18
         .01 .2100 .2500   0    .35    0
         .01 .0460 .0460   0    .1     0
         .01 .0460 .0460   0   -.1     0
         .01 .0460 .0230 -.08  -.605   0 
         .01 .0230 .0230   0   -.606   0
         .01 .0230 .0460  .06  -.605   0   ];
      
      
function toft=modified_shepp_logan
%
%   This head phantom is the same as the Shepp-Logan except 
%   the intensities are changed to yield higher contrast in
%   the image.  Taken from Toft, 199-200.
%      
%         A    a     b    x0    y0    phi
%        ---------------------------------
toft = [  1   .69   .92    0     0     0   
        -.8  .6624 .8740   0  -.0184   0
        -.2  .1100 .3100  .22    0    -18
        -.2  .1600 .4100 -.22    0     18
         .1  .2100 .2500   0    .35    0
         .1  .0460 .0460   0    .1     0
         .1  .0460 .0460   0   -.1     0
         .1  .0460 .0230 -.08  -.605   0 
         .1  .0230 .0230   0   -.606   0
         .1  .0230 .0460  .06  -.605   0   ];
       
       
       
            
        
             

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费国产亚洲视频| 7777精品伊人久久久大香线蕉完整版 | 日韩欧美中文字幕一区| 欧美性色黄大片| 91官网在线观看| 日本乱人伦aⅴ精品| 日本乱码高清不卡字幕| 91福利在线播放| 在线亚洲一区二区| 在线国产电影不卡| 欧美性生活一区| 91精品国产综合久久久久久久| 欧美日韩国产美| 在线不卡一区二区| 日韩欧美专区在线| 国产午夜亚洲精品午夜鲁丝片| 久久精品一区二区三区av| 欧美国产日本韩| 亚洲视频一区在线| 一区二区激情视频| 午夜精品福利在线| 国模冰冰炮一区二区| 国产成人免费网站| 99久久精品久久久久久清纯| 欧美综合欧美视频| 欧美一区二区三区视频在线| 精品国产成人在线影院| 欧美激情一区二区三区蜜桃视频| 国产精品成人在线观看| 亚洲黄色小说网站| 日本不卡中文字幕| 国产精品一区二区久久精品爱涩| av一区二区不卡| 欧美精品丝袜中出| 久久色.com| 亚洲欧美一区二区三区久本道91| 亚洲成av人片在www色猫咪| 美女任你摸久久| 成人免费av在线| 欧美怡红院视频| 日韩欧美成人一区| 国产精品美女久久久久久久久久久 | 日韩va欧美va亚洲va久久| 韩国中文字幕2020精品| 色综合久久88色综合天天6| 这里只有精品视频在线观看| 久久久99久久| 午夜亚洲福利老司机| 国产麻豆91精品| 在线观看三级视频欧美| 久久先锋影音av| 亚洲一区二区三区四区的| 激情av综合网| 欧美午夜电影网| 国产午夜精品一区二区三区四区| 一区二区三区免费看视频| 激情五月婷婷综合网| 日本韩国精品在线| 久久九九全国免费| 日韩激情一二三区| a级精品国产片在线观看| 7777精品伊人久久久大香线蕉经典版下载 | 欧美性感一类影片在线播放| 久久众筹精品私拍模特| 亚洲高清久久久| 高清免费成人av| 91精品国产91久久久久久最新毛片| 中文字幕av一区 二区| 奇米影视一区二区三区| 欧美在线一区二区三区| 欧美激情一区三区| 精品无人码麻豆乱码1区2区 | 欧美日韩中文字幕一区二区| 精品三级av在线| 亚洲一二三级电影| 91在线观看一区二区| 欧美精品一区二区三区在线 | 久久99精品久久久久久| 欧美日韩一区二区三区免费看| 中文字幕av一区二区三区| 黄色精品一二区| 91麻豆精品国产91久久久久| 一区二区三区在线观看视频| 风间由美性色一区二区三区| 欧美大片在线观看| 婷婷综合另类小说色区| 色婷婷精品久久二区二区蜜臂av| 久久精品视频在线看| 久久av资源网| 91麻豆精品国产综合久久久久久| 亚洲码国产岛国毛片在线| 成人美女视频在线观看| 久久精品日韩一区二区三区| 九九视频精品免费| 欧美一区二区二区| 三级欧美韩日大片在线看| 欧美在线小视频| 樱花影视一区二区| 色综合久久久久久久久久久| 亚洲欧洲精品天堂一级| 不卡电影一区二区三区| 国产精品二三区| www.成人在线| 中文字幕在线观看不卡视频| 成人精品电影在线观看| 国产精品素人视频| 成人av免费在线播放| 中文字幕成人在线观看| 成人深夜视频在线观看| 欧美国产精品一区| 丰满岳乱妇一区二区三区| 欧美激情一区在线观看| www..com久久爱| 亚洲激情第一区| 欧美日韩你懂的| 视频一区二区欧美| 日韩一区二区三区在线视频| 激情亚洲综合在线| 国产精品午夜春色av| 99re6这里只有精品视频在线观看| 中文字幕乱码久久午夜不卡| 99久久99久久久精品齐齐| 亚洲人吸女人奶水| 欧美色综合天天久久综合精品| 日韩精品亚洲一区| 精品国产乱码久久久久久图片| 另类欧美日韩国产在线| 久久久久国产免费免费| 国产精品少妇自拍| 国产精品乱码人人做人人爱| 久久97超碰色| 国产日韩欧美制服另类| 99久久国产综合精品女不卡| 亚洲在线观看免费视频| 91精品国产免费| 国产麻豆欧美日韩一区| 亚洲黄色av一区| 在线91免费看| 国产成人av电影| 亚洲妇女屁股眼交7| 日韩欧美一级在线播放| caoporn国产精品| 亚洲一区二区三区美女| 精品国产凹凸成av人网站| caoporn国产精品| 日本免费在线视频不卡一不卡二| 国产日韩av一区二区| 色狠狠色狠狠综合| 久久99久久精品| 日韩伦理免费电影| 欧美一区二区视频免费观看| 高清国产一区二区| 亚洲成人激情社区| 久久久亚洲高清| 在线观看国产日韩| 国产黄色91视频| 香蕉加勒比综合久久| 国产亚洲短视频| 欧美日韩大陆在线| 99视频精品免费视频| 亚洲成人777| 1024国产精品| 精品少妇一区二区三区日产乱码 | 国产欧美在线观看一区| 欧美主播一区二区三区美女| 国产精品一卡二卡| 亚洲大片一区二区三区| 国产欧美1区2区3区| 91麻豆精品国产无毒不卡在线观看| 成人午夜又粗又硬又大| 日本欧美在线观看| 亚洲卡通动漫在线| 国产人久久人人人人爽| 91麻豆精品国产91久久久| 一本到不卡免费一区二区| 激情综合网激情| 日韩av不卡在线观看| 亚洲三级在线看| 久久久精品天堂| 日韩精品一区二区三区中文精品| 一本大道久久a久久综合| 高清国产一区二区三区| 国模少妇一区二区三区| 日本成人中文字幕在线视频| 亚洲一区二区视频| 最新久久zyz资源站| 日本一区二区三区在线不卡| 欧美成人精品3d动漫h| 欧美丰满少妇xxxxx高潮对白| 91久久精品一区二区三区| 成人免费黄色大片| 国产盗摄精品一区二区三区在线 | 国产精品1024| 国产一区二区视频在线| 午夜av电影一区| 亚洲v精品v日韩v欧美v专区| 亚洲国产人成综合网站| 亚洲综合色丁香婷婷六月图片| 亚洲欧美日韩在线播放| 亚洲美女屁股眼交3|