[openrtm-commit:03198] r218 - trunk/ImageProcessing/opencv/components/Sepia/src
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 2月 28日 (水) 09:05:49 JST
Author: miyamoto
Date: 2018-02-28 09:05:49 +0900 (Wed, 28 Feb 2018)
New Revision: 218
Modified:
trunk/ImageProcessing/opencv/components/Sepia/src/Sepia.cpp
Log:
[compat] fixed bug
Modified: trunk/ImageProcessing/opencv/components/Sepia/src/Sepia.cpp
===================================================================
--- trunk/ImageProcessing/opencv/components/Sepia/src/Sepia.cpp 2018-01-18 09:42:19 UTC (rev 217)
+++ trunk/ImageProcessing/opencv/components/Sepia/src/Sepia.cpp 2018-02-28 00:05:49 UTC (rev 218)
@@ -160,10 +160,11 @@
/* HSV画像をH、S、V画像に分ける */
std::vector<cv::Mat> tmp;
- tmp.push_back(m_hueImage);
- tmp.push_back(m_saturationImage);
- tmp.push_back(m_valueImage);
+
cv::split(m_hsvImage, tmp);
+ m_hueImage = tmp[0];
+ m_saturationImage = tmp[1];
+ m_valueImage = tmp[2];
/* HとSの値を変更する */
m_hueImage.setTo(cv::Scalar(m_nHue));
@@ -176,6 +177,8 @@
tmp.push_back(m_hueImage);
tmp.push_back(m_saturationImage);
tmp.push_back(m_valueImage);
+
+
cv::merge(tmp, m_mergeImage);
/* HSVからBGRに変換する */
More information about the openrtm-commit
mailing list