Changeset 32414

Show
Ignore:
Timestamp:
04/15/09 00:24:16 (4 years ago)
Author:
schima
Message:

TimeMeasurer? (for debugging)

Location:
lang/cpluspluscli/OpenCvSharp2/trunk
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/Samples/ConvexHull.cs

    r32359 r32414  
    5050 
    5151                // draw hull 
    52                  
    53                 // CvPoint* = Pointer<CvPoint> 
    54                 // *pt      = pt.Entity 
     52 
     53                // CvPoint* <=> Pointer<CvPoint> 
     54                // *pt      <=> pt.Entity 
    5555                CvPoint pt0 = Cv.GetSeqElem<Pointer<CvPoint>>(hull, hull.Total - 1).Value.Entity;    // pt0 = **CV_GET_SEQ_ELEM( CvPoint*, hull, hullcount - 1 ); 
    5656                for (int i = 0; i < hull.Total; i++) 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/Samples/SeqTest.cs

    r32022 r32414  
    1313    class SeqTest 
    1414    {         
    15         public SeqTest() 
     15        public unsafe SeqTest() 
    1616        { 
    1717            using (CvMemStorage storage = new CvMemStorage(0)) 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/Core/Cv_Macro.cs

    r32359 r32414  
    391391            { 
    392392                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); 
    395394            } 
    396395            else 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/OpenCvSharp.csproj

    r32359 r32414  
    297297    <Compile Include="Tool\Pointer.cs" /> 
    298298    <Compile Include="Tool\PointerAccessor\IPointerAccessor2.cs" /> 
     299    <Compile Include="Tool\TimeMeasurer.cs" /> 
    299300    <Compile Include="Tool\StructurePointer.cs" /> 
    300301    <Compile Include="Struct\CvColor.cs" /> 
     
    332333    </ProjectReference> 
    333334  </ItemGroup> 
     335  <ItemGroup> 
     336    <Content Include="ReadMe.txt"> 
     337      <CopyToOutputDirectory>Always</CopyToOutputDirectory> 
     338    </Content> 
     339  </ItemGroup> 
    334340  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> 
    335341  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.