Changeset 32414
- Timestamp:
- 04/15/09 00:24:16 (4 years ago)
- Location:
- lang/cpluspluscli/OpenCvSharp2/trunk
- Files:
-
- 2 added
- 4 modified
-
OpenCvSharp.Test/Samples/ConvexHull.cs (modified) (1 diff)
-
OpenCvSharp.Test/Samples/SeqTest.cs (modified) (1 diff)
-
OpenCvSharp/Core/Cv_Macro.cs (modified) (1 diff)
-
OpenCvSharp/OpenCvSharp.csproj (modified) (2 diffs)
-
OpenCvSharp/ReadMe.txt (added)
-
OpenCvSharp/Tool/TimeMeasurer.cs (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/Samples/ConvexHull.cs
r32359 r32414 50 50 51 51 // draw hull 52 53 // CvPoint* =Pointer<CvPoint>54 // *pt =pt.Entity52 53 // CvPoint* <=> Pointer<CvPoint> 54 // *pt <=> pt.Entity 55 55 CvPoint pt0 = Cv.GetSeqElem<Pointer<CvPoint>>(hull, hull.Total - 1).Value.Entity; // pt0 = **CV_GET_SEQ_ELEM( CvPoint*, hull, hullcount - 1 ); 56 56 for (int i = 0; i < hull.Total; i++) -
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/Samples/SeqTest.cs
r32022 r32414 13 13 class SeqTest 14 14 { 15 public SeqTest()15 public unsafe SeqTest() 16 16 { 17 17 using (CvMemStorage storage = new CvMemStorage(0)) -
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Core/Cv_Macro.cs
r32359 r32414 391 391 { 392 392 ptr = (IntPtr)Marshal.PtrToStructure(ptr, typeof(IntPtr)); 393 ConstructorInfo info = t.GetConstructor(new Type[] { typeof(IntPtr) }); 394 return (T)info.Invoke(new object[] { ptr }); 393 return (T)Activator.CreateInstance(t, ptr); 395 394 } 396 395 else -
lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/OpenCvSharp.csproj
r32359 r32414 297 297 <Compile Include="Tool\Pointer.cs" /> 298 298 <Compile Include="Tool\PointerAccessor\IPointerAccessor2.cs" /> 299 <Compile Include="Tool\TimeMeasurer.cs" /> 299 300 <Compile Include="Tool\StructurePointer.cs" /> 300 301 <Compile Include="Struct\CvColor.cs" /> … … 332 333 </ProjectReference> 333 334 </ItemGroup> 335 <ItemGroup> 336 <Content Include="ReadMe.txt"> 337 <CopyToOutputDirectory>Always</CopyToOutputDirectory> 338 </Content> 339 </ItemGroup> 334 340 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 335 341 <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)