[openrtm-commit:02496] r201 - in trunk/ImageProcessing/opencv/components/ImageSubstraction: include/ImageSubstraction src

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 3月 7日 (火) 11:40:05 JST


Author: miyamoto
Date: 2017-03-07 11:40:05 +0900 (Tue, 07 Mar 2017)
New Revision: 201

Modified:
   trunk/ImageProcessing/opencv/components/ImageSubstraction/include/ImageSubstraction/ImageSubstraction.h
   trunk/ImageProcessing/opencv/components/ImageSubstraction/src/ImageSubstraction.cpp
Log:
[compat,bugfix] fixed bug.

Modified: trunk/ImageProcessing/opencv/components/ImageSubstraction/include/ImageSubstraction/ImageSubstraction.h
===================================================================
--- trunk/ImageProcessing/opencv/components/ImageSubstraction/include/ImageSubstraction/ImageSubstraction.h	2017-03-07 02:30:56 UTC (rev 200)
+++ trunk/ImageProcessing/opencv/components/ImageSubstraction/include/ImageSubstraction/ImageSubstraction.h	2017-03-07 02:40:05 UTC (rev 201)
@@ -323,10 +323,10 @@
 	 cv::Mat resultImage;
 	 cv::Mat outputImage;
 
-	 int ImageSubstraction_count = 0;
-	 int	mode = DYNAMIC_MODE;
-	 int g_temp_w = 0;
-	 int g_temp_h = 0;
+	 int ImageSubstraction_count;
+	 int	mode;
+	 int g_temp_w;
+	 int g_temp_h;
 
 	 static const char* mode_str[2];
   // <rtc-template block="private_attribute">

Modified: trunk/ImageProcessing/opencv/components/ImageSubstraction/src/ImageSubstraction.cpp
===================================================================
--- trunk/ImageProcessing/opencv/components/ImageSubstraction/src/ImageSubstraction.cpp	2017-03-07 02:30:56 UTC (rev 200)
+++ trunk/ImageProcessing/opencv/components/ImageSubstraction/src/ImageSubstraction.cpp	2017-03-07 02:40:05 UTC (rev 201)
@@ -136,7 +136,11 @@
     m_img_captureOut("capture_image", m_img_capture),
     m_img_resultOut("result_image", m_img_result),
     m_img_backOut("back_image", m_img_back),
-    m_img_thresholdOut("threshold_image", m_img_threshold)
+    m_img_thresholdOut("threshold_image", m_img_threshold),
+	ImageSubstraction_count(0),
+	mode(DYNAMIC_MODE),
+	g_temp_w(0),
+	g_temp_h(0)
 
     // </rtc-template>
 {



openrtm-commit メーリングリストの案内