Changeset 31005

Show
Ignore:
Timestamp:
03/10/09 13:49:43 (4 years ago)
Author:
schima
Message:

PyrDown?, PyrUpを実装。

Location:
lang/cpluspluscli/OpenCvSharp/trunk
Files:
1 added
13 modified

Legend:

Unmodified
Added
Removed
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp.MachineLearning/CvEM.h

    r30662 r31005  
    5454                /// <summary> 
    5555                /// ���f�[�^�|�C���^�̃o�C�g�T�C�Y�A 
    56                 /// ���Ȃ킿 sizeof(CvStatModel) ������� 
     56                /// ���Ȃ킿 sizeof(CvEM) ������� 
    5757                /// </summary> 
    5858                static property Int32 SizeOf{ 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp.MachineLearning/CvSVM.h

    r30662 r31005  
    6666                /// <summary> 
    6767                /// ���f�[�^�|�C���^�̃o�C�g�T�C�Y�A 
    68                 /// ���Ȃ킿 sizeof(CvStatModel) ������� 
     68                /// ���Ȃ킿 sizeof(CvSVM) ������� 
    6969                /// </summary> 
    7070                static property Int32 SizeOf{ 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp.MachineLearning/OpenCvSharp.MachineLearning.vcproj

    r30662 r31005  
    9393                </Configuration> 
    9494                <Configuration 
    95                         Name="Release|Win32" 
    96                         OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
    97                         IntermediateDirectory="$(ConfigurationName)" 
    98                         ConfigurationType="2" 
    99                         CharacterSet="1" 
    100                         ManagedExtensions="1" 
    101                         WholeProgramOptimization="1" 
    102                         > 
    103                         <Tool 
    104                                 Name="VCPreBuildEventTool" 
    105                         /> 
    106                         <Tool 
    107                                 Name="VCCustomBuildTool" 
    108                         /> 
    109                         <Tool 
    110                                 Name="VCXMLDataGeneratorTool" 
    111                         /> 
    112                         <Tool 
    113                                 Name="VCWebServiceProxyGeneratorTool" 
    114                         /> 
    115                         <Tool 
    116                                 Name="VCMIDLTool" 
    117                         /> 
    118                         <Tool 
    119                                 Name="VCCLCompilerTool" 
    120                                 PreprocessorDefinitions="WIN32;NDEBUG" 
    121                                 RuntimeLibrary="2" 
    122                                 UsePrecompiledHeader="2" 
    123                                 GenerateXMLDocumentationFiles="true" 
    124                                 WarningLevel="3" 
    125                                 DebugInformationFormat="3" 
    126                         /> 
    127                         <Tool 
    128                                 Name="VCManagedResourceCompilerTool" 
    129                         /> 
    130                         <Tool 
    131                                 Name="VCResourceCompilerTool" 
    132                         /> 
    133                         <Tool 
    134                                 Name="VCPreLinkEventTool" 
    135                         /> 
    136                         <Tool 
    137                                 Name="VCLinkerTool" 
    138                                 AdditionalDependencies="cv.lib cxcore.lib cxts.lib highgui.lib ml.lib $(NOINHERIT)" 
    139                                 LinkIncremental="1" 
    140                                 GenerateDebugInformation="true" 
    141                                 TargetMachine="1" 
    142                         /> 
    143                         <Tool 
    144                                 Name="VCALinkTool" 
    145                         /> 
    146                         <Tool 
    147                                 Name="VCManifestTool" 
    148                         /> 
    149                         <Tool 
    150                                 Name="VCXDCMakeTool" 
    151                         /> 
    152                         <Tool 
    153                                 Name="VCBscMakeTool" 
    154                         /> 
    155                         <Tool 
    156                                 Name="VCFxCopTool" 
    157                         /> 
    158                         <Tool 
    159                                 Name="VCAppVerifierTool" 
    160                         /> 
    161                         <Tool 
    162                                 Name="VCPostBuildEventTool" 
    163                         /> 
    164                 </Configuration> 
    165                 <Configuration 
    16695                        Name="Debug|x64" 
    16796                        OutputDirectory="$(SolutionDir)$(PlatformName)\$(ConfigurationName)" 
     
    213142                                AssemblyDebug="1" 
    214143                                TargetMachine="17" 
     144                        /> 
     145                        <Tool 
     146                                Name="VCALinkTool" 
     147                        /> 
     148                        <Tool 
     149                                Name="VCManifestTool" 
     150                        /> 
     151                        <Tool 
     152                                Name="VCXDCMakeTool" 
     153                        /> 
     154                        <Tool 
     155                                Name="VCBscMakeTool" 
     156                        /> 
     157                        <Tool 
     158                                Name="VCFxCopTool" 
     159                        /> 
     160                        <Tool 
     161                                Name="VCAppVerifierTool" 
     162                        /> 
     163                        <Tool 
     164                                Name="VCPostBuildEventTool" 
     165                        /> 
     166                </Configuration> 
     167                <Configuration 
     168                        Name="Release|Win32" 
     169                        OutputDirectory="$(SolutionDir)$(ConfigurationName)" 
     170                        IntermediateDirectory="$(ConfigurationName)" 
     171                        ConfigurationType="2" 
     172                        CharacterSet="1" 
     173                        ManagedExtensions="1" 
     174                        WholeProgramOptimization="1" 
     175                        > 
     176                        <Tool 
     177                                Name="VCPreBuildEventTool" 
     178                        /> 
     179                        <Tool 
     180                                Name="VCCustomBuildTool" 
     181                        /> 
     182                        <Tool 
     183                                Name="VCXMLDataGeneratorTool" 
     184                        /> 
     185                        <Tool 
     186                                Name="VCWebServiceProxyGeneratorTool" 
     187                        /> 
     188                        <Tool 
     189                                Name="VCMIDLTool" 
     190                        /> 
     191                        <Tool 
     192                                Name="VCCLCompilerTool" 
     193                                PreprocessorDefinitions="WIN32;NDEBUG" 
     194                                RuntimeLibrary="2" 
     195                                UsePrecompiledHeader="2" 
     196                                GenerateXMLDocumentationFiles="true" 
     197                                WarningLevel="3" 
     198                                DebugInformationFormat="3" 
     199                        /> 
     200                        <Tool 
     201                                Name="VCManagedResourceCompilerTool" 
     202                        /> 
     203                        <Tool 
     204                                Name="VCResourceCompilerTool" 
     205                        /> 
     206                        <Tool 
     207                                Name="VCPreLinkEventTool" 
     208                        /> 
     209                        <Tool 
     210                                Name="VCLinkerTool" 
     211                                AdditionalDependencies="cv.lib cxcore.lib cxts.lib highgui.lib ml.lib $(NOINHERIT)" 
     212                                LinkIncremental="1" 
     213                                GenerateDebugInformation="true" 
     214                                TargetMachine="1" 
    215215                        /> 
    216216                        <Tool 
     
    352352                                </FileConfiguration> 
    353353                                <FileConfiguration 
    354                                         Name="Release|Win32" 
     354                                        Name="Debug|x64" 
    355355                                        > 
    356356                                        <Tool 
     
    360360                                </FileConfiguration> 
    361361                                <FileConfiguration 
    362                                         Name="Debug|x64" 
     362                                        Name="Release|Win32" 
    363363                                        > 
    364364                                        <Tool 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/AllEnums.h

    r30931 r31005  
    1717#include "CovarMatrixFlag.h" 
    1818#include "CvArrComparison.h" 
     19#include "CvFilter.h" 
    1920#include "CvStatus.h" 
    2021#include "DftFlag.h" 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CV.h

    r30965 r31005  
    490490                static Byte* PtrND( N::CvArr^ arr, ... array<Int32>^ idx ); 
    491491                static void PutText( N::IplImage^ img, String^ text, N::CvPoint org, N::CvFont^ font, N::CvColor color ); 
     492                static void PyrDown( N::CvArr^ src, N::CvArr^ dst ); 
     493                static void PyrDown( N::CvArr^ src, N::CvArr^ dst, N::CvFilter filter ); 
    492494                static void PyrMeanShiftFiltering( N::CvArr^ src, N::CvArr^ dst, Double sp, Double sr ); 
    493495                static void PyrMeanShiftFiltering( N::CvArr^ src, N::CvArr^ dst, Double sp, Double sr, Int32 max_level ); 
     
    495497                static void PyrSegmentation( N::IplImage^ src, N::IplImage^ dst, Int32 level, Double threshold1, Double threshold2 ); 
    496498                static void PyrSegmentation( N::IplImage^ src, N::IplImage^ dst, N::CvMemStorage^ storage, N::CvSeq^ comp, Int32 level, Double threshold1, Double threshold2 ); 
     499                static void PyrUp( N::CvArr^ src, N::CvArr^ dst ); 
     500                static void PyrUp( N::CvArr^ src, N::CvArr^ dst, N::CvFilter filter ); 
    497501                static N::IplImage^ QueryFrame( N::CvCapture^ capture ); 
    498502                static Double QueryHistValue_1D( N::CvHistogram^ hist, Int32 idx0 ); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvArr.cpp

    r30931 r31005  
    20772077        } 
    20782078        #pragma endregion 
     2079        #pragma region PyrDown 
     2080        /// <summary> 
     2081        /// 画像のダウンサンプリングを行う 
     2082        /// </summary> 
     2083        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     2084        void CvArr::PyrDown( N::CvArr^ dst ) 
     2085        { 
     2086                Cv::PyrDown(this, dst); 
     2087        } 
     2088        /// <summary> 
     2089        /// 画像のダウンサンプリングを行う 
     2090        /// </summary> 
     2091        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     2092        /// <param name="filter">畳み込みに使うフィルタ.現在は CV_GAUSSIAN_5x5 のみサポート.</param> 
     2093        void CvArr::PyrDown( N::CvArr^ dst, N::CvFilter filter ) 
     2094        { 
     2095                Cv::PyrDown(this, dst, filter); 
     2096        } 
     2097        #pragma endregion 
    20792098        #pragma region PyrMeanShiftFiltering 
    20802099        /// <summary> 
     
    21142133        { 
    21152134                Cv::PyrMeanShiftFiltering(this, dst, sp, sr, max_level, termcrit); 
     2135        } 
     2136        #pragma endregion 
     2137        #pragma region PyrUp 
     2138        /// <summary> 
     2139        /// 画像のアップサンプリングを行う 
     2140        /// </summary> 
     2141        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     2142        void CvArr::PyrUp( N::CvArr^ dst ) 
     2143        { 
     2144                Cv::PyrUp(this, dst); 
     2145        } 
     2146        /// <summary> 
     2147        /// 画像のアップサンプリングを行う 
     2148        /// </summary> 
     2149        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     2150        /// <param name="filter">畳み込みに使うフィルタ.現在は CV_GAUSSIAN_5x5 のみサポート.</param> 
     2151        void CvArr::PyrUp( N::CvArr^ dst, N::CvFilter filter ) 
     2152        { 
     2153                Cv::PyrUp(this, dst, filter); 
    21162154        } 
    21172155        #pragma endregion 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/CvArr.h

    r30931 r31005  
    353353                virtual Byte* Ptr3D( Int32 idx0, Int32 idx1, Int32 idx2 ); 
    354354                virtual Byte* PtrND( ... array<Int32>^ idx ); 
     355                virtual void PyrDown( N::CvArr^ dst ); 
     356                virtual void PyrDown( N::CvArr^ dst, N::CvFilter filter ); 
    355357                virtual void PyrMeanShiftFiltering( N::CvArr^ dst, Double sp, Double sr ); 
    356358                virtual void PyrMeanShiftFiltering( N::CvArr^ dst, Double sp, Double sr, Int32 max_level ); 
    357359                virtual void PyrMeanShiftFiltering( N::CvArr^ dst, Double sp, Double sr, Int32 max_level, N::CvTermCriteria^ termcrit ); 
     360                virtual void PyrUp( N::CvArr^ dst ); 
     361                virtual void PyrUp( N::CvArr^ dst, N::CvFilter filter ); 
    358362                virtual void RandArr( N::CvRNG^ rng, DistributionType dist_type, N::CvScalar param1, N::CvScalar param2 ); 
    359363                virtual void RandShuffle( void ); 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/Cv_A-F.cpp

    r30965 r31005  
    99 
    1010using namespace System; 
    11 using namespace System::IO; 
    12 using namespace System::Reflection; 
    1311using namespace System::Runtime::InteropServices; 
    1412 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/Cv_G-N.cpp

    r30965 r31005  
    99 
    1010using namespace System; 
    11 using namespace System::IO; 
    12 using namespace System::Reflection; 
    1311using namespace System::Runtime::InteropServices; 
    1412 
    15 /// <summary> 
    16 /// KwsmLab 
    17 /// </summary> 
     13 
    1814namespace KwsmLab { 
    1915namespace OpenCvSharp 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/Cv_Macros.cpp

    r30965 r31005  
    66#include "stdafx.h" 
    77#include "Cv.h" 
     8 
    89 
    910namespace KwsmLab { 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/Cv_O-Z.cpp

    r30965 r31005  
    99 
    1010using namespace System; 
    11 using namespace System::IO; 
    12 using namespace System::Reflection; 
    1311using namespace System::Runtime::InteropServices; 
    1412 
    15 /// <summary> 
    16 /// KwsmLab 
    17 /// </summary> 
     13 
    1814namespace KwsmLab { 
    1915namespace OpenCvSharp 
    2016{ 
    21  
    2217        #pragma region OpenFileStorage 
    2318        /// <summary> 
     
    418413        } 
    419414        #pragma endregion 
     415        #pragma region PyrDown 
     416        /// <summary> 
     417        /// 画像のダウンサンプリングを行う 
     418        /// </summary> 
     419        /// <param name="src">入力画像</param> 
     420        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     421        void Cv::PyrDown( N::CvArr^ src, N::CvArr^ dst ) 
     422        { 
     423                CHECK_NULL(src); 
     424                CHECK_NULL(dst); 
     425                ::cvPyrDown(src->Ptr, dst->Ptr); 
     426        } 
     427        /// <summary> 
     428        /// 画像のダウンサンプリングを行う 
     429        /// </summary> 
     430        /// <param name="src">入力画像</param> 
     431        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     432        /// <param name="filter">畳み込みに使うフィルタ.現在は CV_GAUSSIAN_5x5 のみサポート.</param> 
     433        void Cv::PyrDown( N::CvArr^ src, N::CvArr^ dst, N::CvFilter filter ) 
     434        { 
     435                CHECK_NULL(src); 
     436                CHECK_NULL(dst); 
     437                ::cvPyrDown(src->Ptr, dst->Ptr, static_cast<int>(filter)); 
     438        } 
     439        #pragma endregion 
    420440        #pragma region PyrMeanShiftFiltering 
    421441        /// <summary> 
     
    516536                ::CvSeq* comp_ptr = (comp == nullptr) ? 0 : comp->SeqPtr; 
    517537                ::cvPyrSegmentation(src->ImagePtr, dst->ImagePtr, storage->Ptr, &comp_ptr, level, threshold1, threshold2); 
     538        } 
     539        #pragma endregion 
     540        #pragma region PyrUp 
     541        /// <summary> 
     542        /// 画像のアップサンプリングを行う 
     543        /// </summary> 
     544        /// <param name="src">入力画像</param> 
     545        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     546        void Cv::PyrUp( N::CvArr^ src, N::CvArr^ dst ) 
     547        { 
     548                CHECK_NULL(src); 
     549                CHECK_NULL(dst); 
     550                ::cvPyrUp(src->Ptr, dst->Ptr); 
     551        } 
     552        /// <summary> 
     553        /// 画像のアップサンプリングを行う 
     554        /// </summary> 
     555        /// <param name="src">入力画像</param> 
     556        /// <param name="dst">出力画像.入力画像の1/2の幅と高さ.</param> 
     557        /// <param name="filter">畳み込みに使うフィルタ.現在は CV_GAUSSIAN_5x5 のみサポート.</param> 
     558        void Cv::PyrUp( N::CvArr^ src, N::CvArr^ dst, N::CvFilter filter ) 
     559        { 
     560                CHECK_NULL(src); 
     561                CHECK_NULL(dst); 
     562                ::cvPyrUp(src->Ptr, dst->Ptr, static_cast<int>(filter)); 
    518563        } 
    519564        #pragma endregion 
     
    35223567        } 
    35233568        #pragma endregion  
    3524  
    35253569} 
    35263570} 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/OpenCvSharp.vcproj

    r30965 r31005  
    769769                                </File> 
    770770                                <File 
     771                                        RelativePath=".\CvFilter.h" 
     772                                        > 
     773                                </File> 
     774                                <File 
    771775                                        RelativePath=".\CvStatus.h" 
    772776                                        > 
  • lang/cpluspluscli/OpenCvSharp/trunk/OpenCvSharp/Undef.h

    r30931 r31005  
    99 
    1010#undef RGB 
    11 #undef T 
    1211#undef LoadImage