- Timestamp:
- 04/18/09 18:37:46 (4 years ago)
- Location:
- lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Core
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Core/Cv_A-C.cs
r32565 r32582 1846 1846 #endregion 1847 1847 #region CalcSubdivVoronoi2D 1848 #if LANG_JP 1848 1849 /// <summary> 1849 1850 /// 仮想点の座標を計算する.元の細分割面のある頂点に対応する仮想点全てを接続すると,その頂点を含むボロノイ領域の境界を構成する. 1850 1851 /// </summary> 1851 1852 /// <param name="subdiv">ドロネー細分割.全ての点は追加済みである</param> 1853 #else 1854 /// <summary> 1855 /// Calculates coordinates of Voronoi diagram cells. 1856 /// </summary> 1857 /// <param name="subdiv">Delaunay subdivision, where all the points are added already. </param> 1858 #endif 1852 1859 public static void CalcSubdivVoronoi2D(CvSubdiv2D subdiv) 1853 1860 { … … 2501 2508 #endregion 2502 2509 #region ClearSubdivVoronoi2D 2510 #if LANG_JP 2503 2511 /// <summary> 2504 2512 /// 全ての仮想点を削除する. … … 2506 2514 /// </summary> 2507 2515 /// <param name="subdiv">ドロネー細分割</param> 2516 #else 2517 /// <summary> 2518 /// Removes all virtual points 2519 /// </summary> 2520 /// <param name="subdiv">Delaunay subdivision. </param> 2521 #endif 2508 2522 public static void ClearSubdivVoronoi2D(CvSubdiv2D subdiv) 2509 2523 { … … 4344 4358 #endregion 4345 4359 #region CreateSubdiv2D 4360 #if LANG_JP 4346 4361 /// <summary> 4347 4362 /// CvSubdiv2Dを生成する。 … … 4354 4369 /// <param name="storage"></param> 4355 4370 /// <returns></returns> 4371 #else 4372 /// <summary> 4373 /// Creates empty Delaunay triangulation. 4374 /// The users must initialize the returned value by cvInitSubdivDelaunay2D. 4375 /// </summary> 4376 /// <param name="subdiv_type"></param> 4377 /// <param name="header_size"></param> 4378 /// <param name="vtx_size"></param> 4379 /// <param name="quadedge_size"></param> 4380 /// <param name="storage"></param> 4381 /// <returns></returns> 4382 #endif 4356 4383 public static CvSubdiv2D CreateSubdiv2D(SeqType subdiv_type, Int32 header_size, Int32 vtx_size, Int32 quadedge_size, CvMemStorage storage) 4357 4384 { … … 4360 4387 throw new ArgumentNullException("storage"); 4361 4388 } 4362 IntPtr ptr= CvDll.cvCreateSubdiv2D(subdiv_type, header_size, vtx_size, quadedge_size, storage.CvPtr);4363 if ( ptr== IntPtr.Zero)4389 IntPtr result = CvDll.cvCreateSubdiv2D(subdiv_type, header_size, vtx_size, quadedge_size, storage.CvPtr); 4390 if (result == IntPtr.Zero) 4364 4391 return null; 4365 4392 else 4366 return new CvSubdiv2D(ptr); 4393 return new CvSubdiv2D(result); 4394 } 4395 #endregion 4396 #region CreateSubdivDelaunay2D 4397 #if LANG_JP 4398 /// <summary> 4399 /// 空のドロネー三角形を作成する 4400 /// </summary> 4401 /// <param name="rect">細分割のために追加される全ての2次元点を包含する矩形.</param> 4402 /// <param name="storage">細分割のための領域.</param> 4403 /// <returns></returns> 4404 #else 4405 /// <summary> 4406 /// Creates empty Delaunay triangulation 4407 /// </summary> 4408 /// <param name="rect">Rectangle that includes all the 2d points that are to be added to subdivision. </param> 4409 /// <param name="storage">Container for subdivision. </param> 4410 /// <returns></returns> 4411 #endif 4412 public static CvSubdiv2D CreateSubdivDelaunay2D(CvRect rect, CvMemStorage storage) 4413 { 4414 if (storage == null) 4415 { 4416 throw new ArgumentNullException("storage"); 4417 } 4418 IntPtr result = CvInline.cvCreateSubdivDelaunay2D(rect, storage.CvPtr); 4419 if (result == IntPtr.Zero) 4420 return null; 4421 else 4422 return new CvSubdiv2D(result); 4367 4423 } 4368 4424 #endregion -
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Core/Cv_D-G.cs
r32533 r32582 1381 1381 #endregion 1382 1382 #region FindNearestPoint2D 1383 #if LANG_JP 1383 1384 /// <summary> 1384 1385 /// 与えられた点に最も近い細分割の頂点を求める. 入力点を細分割内に配置するもう一つの関数である. … … 1388 1389 /// <param name="pt">入力点</param> 1389 1390 /// <returns></returns> 1390 public static CvSubdiv2DPoint FindNearestPoint2D(CvSubdiv2D subdiv, CvPoint2D32f pt) 1391 #else 1392 /// <summary> 1393 /// Finds the closest subdivision vertex to given point 1394 /// </summary> 1395 /// <param name="subdiv">Delaunay or another subdivision. </param> 1396 /// <param name="pt">Input point. </param> 1397 /// <returns></returns> 1398 #endif 1399 public static CvSubdiv2DPoint FindNearestPoint2D(this CvSubdiv2D subdiv, CvPoint2D32f pt) 1391 1400 { 1392 1401 if (subdiv == null) -
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Src/Core/Cv_R-Z.cs
r32510 r32582 3083 3083 #endregion 3084 3084 #region Subdiv2DEdgeDst 3085 #if LANG_JP 3085 3086 /// <summary> 3086 3087 /// 辺の終点を返す. 3087 /// 辺が双対細分割のものであり,仮想点の座標がまだ計算されていない場合は,nullを返す. 3088 /// 仮想点は関数 cvCalcSubdivVoronoi2D を用いて計算される 3088 /// 仮想点は関数 cvCalcSubdivVoronoi2D を用いて計算される. 3089 3089 /// </summary> 3090 3090 /// <param name="edge">細分割平面の辺の一つ(quad-edge表現ではない)</param> 3091 /// <returns>辺の終点</returns> 3091 /// <returns>辺の終点. 辺が双対細分割のものであり,仮想点の座標がまだ計算されていない場合は,nullを返す.</returns> 3092 #else 3093 /// <summary> 3094 /// Returns edge destination. 3095 /// </summary> 3096 /// <param name="edge">Subdivision edge (not a quad-edge) </param> 3097 /// <returns>The edge destination. If the edge is from dual subdivision and the virtual point coordinates are not calculated yet, the returned pointer may be null.</returns> 3098 #endif 3092 3099 public static CvSubdiv2DPoint Subdiv2DEdgeDst(CvSubdiv2DEdge edge) 3093 3100 { … … 3100 3107 #endregion 3101 3108 #region Subdiv2DEdgeOrg 3109 #if LANG_JP 3102 3110 /// <summary> 3103 3111 /// 辺の始点を返す. 3104 /// 辺が双対細分割のものであり,仮想点の座標がまだ計算されていない場合は,nullを返す. 3105 /// 仮想点は関数 cvCalcSubdivVoronoi2D を用いて計算される 3112 /// 仮想点は関数 cvCalcSubdivVoronoi2D を用いて計算される. 3106 3113 /// </summary> 3107 3114 /// <param name="edge">細分割平面の辺の一つ(quad-edge表現ではない)</param> 3108 /// <returns>辺の始点</returns> 3115 /// <returns>辺の始点. 辺が双対細分割のものであり,仮想点の座標がまだ計算されていない場合は,nullを返す.</returns> 3116 #else 3117 /// <summary> 3118 /// Returns edge origin. 3119 /// </summary> 3120 /// <param name="edge">Subdivision edge (not a quad-edge) </param> 3121 /// <returns>The edge origin. If the edge is from dual subdivision and the virtual point coordinates are not calculated yet, the returned pointer may be null.</returns> 3122 #endif 3109 3123 public static CvSubdiv2DPoint Subdiv2DEdgeOrg(CvSubdiv2DEdge edge) 3110 3124 { … … 3117 3131 #endregion 3118 3132 #region Subdiv2DGetEdge 3133 #if LANG_JP 3119 3134 /// <summary> 3120 3135 /// 入力された辺に関連する辺の一つを返す … … 3123 3138 /// <param name="type">戻り値とする辺の条件</param> 3124 3139 /// <returns>与えられた辺に関連する辺の一つ</returns> 3140 #else 3141 /// <summary> 3142 /// Returns one of edges related to given. 3143 /// </summary> 3144 /// <param name="edge">Subdivision edge (not a quad-edge) </param> 3145 /// <param name="type">Specifies, which of related edges to return</param> 3146 /// <returns>one the edges related to the input edge</returns> 3147 #endif 3125 3148 public static CvSubdiv2DEdge Subdiv2DGetEdge(CvSubdiv2DEdge edge, CvNextEdgeType type) 3126 3149 { … … 3129 3152 #endregion 3130 3153 #region Subdiv2DLocate 3154 #if LANG_JP 3131 3155 /// <summary> 3132 3156 /// ドロネー三角形に点を追加する … … 3136 3160 /// <param name="edge">出力される辺.配置した点は,その辺上または端に存在する.</param> 3137 3161 /// <returns>配置する点</returns> 3162 #else 3163 /// <summary> 3164 /// Inserts a single point to Delaunay triangulation 3165 /// </summary> 3166 /// <param name="subdiv">Delaunay or another subdivision. </param> 3167 /// <param name="pt">The point to locate. </param> 3168 /// <param name="edge">The output edge the point falls onto or right to. </param> 3169 /// <returns></returns> 3170 #endif 3138 3171 public static CvSubdiv2DPointLocation Subdiv2DLocate(CvSubdiv2D subdiv, CvPoint2D32f pt, out CvSubdiv2DEdge edge) 3139 3172 { … … 3148 3181 return result; 3149 3182 } 3183 #if LANG_JP 3150 3184 /// <summary> 3151 3185 /// ドロネー三角形に点を追加する … … 3156 3190 /// <param name="vertex">オプション出力.入力点と一致する細分割の頂点へのポインタのポインタ</param> 3157 3191 /// <returns>配置する点</returns> 3192 #else 3193 /// <summary> 3194 /// Inserts a single point to Delaunay triangulation 3195 /// </summary> 3196 /// <param name="subdiv">Delaunay or another subdivision. </param> 3197 /// <param name="pt">The point to locate. </param> 3198 /// <param name="edge">The output edge the point falls onto or right to. </param> 3199 /// <param name="vertex">Optional output vertex double pointer the input point coinsides with. </param> 3200 /// <returns></returns> 3201 #endif 3158 3202 public static CvSubdiv2DPointLocation Subdiv2DLocate(CvSubdiv2D subdiv, CvPoint2D32f pt, out CvSubdiv2DEdge edge, ref CvSubdiv2DPoint vertex) 3159 3203 { … … 3178 3222 #endregion 3179 3223 #region Subdiv2DRotateEdge 3224 #if LANG_JP 3180 3225 /// <summary> 3181 3226 /// 入力された辺を含むquad-edge中の辺の一つを返す. … … 3184 3229 /// <param name="rotate">関係の指定(入力された辺と同じquad-edgeのどの辺を返すかを指定)</param> 3185 3230 /// <returns></returns> 3231 #else 3232 /// <summary> 3233 /// Returns another edge of the same quad-edge 3234 /// </summary> 3235 /// <param name="edge">Subdivision edge (not a quad-edge) </param> 3236 /// <param name="rotate">Specifies, which of edges of the same quad-edge as the input one to return</param> 3237 /// <returns>one the edges of the same quad-edge as the input edge. </returns> 3238 #endif 3186 3239 public static CvSubdiv2DEdge Subdiv2DRotateEdge(CvSubdiv2DEdge edge, RotateEdgeFlag rotate) 3187 3240 { … … 3190 3243 #endregion 3191 3244 #region SubdivDelaunay2DInsert 3245 #if LANG_JP 3192 3246 /// <summary> 3193 3247 /// ドロネー三角形に点を追加する … … 3196 3250 /// <param name="pt">追加する点</param> 3197 3251 /// <returns></returns> 3252 #else 3253 /// <summary> 3254 /// Inserts a single point to Delaunay triangulation 3255 /// </summary> 3256 /// <param name="subdiv">Delaunay subdivision created by function cvCreateSubdivDelaunay2D. </param> 3257 /// <param name="pt">Inserted point. </param> 3258 /// <returns></returns> 3259 #endif 3198 3260 public static CvSubdiv2DPoint SubdivDelaunay2DInsert(CvSubdiv2D subdiv, CvPoint2D32f pt) 3199 3261 {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)