Changeset 33060

Show
Ignore:
Timestamp:
05/05/09 08:33:15 (4 years ago)
Author:
schima
Message:

SeqPartition? sample

Location:
lang/cpluspluscli/OpenCvSharp2/trunk
Files:
3 added
11 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Blob/OpenCvSharp.Blob.vcproj

    r33057 r33060  
    22<VisualStudioProject 
    33        ProjectType="Visual C++" 
    4         Version="9,00" 
     4        Version="9.00" 
    55        Name="OpenCvSharp.Blob" 
    66        ProjectGUID="{014EC8DF-B435-444E-8603-D73FC857648A}" 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/CvConst.h

    r32739 r33060  
    288288                                literal Int32 CV_DIST_WELSCH_ =  CV_DIST_WELSCH; 
    289289                                literal Int32 CV_DIST_HUBER_ =  CV_DIST_HUBER; 
     290                                // cvError 
     291                                literal Int32 CV_StsOk_        = CV_StsOk;                      /* everithing is ok                */ 
     292                                literal Int32 CV_StsBackTrace_ = CV_StsBackTrace;       /* pseudo error for back trace     */ 
     293                                literal Int32 CV_StsError_     = CV_StsError;           /* unknown /unspecified error      */ 
     294                                literal Int32 CV_StsInternal_  = CV_StsInternal;        /* internal error (bad state)      */ 
     295                                literal Int32 CV_StsNoMem_     = CV_StsNoMem;           /* insufficient memory             */ 
     296                                literal Int32 CV_StsBadArg_    = CV_StsBadArg;          /* function arg/param is bad       */ 
     297                                literal Int32 CV_StsBadFunc_   = CV_StsBadFunc;         /* unsupported function            */ 
     298                                literal Int32 CV_StsNoConv_    = CV_StsNoConv;          /* iter. didn't converge           */ 
     299                                literal Int32 CV_StsAutoTrace_ = CV_StsAutoTrace;       /* tracing                         */ 
     300 
     301                                literal Int32 CV_HeaderIsNull_    = CV_HeaderIsNull;    /* image header is NULL            */ 
     302                                literal Int32 CV_BadImageSize_    = CV_BadImageSize;    /* image size is invalid           */ 
     303                                literal Int32 CV_BadOffset_       = CV_BadOffset;               /* offset is invalid               */ 
     304                                literal Int32 CV_BadDataPtr_      = CV_BadDataPtr;              /**/ 
     305                                literal Int32 CV_BadStep_         = CV_BadStep;                 /**/ 
     306                                literal Int32 CV_BadModelOrChSeq_ = CV_BadModelOrChSeq; /**/ 
     307                                literal Int32 CV_BadNumChannels_  = CV_BadNumChannels;  /**/ 
     308                                literal Int32 CV_BadNumChannel1U_ = CV_BadNumChannel1U; /**/ 
     309                                literal Int32 CV_BadDepth_        = CV_BadDepth;                /**/ 
     310                                literal Int32 CV_BadAlphaChannel_ = CV_BadAlphaChannel; /**/ 
     311                                literal Int32 CV_BadOrder_        = CV_BadOrder;                /**/ 
     312                                literal Int32 CV_BadOrigin_       = CV_BadOrigin;               /**/ 
     313                                literal Int32 CV_BadAlign_        = CV_BadAlign;                /**/ 
     314                                literal Int32 CV_BadCallBack_     = CV_BadCallBack;             /**/ 
     315                                literal Int32 CV_BadTileSize_     = CV_BadTileSize;             /**/ 
     316                                literal Int32 CV_BadCOI_          = CV_BadCOI;                  /**/ 
     317                                literal Int32 CV_BadROISize_      = CV_BadROISize;              /**/ 
     318 
     319                                literal Int32 CV_MaskIsTiled_     = CV_MaskIsTiled;             /**/ 
     320 
     321                                literal Int32 CV_StsNullPtr_                = CV_StsNullPtr;                            /* null pointer */ 
     322                                literal Int32 CV_StsVecLengthErr_           = CV_StsVecLengthErr;                       /* incorrect vector length */ 
     323                                literal Int32 CV_StsFilterStructContentErr_ = CV_StsFilterStructContentErr; /* incorr. filter structure content */ 
     324                                literal Int32 CV_StsKernelStructContentErr_ = CV_StsKernelStructContentErr; /* incorr. transform kernel content */ 
     325                                literal Int32 CV_StsFilterOffsetErr_        = CV_StsFilterOffsetErr;            /* incorrect filter ofset value */ 
     326 
     327                                /*extra for CV */ 
     328                                literal Int32 CV_StsBadSize_               = CV_StsBadSize;                             /* the input/output structure size is incorrect  */ 
     329                                literal Int32 CV_StsDivByZero_             = CV_StsDivByZero;                   /* division by zero */ 
     330                                literal Int32 CV_StsInplaceNotSupported_   = CV_StsInplaceNotSupported; /* inplace operation is not supported */ 
     331                                literal Int32 CV_StsObjectNotFound_        = CV_StsObjectNotFound;              /* request can't be completed */ 
     332                                literal Int32 CV_StsUnmatchedFormats_      = CV_StsUnmatchedFormats;    /* formats of input/output arrays differ */ 
     333                                literal Int32 CV_StsBadFlag_               = CV_StsBadFlag;                             /* flag is wrong or not supported */   
     334                                literal Int32 CV_StsBadPoint_              = CV_StsBadPoint;                    /* bad CvPoint */  
     335                                literal Int32 CV_StsBadMask_               = CV_StsBadMask;                             /* bad format of mask (neither 8uC1 nor 8sC1)*/ 
     336                                literal Int32 CV_StsUnmatchedSizes_        = CV_StsUnmatchedSizes;              /* sizes of input/output structures do not match */ 
     337                                literal Int32 CV_StsUnsupportedFormat_     = CV_StsUnsupportedFormat;   /* the data format/type is not supported by the function*/ 
     338                                literal Int32 CV_StsOutOfRange_            = CV_StsOutOfRange;                  /* some of parameters are out of range */ 
     339                                literal Int32 CV_StsParseError_            = CV_StsParseError;                  /* invalid syntax/structure of the parsed file */ 
     340                                literal Int32 CV_StsNotImplemented_        = CV_StsNotImplemented;              /* the requested function/feature is not implemented */ 
     341                                literal Int32 CV_StsBadMemBlock_           = CV_StsBadMemBlock;                 /* an allocated block has been corrupted */ 
     342                                 
     343                                // cvGet/SetErrMode 
     344                                literal Int32 CV_ErrModeLeaf_ = CV_ErrModeLeaf; 
     345                                literal Int32 CV_ErrModeParent_ = CV_ErrModeParent; 
     346                                literal Int32 CV_ErrModeSilent_ = CV_ErrModeSilent; 
     347 
    290348                                // CvFileNode 
    291                                 literal Int32 CV_NODE_NONE_ = CV_NODE_NONE; 
    292                                 literal Int32 CV_NODE_INTEGER_ = CV_NODE_INTEGER; 
    293                                 literal Int32 CV_NODE_FLOAT_ = CV_NODE_FLOAT; 
    294                                 literal Int32 CV_NODE_STRING_ = CV_NODE_STRING; 
    295                                 literal Int32 CV_NODE_REF_ = CV_NODE_REF; 
    296                                 literal Int32 CV_NODE_SEQ_ = CV_NODE_SEQ; 
    297                                 literal Int32 CV_NODE_MAP_ = CV_NODE_MAP; 
    298                                 literal Int32 CV_NODE_FLOW_ = CV_NODE_FLOW; 
    299                                 literal Int32 CV_NODE_USER_ = CV_NODE_USER; 
    300                                 literal Int32 CV_NODE_EMPTY_ = CV_NODE_EMPTY; 
    301                                 literal Int32 CV_NODE_NAMED_ = CV_NODE_NAMED; 
     349                                literal Int32 CV_NODE_NONE_             = CV_NODE_NONE; 
     350                                literal Int32 CV_NODE_INTEGER_  = CV_NODE_INTEGER; 
     351                                literal Int32 CV_NODE_FLOAT_    = CV_NODE_FLOAT; 
     352                                literal Int32 CV_NODE_STRING_   = CV_NODE_STRING; 
     353                                literal Int32 CV_NODE_REF_              = CV_NODE_REF; 
     354                                literal Int32 CV_NODE_SEQ_              = CV_NODE_SEQ; 
     355                                literal Int32 CV_NODE_MAP_              = CV_NODE_MAP; 
     356                                literal Int32 CV_NODE_FLOW_             = CV_NODE_FLOW; 
     357                                literal Int32 CV_NODE_USER_             = CV_NODE_USER; 
     358                                literal Int32 CV_NODE_EMPTY_    = CV_NODE_EMPTY; 
     359                                literal Int32 CV_NODE_NAMED_    = CV_NODE_NAMED; 
    302360                                // cvFindChessboardCorners 
    303361                                literal Int32 CV_CALIB_CB_ADAPTIVE_THRESH_ = CV_CALIB_CB_ADAPTIVE_THRESH; 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/OpenCvSharp.Extern.vcproj

    r32932 r33060  
    609609                                </File> 
    610610                                <File 
     611                                        RelativePath=".\WCvTypeInfo.cpp" 
     612                                        > 
     613                                </File> 
     614                                <File 
    611615                                        RelativePath=".\WIplConvKernel.cpp" 
    612616                                        > 
     
    803807                                </File> 
    804808                                <File 
     809                                        RelativePath=".\WCvTypeInfo.h" 
     810                                        > 
     811                                </File> 
     812                                <File 
    805813                                        RelativePath=".\WIplConvKernel.h" 
    806814                                        > 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WBase.h

    r32857 r33060  
    1 /** 
     1/* 
    22 * (C) 2008-2009 Schima 
    33 * This code is licenced under the LGPL. 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Extern/WCvConDensation.h

    r33014 r33060  
    1 /** 
    2 * (C) 2008-2009 Schima 
    3 * This code is licenced under the LGPL. 
    4 */ 
     1/* 
     2 * (C) 2008-2009 Schima 
     3 * This code is licenced under the LGPL. 
     4 */ 
    55 
    66#pragma once 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.MachineLearning/CvKNearest.h

    r32586 r33060  
    145145            else 
    146146            { 
    147                 ArrayAddress2<float>^ aa = gcnew ArrayAddress2<float>(neighbors); 
     147                ArrayAddress2<Single>^ aa = gcnew ArrayAddress2<Single>(neighbors); 
    148148                                neighbors_ptr = new float*[aa->Pointer->Length]; 
    149149                                for(int i=0; i<aa->Pointer->Length; i++) 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.MachineLearning/CvSVM.h

    r32750 r33060  
    139139        /// <param name="i"></param> 
    140140        /// <returns></returns> 
    141                 PointerAccessor::Single^ GetSupportVector(Int32 i) 
    142         { 
    143                         return gcnew PointerAccessor::Single(const_cast<float*>(_ptr->get_support_vector(i))); 
     141                PointerAccessor1D_Single^ GetSupportVector(Int32 i) 
     142        { 
     143                        return gcnew PointerAccessor1D_Single(const_cast<float*>(_ptr->get_support_vector(i))); 
    144144        } 
    145145        /// <summary> 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/OpenCvSharp.Test.csproj

    r32569 r33060  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    6     <ProductVersion>9.0.30729</ProductVersion> 
     6    <ProductVersion>9.0.21022</ProductVersion> 
    77    <SchemaVersion>2.0</SchemaVersion> 
    88    <ProjectGuid>{B691EDEE-E08C-40A1-ACFC-91A8921F919D}</ProjectGuid> 
    99    <OutputType>Exe</OutputType> 
    1010    <AppDesignerFolder>Properties</AppDesignerFolder> 
    11     <RootNamespace>OpenCvSharp.Test</RootNamespace> 
     11    <RootNamespace>KwsmLab.OpenCvSharp.Test</RootNamespace> 
    1212    <AssemblyName>OpenCvSharp.Test</AssemblyName> 
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> 
     
    123123    <Compile Include="Samples\PyrSegmentation.cs" /> 
    124124    <Compile Include="Samples\Resize.cs" /> 
     125    <Compile Include="Samples\SeqPartition.cs" /> 
    125126    <Compile Include="Samples\SeqTest.cs" /> 
    126127    <Compile Include="Samples\Snake.cs" /> 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp.Test/Program.cs

    r32940 r33060  
    8484            //new Test.CornerDetect();                // コーナーの検出 
    8585 
    86             new Test.Delaunay();                    // ドロネー 
     86            //new Test.Delaunay();                    // ドロネー 
    8787 
    8888            //new Test.DFT();                         // 離散フーリエ変換 
     
    111111 
    112112            // !TODO : bugfix 
    113             //new Test.Kalman();                      // カルマンフィルタ 
     113            //snew Test.Kalman();                      // カルマンフィルタ 
    114114 
    115115            //new Test.LineIterator();                // CvLineIterator sample 
     
    145145            //new Test.Resize();                      // 画像のサイズ変更 
    146146 
     147            new Test.SeqPartition();                   // Partitioning 2d point set. 
     148 
    147149            //new Test.SeqTest();                     // CvSeqのテスト 
    148150 
  • lang/cpluspluscli/OpenCvSharp2/trunk/OpenCvSharp/OpenCvSharp.csproj

    r32932 r33060  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    6     <ProductVersion>9.0.30729</ProductVersion> 
     6    <ProductVersion>9.0.21022</ProductVersion> 
    77    <SchemaVersion>2.0</SchemaVersion> 
    88    <ProjectGuid>{4C2356B8-1A1E-4F92-A51C-A49CA116867F}</ProjectGuid> 
     
    140140  <ItemGroup> 
    141141    <Compile Include="Src\Class\CvTreeNode.cs" /> 
     142    <Compile Include="Src\Class\CvTypeInfo.cs" /> 
     143    <Compile Include="Src\Delegate\CvIsInstanceFunc.cs" /> 
     144    <Compile Include="Src\Delegate\CvReleaseFunc.cs" /> 
     145    <Compile Include="Src\Delegate\CvReadFunc.cs" /> 
     146    <Compile Include="Src\Delegate\CvWriteFunc.cs" /> 
     147    <Compile Include="Src\Delegate\CvCloneFunc.cs" /> 
     148    <Compile Include="Src\Enum\CvStatus.cs" /> 
     149    <Compile Include="Src\Enum\ErrMode.cs" /> 
     150    <Compile Include="Src\Struct\CvAttrList.cs" /> 
    142151    <Compile Include="Src\Struct\CvBox2D.cs" /> 
    143152    <Compile Include="Src\Class\CvChainPtReader.cs" /> 
     
    299308    <Compile Include="Src\Struct\CvLineSegmentPoint.cs" /> 
    300309    <Compile Include="Src\Tool\Pointer.cs" /> 
     310    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D.cs" /> 
     311    <Compile Include="Src\Tool\PointerAccessor\2D\IPointerAccessor2D.cs" /> 
     312    <Compile Include="Src\Tool\PointerAccessor\2D\PointerAccessor2D.Single.cs" /> 
    301313    <Compile Include="Src\Tool\TimeMeasurer.cs" /> 
    302314    <Compile Include="Src\Tool\StructurePointer.cs" /> 
     
    318330    <Compile Include="Src\Struct\CvScalar.cs" /> 
    319331    <Compile Include="Src\Struct\CvSize.cs" /> 
    320     <Compile Include="Src\Tool\PointerAccessor\IPointerAccessor.cs" /> 
     332    <Compile Include="Src\Tool\PointerAccessor\1D\IPointerAccessor1D.cs" /> 
    321333    <Compile Include="Src\Tool\ScopedGCHandle.cs" /> 
    322334    <Compile Include="Src\Tool\Win32API.cs" /> 
    323335    <Compile Include="Src\Tool\WriteableBitmapConverter.cs" /> 
    324     <Compile Include="Src\Tool\PointerAccessor\PointerAccessor.Byte.cs" /> 
    325     <Compile Include="Src\Tool\PointerAccessor\PointerAccessor.Int16.cs" /> 
    326     <Compile Include="Src\Tool\PointerAccessor\PointerAccessor.Int32.cs" /> 
    327     <Compile Include="Src\Tool\PointerAccessor\PointerAccessor.Single.cs" /> 
    328     <Compile Include="Src\Tool\PointerAccessor\PointerAccessor.Double.cs" /> 
     336    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D_Byte.cs" /> 
     337    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D_Int16.cs" /> 
     338    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D_Int32.cs" /> 
     339    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D_Single.cs" /> 
     340    <Compile Include="Src\Tool\PointerAccessor\1D\PointerAccessor1D_Double.cs" /> 
    329341    <Compile Include="Src\CvObject.cs" /> 
    330342  </ItemGroup> 
  • lang/cpluspluscli/OpenCvSharp2/trunk/wrapped functions.csv

    r33057 r33060  
    167167EqualizeHist;X; 
    168168Erode;X; 
    169 Error;; 
    170 ErrorStr;; 
     169Error;X; 
     170ErrorStr;X; 
    171171EstimateHMMStateParams;; 
    172172EstimateObsProb;; 
     
    194194FindStereoCorrespondenceBM;X; 
    195195FindStereoCorrespondenceGC;X; 
    196 FindType;; 
    197 FirstType;; 
     196FindType;X; 
     197FirstType;X; 
    198198FitEllipse;X; 
    199199FitLine2D;X; 
     
    212212GetDims;X; 
    213213GetElemType;X; 
    214 GetErrMode;; 
    215 GetErrStatus;; 
     214GetErrMode;X; 
     215GetErrStatus;X; 
    216216GetFileNode;X; 
    217217GetFileNodeByName;X; 
     
    226226GetMat;; 
    227227GetMinMaxHistValue;X; 
    228 GetModuleInfo;; 
     228GetModuleInfo;X; 
    229229GetNextSparseNode;X; 
    230230GetNormalizedCentralMoment;X; 
     
    386386Reduce;X; 
    387387RegisterModule;; 
    388 RegisterType;; 
    389 Release;; 
     388RegisterType;X; 
     389Release;X; 
    390390Release2DHMM;; 
    391391ReleaseCapture;X; 
     
    427427RunningAvg;X; 
    428428SampleLine;X; 
    429 Save;; 
     429Save;X; 
    430430SaveImage;X; 
    431431SaveMemStoragePos;X; 
     
    436436SeqInsertSlice;X; 
    437437SeqInvert;X; 
    438 SeqPartition;; 
     438SeqPartition;X; 
    439439SeqPop;X; 
    440440SeqPopFront;X; 
     
    454454SetCaptureProperty;X; 
    455455SetData;X; 
    456 SetErrMode;; 
    457 SetErrStatus;; 
     456SetErrMode;X; 
     457SetErrStatus;X; 
    458458SetHistBinRanges;X; 
    459459SetIdentity;X; 
     
    515515Transpose;X; 
    516516TreeToNodeSeq;X; 
    517 TypeOf;; 
     517TypeOf;X; 
    518518Undistort2;X; 
    519519UndistortPoints;X; 
    520520UniformImgSegm;; 
    521 UnregisterType;; 
     521UnregisterType;X; 
    522522UpdateMotionHistory;X; 
    523523UseOptimized;X;