Changes to be committed:
authorProf. Dr. Rudolf Haussmann <rudolf.haussmann@gmx.de>
Wed, 25 Mar 2015 14:45:20 +0000 (15:45 +0100)
committerProf. Dr. Rudolf Haussmann <rudolf.haussmann@gmx.de>
Wed, 25 Mar 2015 14:45:20 +0000 (15:45 +0100)
   (use "git reset HEAD <file>..." to unstage)

modified:   highgui/include/opencv2/highgui/highgui_c.h
modified:   highgui/src/cap_dshow.cpp
modified:   java/generator/gen_java.py

The correction of the orthographic error in the enumeration constant
CAP_PROP_MONOCROME has been undone.

modules/highgui/include/opencv2/highgui/highgui_c.h
modules/highgui/src/cap_dshow.cpp
modules/java/generator/gen_java.py

index a061df6..85a59bb 100644 (file)
@@ -365,7 +365,7 @@ enum
     CV_CAP_PROP_CONVERT_RGB   =16,
     CV_CAP_PROP_WHITE_BALANCE_U =17,
     CV_CAP_PROP_RECTIFICATION =18,
-    CV_CAP_PROP_MONOCHROME    =19,
+    CV_CAP_PROP_MONOCROME     =19,
     CV_CAP_PROP_SHARPNESS     =20,
     CV_CAP_PROP_AUTO_EXPOSURE =21, // exposure control done by camera,
                                    // user can adjust refernce level
index 5d99786..78026b8 100644 (file)
@@ -2246,7 +2246,7 @@ int videoInput::getVideoPropertyFromCV(int cv_property){
         case CV_CAP_PROP_GAMMA:
             return VideoProcAmp_Gamma;
 
-        case CV_CAP_PROP_MONOCHROME:
+        case CV_CAP_PROP_MONOCROME:
             return VideoProcAmp_ColorEnable;
 
         case CV_CAP_PROP_WHITE_BALANCE_U:
@@ -3245,7 +3245,7 @@ double CvCaptureCAM_DShow::getProperty( int property_id )
     case CV_CAP_PROP_SATURATION:
     case CV_CAP_PROP_SHARPNESS:
     case CV_CAP_PROP_GAMMA:
-    case CV_CAP_PROP_MONOCHROME:
+    case CV_CAP_PROP_MONOCROME:
     case CV_CAP_PROP_WHITE_BALANCE_U:
     case CV_CAP_PROP_BACKLIGHT:
     case CV_CAP_PROP_GAIN:
@@ -3349,7 +3349,7 @@ bool CvCaptureCAM_DShow::setProperty( int property_id, double value )
     case CV_CAP_PROP_SATURATION:
     case CV_CAP_PROP_SHARPNESS:
     case CV_CAP_PROP_GAMMA:
-    case CV_CAP_PROP_MONOCHROME:
+    case CV_CAP_PROP_MONOCROME:
     case CV_CAP_PROP_WHITE_BALANCE_U:
     case CV_CAP_PROP_BACKLIGHT:
     case CV_CAP_PROP_GAIN:
index b025dbd..fce172f 100755 (executable)
@@ -73,7 +73,7 @@ const_ignore_list = (
     "CV_CAP_PROP_CONVERT_RGB",
     "CV_CAP_PROP_WHITE_BALANCE_U",
     "CV_CAP_PROP_RECTIFICATION",
-    "CV_CAP_PROP_MONOCHROME",
+    "CV_CAP_PROP_MONOCROME",
     "CV_CAP_PROP_SHARPNESS",
     "CV_CAP_PROP_AUTO_EXPOSURE",
     "CV_CAP_PROP_GAMMA",