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

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

?? pointset1.cxx

?? InsightToolkit-1.4.0(有大量的優化算法程序)
?? CXX
字號:
/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    $RCSfile: PointSet1.cxx,v $
  Language:  C++
  Date:      $Date: 2003/09/10 14:29:52 $
  Version:   $Revision: 1.12 $

  Copyright (c) Insight Software Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

//  Software Guide : BeginLatex
//
//  The \code{itk::PointSet} is a basic class intended to represent geometry
//  in the form of a set of points in n-dimensional space. It is the base
//  class for the \code{itk::Mesh} providing the methods necessary to
//  manipulate sets of point. Points can have values associated with
//  them. The type of such values is defined by a template parameter of the
//  \code{itk::PointSet} class (i.e., \code{TPixelType}. Two basic
//  interaction styles of PointSets are available in ITK. These styles are
//  referred to as \emph{static} and \emph{dynamic}. The first style is used
//  when the number of points in the set is known in advance and is not
//  expected to change as a consequence of the manipulations performed on the
//  set. The dynamic style, on the other hand, is intended to support
//  insertion and removal of points in an efficient manner. Distinguishing
//  between the two styles is meant to facilitate the fine tuning of a
//  \code{PointSet}'s behavior while optimizing performance and memory
//  management.
//
//  \index{itk::PointSet}
//  \index{itk::PointSet!Static}
//  \index{itk::PointSet!Dynamic}
//
//  In order to use the PointSet class, its header file should be included.
//
//  Software Guide : EndLatex 

// Software Guide : BeginCodeSnippet
#include "itkPointSet.h"
// Software Guide : EndCodeSnippet

int main()
{
  //  Software Guide : BeginLatex
  //
  //  Then we must decide what type of value to associate with the
  //  points. This is generally called the \code{PixelType} in order to make the
  //  terminology consistent with the \code{itk::Image}. The PointSet is also 
  //  templated over the dimension of the space in which the points are
  //  represented. The following declaration illustrates a typical
  //  instantiation of the PointSet class.
  //
  //  \index{itk::PointSet!Instantiation}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  typedef itk::PointSet< unsigned short, 3 > PointSetType;
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  A \code{PointSet} object is created by invoking the \code{New()} method
  //  on its type.  The resulting object must be assigned to a
  //  \code{SmartPointer}.  The PointSet is then reference-counted and can be
  //  shared by multiple objects. The memory allocated for the PointSet will
  //  be released when the number of references to the object is reduced to
  //  zero. This simply means that the user does not need to be concerned
  //  with invoking the \code{Delete()} method on this class.  In fact, the
  //  \code{Delete()} method should \textbf{never} be called directly within
  //  any of the reference-counted ITK classes.
  //
  //  \index{itk::PointSet!New()}
  //  \index{itk::PointSet!Pointer}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  PointSetType::Pointer  pointsSet = PointSetType::New();
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  Following the principles of Generic Programming, the \code{PointSet} class has a
  //  set of associated defined types to ensure that interacting objects can be
  //  declared with compatible types. This set of type definitions is
  //  commonly known as a set of \emph{traits}.  Among them we can find the
  //  \code{PointType} type, for example.  This is the type used by the point set to
  //  represent points in space.  The following declaration takes the point
  //  type as defined in the \code{PointSet} traits and renames it to be conveniently
  //  used in the global namespace.
  //
  //  \index{itk::PointSet!PointType}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  typedef PointSetType::PointType     PointType;
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  //  The \code{PointType} can now be used to declare point objects to be
  //  inserted in the \code{PointSet}. Points are fairly small objects, so
  //  it is inconvenient to manage them with reference counting and smart
  //  pointers. They are simply instantiated as typical C++ classes. The Point
  //  class inherits the \code{[]} operator from the \code{itk::Array} class.
  //  This makes it possible to access its components using index notation. For
  //  efficiency's sake no bounds checking is performed during index access. It is
  //  the user's responsibility to ensure that the index used is in the range
  //  $\{0,Dimension-1\}$. Each of the components in the point is associated
  //  with space coordinates. The following code illustrates how to instantiate
  //  a point and initialize its components.
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  PointType p0;
  p0[0] = -1.0;     //  x coordinate
  p0[1] = -1.0;     //  y coordinate
  p0[2] =  0.0;     //  z coordinate
  // Software Guide : EndCodeSnippet


  PointType p1;

  p1[0] =  1.0; // Point 1 = { 1,-1,0 } 
  p1[1] = -1.0; 
  p1[2] =  0.0;


  PointType p2; // Point 2 = { 1,1,0 }
  p2[0] =  1.0; 
  p2[1] =  1.0; 
  p2[2] =  0.0; 

  //  Software Guide : BeginLatex
  //
  //  Points are inserted in the PointSet by using the \code{SetPoint()} method.
  //  This method requires the user to provide a unique identifier for the
  //  point. The identifier is typically an unsigned integer that will enumerate
  //  the points as they are being inserted. The following code shows how three
  //  points are inserted into the PointSet.
  //
  //  \index{itk::PointSet!SetPoint()}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  pointsSet->SetPoint( 0, p0 );
  pointsSet->SetPoint( 1, p1 );
  pointsSet->SetPoint( 2, p2 );
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  // It is possible to query the PointSet in order to determine how many points
  // have been inserted into it. This is done with the \code{GetNumberOfPoints()}
  // method as illustrated below.
  //
  //  \index{itk::PointSet!GetNumberOfPoints()}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  const unsigned int numberOfPoints = pointsSet->GetNumberOfPoints();
  std::cout << numberOfPoints << std::endl;
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  // Points can be read from the PointSet by using the \code{GetPoint()} method
  // and the integer identifier. The point is stored in a pointer provided by
  // the user. If the identifier provided does not match an
  // existing point, the method will return \code{false} and the contents of the
  // point will be invalid. The following code illustrates point access
  // using defensive programming.
  //
  //  \index{itk::PointSet!GetPoint()}
  //
  //  Software Guide : EndLatex 

  // Software Guide : BeginCodeSnippet
  PointType pp;
  bool pointExists =  pointsSet->GetPoint( 1, & pp );

  if( pointExists ) 
    {
    std::cout << "Point is = " << pp << std::endl;
    }
  // Software Guide : EndCodeSnippet


  //  Software Guide : BeginLatex
  //
  // \code{GetPoint()} and \code{SetPoint()} are not the most efficient methods
  // to access points in the PointSet. It is preferable to get direct access
  // to the internal point container defined by the \emph{traits} and use
  // iterators to walk sequentially over the list of points (as shown in
  // the following example).
  //
  //  Software Guide : EndLatex 

  return 0;
}


