[openrtm-commit:01384] r139 - branches/newCMakeForVC2010/ImageProcessing/opencv/components/BackGroundSubtractionSimple/src
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 3月 19日 (水) 16:11:27 JST
Author: kawauchi
Date: 2014-03-19 16:11:27 +0900 (Wed, 19 Mar 2014)
New Revision: 139
Modified:
branches/newCMakeForVC2010/ImageProcessing/opencv/components/BackGroundSubtractionSimple/src/BackGroundSubtractionSimple.cpp
Log:
BackGroundSubtractionSimple : Resolved warning message. refs #2704
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/BackGroundSubtractionSimple/src/BackGroundSubtractionSimple.cpp
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/BackGroundSubtractionSimple/src/BackGroundSubtractionSimple.cpp 2014-03-19 07:02:46 UTC (rev 138)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/BackGroundSubtractionSimple/src/BackGroundSubtractionSimple.cpp 2014-03-19 07:11:27 UTC (rev 139)
@@ -44,9 +44,9 @@
// </rtc-template>
std::string differenceMethod[3] = {
- "RGB", //RGBの成分ごとに評価
- "CIE L*a*b*", //CIE L*a*b* で距離を評価
- "gray scale" //グレースケールで評価
+ "RGB",
+ "CIE L*a*b*",
+ "gray scale"
};
std::string noiseMethod[3] = {
@@ -238,9 +238,9 @@
cvMerge( m_resultImage, m_resultImage, m_resultImage, NULL, m_outputImage );
/* 画像データのサイズ取得 */
- double len1 = (m_currentImage->nChannels * m_currentImage->width * m_currentImage->height);
- double len2 = (m_outputImage->nChannels * m_outputImage->width * m_outputImage->height);
- double len3 = (m_backgroundImage->nChannels * m_backgroundImage->width * m_backgroundImage->height);
+ int len1 = (m_currentImage->nChannels * m_currentImage->width * m_currentImage->height);
+ int len2 = (m_outputImage->nChannels * m_outputImage->width * m_outputImage->height);
+ int len3 = (m_backgroundImage->nChannels * m_backgroundImage->width * m_backgroundImage->height);
m_img_curr.pixels.length(len1);
m_img_resu.pixels.length(len2);
More information about the openrtm-commit
mailing list