]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
changed according to OpenCV_changes.txt in the new Ch wrapper package
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Tue, 5 Jul 2005 16:19:24 +0000 (16:19 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Tue, 5 Jul 2005 16:19:24 +0000 (16:19 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@254 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/include/opencv/cv.h
opencv/include/opencv/cvaux.h
opencv/include/opencv/cxcore.h
opencv/include/opencv/highgui.h
opencv/samples/c/facedetect.c

index 2fb5f8b5c0d4bd70c6611fa56665b1a5b612a3b1..1dc9c9fb93c44e981258bc9a37813056feeab3c9 100644 (file)
@@ -49,9 +49,9 @@
 
 #ifndef SKIP_INCLUDES
   #if defined(_CH_)
-    #pragma package <opencv>
-  #include <chdl.h>
-  LOAD_CHDL_CODE(cv,Cv)
+    #pragma package <chopencv>
+    #include <chdl.h>
+    LOAD_CHDL(cv)
   #endif
 #endif
 
index 0eb3a0cb90d6ec3555dc9acd225efea307c382af..21d3147e764a6495724049a7d66dde020a2508ec 100644 (file)
@@ -142,7 +142,7 @@ typedef struct CvEHMM
 }
 CvEHMM;
 
-CVAPI(int)  icvCreate1DHMM( CvEHMM** this_hmm,
+/*CVAPI(int)  icvCreate1DHMM( CvEHMM** this_hmm,
                                    int state_number, int* num_mix, int obs_size );
 
 CVAPI(int)  icvRelease1DHMM( CvEHMM** phmm );
@@ -161,7 +161,7 @@ CVAPI(int)  icvEstimate1DTransProb( Cv1DObsInfo** obs_info_array,
 
 CVAPI(float)  icvViterbi( Cv1DObsInfo* obs_info, CvEHMM* hmm);
 
-CVAPI(int)  icv1DMixSegmL2( CvImgObsInfo** obs_info_array, int num_img, CvEHMM* hmm );
+CVAPI(int)  icv1DMixSegmL2( CvImgObsInfo** obs_info_array, int num_img, CvEHMM* hmm );*/
 
 /*********************************** Embedded HMMs *************************************/
 
@@ -305,16 +305,7 @@ typedef enum CvGraphWeightType
 /*****************************************************************************************/
 
 
-///////////////////////////////////////////////////////////
-// Triangulation
-CVAPI(void) cvDecompPoly( CvContour* cont, CvSubdiv2D** subdiv, CvMemStorage* storage );
-///////////////////////////////////////////////////////////
-
 /*******************************Stereo correspondence*************************************/
-CVAPI(void) icvDrawFilledSegments( CvSeq* seq, IplImage* img, int part );
-
-CVAPI(CvSeq*) cvExtractSingleEdges( IplImage* image, //bw image
-                      CvMemStorage* storage );
 
 typedef struct CvCliqueFinder
 {   
@@ -348,13 +339,12 @@ typedef struct CvCliqueFinder
 #define CLIQUE_FOUND 1
 #define CLIQUE_END   0
 
-CVAPI(void) cvStartFindCliques( CvGraph* graph, CvCliqueFinder* finder, int reverse, 
+/*CVAPI(void) cvStartFindCliques( CvGraph* graph, CvCliqueFinder* finder, int reverse, 
                                    int weighted CV_DEFAULT(0),  int weighted_edges CV_DEFAULT(0));
 CVAPI(int) cvFindNextMaximalClique( CvCliqueFinder* finder, int* clock_rest CV_DEFAULT(0) ); 
 CVAPI(void) cvEndFindCliques( CvCliqueFinder* finder );
 
-CVAPI(void) cvBronKerbosch( CvGraph* graph );                 
-
+CVAPI(void) cvBronKerbosch( CvGraph* graph );*/
 
 
 /*F///////////////////////////////////////////////////////////////////////////////////////
@@ -388,10 +378,10 @@ CVAPI(void) cvBronKerbosch( CvGraph* graph );
 //      weight of subgraph.
 //    Notes:
 //F*/
-CVAPI(float) cvSubgraphWeight( CvGraph *graph, CvSeq *subgraph,
+/*CVAPI(float) cvSubgraphWeight( CvGraph *graph, CvSeq *subgraph,
                                   CvGraphWeightType weight_type CV_DEFAULT(CV_NOT_WEIGHTED),
                                   CvVect32f weight_vtx CV_DEFAULT(0),
-                                  CvMatr32f weight_edge CV_DEFAULT(0) );
+                                  CvMatr32f weight_edge CV_DEFAULT(0) );*/
 
 
 /*F///////////////////////////////////////////////////////////////////////////////////////
@@ -439,7 +429,7 @@ CVAPI(float) cvSubgraphWeight( CvGraph *graph, CvSeq *subgraph,
 //      in cases of CV_WEIGHTED_EDGE and CV_WEIGHTED_ALL weights should be nonnegative.
 //      start_clique has a priority over subgraph_of_ban.
 //F*/
-CVAPI(CvSeq*) cvFindCliqueEx( CvGraph *graph, CvMemStorage *storage,
+/*CVAPI(CvSeq*) cvFindCliqueEx( CvGraph *graph, CvMemStorage *storage,
                                  int is_complementary CV_DEFAULT(0),
                                  CvGraphWeightType weight_type CV_DEFAULT(CV_NOT_WEIGHTED),
                                  CvVect32f weight_vtx CV_DEFAULT(0),
@@ -448,7 +438,7 @@ CVAPI(CvSeq*) cvFindCliqueEx( CvGraph *graph, CvMemStorage *storage,
                                  CvSeq *subgraph_of_ban CV_DEFAULT(0),
                                  float *clique_weight_ptr CV_DEFAULT(0),
                                  int num_generations CV_DEFAULT(3),
-                                 int quality CV_DEFAULT(2) );
+                                 int quality CV_DEFAULT(2) );*/
 
 
 #define CV_UNDEF_SC_PARAM         12345 //default value of parameters
@@ -635,7 +625,7 @@ CVAPI(int) icvComputeStereoLineCoeffs(   CvPoint3D64d pointA,
                                     double gamma,
                                     CvStereoLineCoeff*    coeffs);
 
-CVAPI(int) icvComputeFundMatrEpipoles ( CvMatr64d camMatr1, 
+/*CVAPI(int) icvComputeFundMatrEpipoles ( CvMatr64d camMatr1, 
                                     CvMatr64d     rotMatr1, 
                                     CvVect64d     transVect1,
                                     CvMatr64d     camMatr2,
@@ -643,10 +633,7 @@ CVAPI(int) icvComputeFundMatrEpipoles ( CvMatr64d camMatr1,
                                     CvVect64d     transVect2,
                                     CvPoint2D64d* epipole1,
                                     CvPoint2D64d* epipole2,
-                                    CvMatr64d     fundMatr);
-
-CVAPI(void)
-icvSolveCubic(CvMat* coeffs,CvMat* result);
+                                    CvMatr64d     fundMatr);*/
 
 CVAPI(int) icvGetAngleLine( CvPoint2D64d startPoint, CvSize imageSize,CvPoint2D64d *point1,CvPoint2D64d *point2);
 
@@ -654,12 +641,12 @@ CVAPI(void) icvGetCoefForPiece(   CvPoint2D64d p_start,CvPoint2D64d p_end,
                         double *a,double *b,double *c,
                         int* result);
 
-CVAPI(void) icvGetCommonArea( CvSize imageSize,
+/*CVAPI(void) icvGetCommonArea( CvSize imageSize,
                     CvPoint2D64d epipole1,CvPoint2D64d epipole2,
                     CvMatr64d fundMatr,
                     CvVect64d coeff11,CvVect64d coeff12,
                     CvVect64d coeff21,CvVect64d coeff22,
-                    int* result);
+                    int* result);*/
 
 CVAPI(void) icvComputeeInfiniteProject1(CvMatr64d    rotMatr,
                                      CvMatr64d    camMatr1,
@@ -740,7 +727,7 @@ CVAPI(IplImage*) icvCreateIsometricImage( IplImage* src, IplImage* dst,
 
 CVAPI(void) cvDeInterlace( const CvArr* frame, CvArr* fieldEven, CvArr* fieldOdd );
 
-CVAPI(int) icvSelectBestRt(           int           numImages,
+/*CVAPI(int) icvSelectBestRt(           int           numImages,
                                     int*          numPoints,
                                     CvSize        imageSize,
                                     CvPoint2D32f* imagePoints1,
@@ -759,7 +746,7 @@ CVAPI(int) icvSelectBestRt(           int           numImages,
 
                                     CvMatr32f     bestRotMatr,
                                     CvVect32f     bestTransVect
-                                    );
+                                    );*/
 
 /****************************************************************************************\
 *                                   Contour Morphing                                     *
@@ -1045,9 +1032,9 @@ CVAPI(int) cvReleaseLinearContorModelStorage(CvGraph** Graph);
 CVAPI(void) cvInitPerspectiveTransform( CvSize size, const CvPoint2D32f vertex[4], double matrix[3][3],
                                               CvArr* rectMap );
 
-CVAPI(void) cvInitStereoRectification( CvStereoCamera* params,
+/*CVAPI(void) cvInitStereoRectification( CvStereoCamera* params,
                                              CvArr* rectMap1, CvArr* rectMap2,
-                                             int do_undistortion );
+                                             int do_undistortion );*/
 
 /*************************** View Morphing Functions ************************/
 
@@ -1202,7 +1189,7 @@ CVAPI(int)  cvChangeDetection( IplImage*  prev_frame,
 #define  CV_BGFG_FGD_ALPHA_1         0.1f
 
 /* stat model update parameter
-/* 0.002f ~ 1K frame(~45sec), 0.005 ~ 18sec (if 25fps and absolutely static BG) */
+   0.002f ~ 1K frame(~45sec), 0.005 ~ 18sec (if 25fps and absolutely static BG) */
 #define  CV_BGFG_FGD_ALPHA_2         0.005f
 
 /* start value for alpha parameter (to fast initiate statistic model) */
index 0e2d73023fa2ff9afd6a6e61fc767804ab36847d..0c14a62af9fdc8d81aef41fdeb04a43d896f87e7 100644 (file)
 #endif
 
 #ifndef SKIP_INCLUDES
-  #if defined(_CH_)
-    #pragma package <opencv>
-    #include <chdl.h>
-    LOAD_CHDL_CODE(cv,Cv)
-  #endif
-
   #if defined HAVE_IPL && !defined __IPL_H__
     #ifndef _INC_WINDOWS
         #define CV_PRETEND_WINDOWS
index 0040480abae75d65ecbcb3e9c82530a2082920ff..78d7632e1e8571ff4e47f158e42cb23ae8e9e268 100644 (file)
 #endif // SKIP_INCLUDES
 
 #if defined(_CH_)
-  #pragma package <opencv>
+  #pragma package <chopencv>
   #include <chdl.h>
-  LOAD_CHDL_CODE(highgui,Highgui)
+  LOAD_CHDL(highgui)
 #endif
 
 #ifdef __cplusplus
@@ -144,7 +144,7 @@ typedef void (CV_CDECL *CvTrackbarCallback)(int pos);
 
 /* create trackbar and display it on top of given window, set callback */
 CVAPI(int) cvCreateTrackbar( const char* trackbar_name, const char* window_name,
-                                  int* value, int count, CvTrackbarCallback on_change );
+                             int* value, int count, CvTrackbarCallback on_change );
 
 /* retrieve or set trackbar position */
 CVAPI(int) cvGetTrackbarPos( const char* trackbar_name, const char* window_name );
index b645b267013e8db5565f01134656015a6f602d58..5499bf8e9b064ea30b74065165dfb5357a5203fd 100644 (file)
@@ -1,8 +1,3 @@
-#ifdef _CH_
-#define WIN32
-#error "The file needs cvaux, which is not wrapped yet. Sorry"
-#endif
-
 #ifndef _EiC
 #include "cv.h"
 #include "highgui.h"
@@ -104,6 +99,32 @@ int main( int argc, char** argv )
             cvWaitKey(0);
             cvReleaseImage( &image );
         }
+        else
+        {
+            /* assume it is a text file containing the
+               list of the image filenames to be processed - one per line */
+            FILE* f = fopen( filename, "rt" );
+            if( f )
+            {
+                char buf[1000+1];
+                while( fgets( buf, 1000, f ) )
+                {
+                    int len = (int)strlen(buf);
+                    while( len > 0 && isspace(buf[len-1]) )
+                        len--;
+                    buf[len] = '\0';
+                    image = cvLoadImage( buf, 1 );
+                    if( image )
+                    {
+                        detect_and_draw( image );
+                        cvWaitKey(0);
+                        cvReleaseImage( &image );
+                    }
+                }
+                fclose(f);
+            }
+        }
+
     }
     
     cvDestroyWindow("result");