mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 09:30:25 +08:00
fixed some warnings in Windows
fixed Transform::getNorm() git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1436 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -319,7 +319,7 @@ void GraphViewer::updateGraph(const std::map<int, Transform> & poses,
|
||||
{
|
||||
for (int j = 0; j < map8S.cols; ++j)
|
||||
{
|
||||
char gray = map8S.at<char>(i, j);
|
||||
unsigned char gray = map8S.at<unsigned char>(i, j);
|
||||
if(gray == -1)
|
||||
{
|
||||
gray = 89;
|
||||
@@ -332,7 +332,7 @@ void GraphViewer::updateGraph(const std::map<int, Transform> & poses,
|
||||
{
|
||||
gray = 0;
|
||||
}
|
||||
map8U.at<char>(i, j) = gray;
|
||||
map8U.at<unsigned char>(i, j) = gray;
|
||||
}
|
||||
}
|
||||
QImage image = uCvMat2QImage(map8U, false);
|
||||
|
||||
Reference in New Issue
Block a user