?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩激情在线观看| 91玉足脚交白嫩脚丫在线播放| 国产精品一区专区| 91网站最新地址| 国产亚洲一区二区三区在线观看| 亚洲成人午夜电影| 一本色道a无线码一区v| 久久精品欧美日韩| 蜜桃久久久久久久| 欧美视频一区二区三区四区| 中文字幕一区二区不卡| 精品亚洲国内自在自线福利| 欧美日韩一区二区三区四区五区| 成人免费在线视频| 成人一区二区三区视频| 精品对白一区国产伦| 日本色综合中文字幕| 欧美亚洲国产一区在线观看网站| 国产精品久久二区二区| 丁香啪啪综合成人亚洲小说| 欧美精品一区二区高清在线观看| 日韩影院免费视频| 制服.丝袜.亚洲.中文.综合| 亚洲欧美一区二区三区久本道91| 成人动漫一区二区在线| 国产三级精品在线| 国产精品一二三四| 久久精品水蜜桃av综合天堂| 国产精品77777| 国产欧美精品国产国产专区| 风间由美一区二区av101| 国产精品青草久久| 不卡视频免费播放| 亚洲欧美综合色| 色婷婷狠狠综合| 一区二区三区四区在线免费观看| 五月婷婷久久丁香| 婷婷亚洲久悠悠色悠在线播放| 国产91富婆露脸刺激对白| 久久久精品免费网站| 国产麻豆成人精品| 一本久久精品一区二区| 中文av字幕一区| 亚洲卡通动漫在线| 久久综合色之久久综合| 欧美日韩一区二区欧美激情| 国产精品一品视频| 日本vs亚洲vs韩国一区三区二区| 国产精品超碰97尤物18| 久久亚洲捆绑美女| 91精品国产综合久久久久| 91黄色免费版| caoporm超碰国产精品| 国产麻豆视频一区二区| 日韩国产高清影视| 亚洲成a人片在线不卡一二三区| 亚洲欧美自拍偷拍| 日本一区二区三区高清不卡| 精品日韩欧美在线| 欧美高清视频不卡网| 在线看国产日韩| 99久久综合国产精品| 国产成人免费视频| 国产一区二区91| 日韩国产在线一| 亚洲一区二区欧美| 亚洲国产一二三| 亚洲女与黑人做爰| 亚洲柠檬福利资源导航| 一区二区中文视频| 1024成人网| 亚洲女同一区二区| 亚洲婷婷在线视频| 亚洲精品成人天堂一二三| 亚洲视频在线观看一区| 综合激情成人伊人| 亚洲天天做日日做天天谢日日欢| 亚洲欧洲av色图| 一区二区三区免费看视频| 一级做a爱片久久| 亚洲h在线观看| 天天免费综合色| 男人操女人的视频在线观看欧美| 日本aⅴ免费视频一区二区三区 | 欧美吞精做爰啪啪高潮| 在线亚洲欧美专区二区| 欧美天堂一区二区三区| 欧美一三区三区四区免费在线看| 欧美一区二区三区免费在线看 | 国产日韩欧美激情| 国产精品亲子伦对白| 怡红院av一区二区三区| 亚洲成人黄色小说| 久久精品国产99国产精品| 国产精品影视在线| 99国产精品一区| 欧美视频精品在线| 欧美不卡一区二区三区| 国产三级一区二区| 亚洲综合一区二区| 蜜桃视频第一区免费观看| 国产成人自拍高清视频在线免费播放 | 欧美区一区二区三区| 欧美成人一区二区三区在线观看| 久久精品人人做人人爽人人| 亚洲免费大片在线观看| 美女被吸乳得到大胸91| 国产福利91精品一区| 欧美午夜一区二区| 久久久精品免费免费| 一区二区三区久久| 国产露脸91国语对白| 欧美亚洲综合在线| 亚洲精品一区二区三区四区高清| 综合久久久久久| 麻豆专区一区二区三区四区五区| 丁香六月久久综合狠狠色| 555www色欧美视频| 日韩伦理电影网| 久久精品国产免费| 色狠狠av一区二区三区| 2欧美一区二区三区在线观看视频| 亚洲男同性恋视频| 国产一区在线观看视频| 欧美体内she精高潮| 国产校园另类小说区| 日韩精品成人一区二区三区| 成人av在线影院| 精品国产青草久久久久福利| 亚洲精品免费播放| 国产露脸91国语对白| 欧美绝品在线观看成人午夜影视| 国产欧美日韩精品在线| 麻豆91在线播放| 欧美综合一区二区三区| 久久日韩精品一区二区五区| 国产91清纯白嫩初高中在线观看 | 欧美v日韩v国产v| 亚洲国产精品久久一线不卡| 国产精品麻豆一区二区| 五月婷婷激情综合网| 成人国产电影网| 久久影院视频免费| 日韩精品一级中文字幕精品视频免费观看 | 欧美国产综合色视频| 欧美精品一区二区三区蜜臀| 国产精品成人一区二区艾草 | 风间由美一区二区av101| 欧美一区二区免费| 亚洲国产一区二区三区| 99精品国产一区二区三区不卡| 欧美大度的电影原声| 三级久久三级久久久| 亚洲激情成人在线| 精品国产成人系列| 欧美人牲a欧美精品| 亚洲图片一区二区| 欧美三级资源在线| 偷拍一区二区三区四区| 国产成人在线网站| 国产精品乱子久久久久| 91麻豆精东视频| 亚洲成人第一页| 亚洲国产成人自拍| 欧美夫妻性生活| 欧美男同性恋视频网站| 色一情一伦一子一伦一区| 国产成人亚洲综合a∨婷婷 | 激情伊人五月天久久综合| 五月天久久比比资源色| 亚洲美女视频在线| 亚洲一卡二卡三卡四卡无卡久久| 国产精品国产馆在线真实露脸 | 99精品视频中文字幕| bt7086福利一区国产| 99re在线精品| 91福利在线观看| 欧美一区二区三区电影| 日韩你懂的电影在线观看| 日韩一级片网址| 日韩免费性生活视频播放| 国产无人区一区二区三区| 在线观看日韩毛片| 欧美日韩一二区| 日韩欧美视频在线| 国产欧美中文在线| 国产精品久久久久久亚洲毛片| 亚洲视频资源在线| 午夜av一区二区三区| 精品一区二区三区免费毛片爱| 国产999精品久久久久久| 色综合久久久久网| 久久午夜电影网| 亚洲chinese男男1069| 国产一区二区在线看| 欧美日韩国产综合一区二区| 亚洲精品一区二区三区精华液 | 国产69精品久久久久777| 色综合久久久久久久久久久| 欧美一区二区三区在|