mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 16:57:46 +08:00
removed image conversion not used
git-svn-id: http://rtabmap.googlecode.com/svn/trunk/rtabmap@1659 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
@@ -180,17 +180,6 @@ Transform OdometryBOW::computeTransform(const SensorData & data, int * quality)
|
|||||||
UTimer timer;
|
UTimer timer;
|
||||||
Transform output;
|
Transform output;
|
||||||
|
|
||||||
cv::Mat imageMono;
|
|
||||||
// convert to grayscale
|
|
||||||
if(data.image().channels() > 1)
|
|
||||||
{
|
|
||||||
cv::cvtColor(data.image(), imageMono, cv::COLOR_BGR2GRAY);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
imageMono = data.image();
|
|
||||||
}
|
|
||||||
|
|
||||||
int inliers = 0;
|
int inliers = 0;
|
||||||
int correspondences = 0;
|
int correspondences = 0;
|
||||||
int nFeatures = 0;
|
int nFeatures = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user