Tango: Fixed Mem/ImagePreDecimation when changing to/from 720p mode

This commit is contained in:
matlabbe
2016-04-09 12:08:30 -04:00
parent cc9c9d552c
commit 656431a03f
2 changed files with 4 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.introlab.rtabmap"
android:versionCode="4"
android:versionCode="5"
android:versionName="@RTABMAP_VERSION@">
<uses-permission android:name="android.permission.CAMERA" />

View File

@@ -597,6 +597,9 @@ void RTABMapApp::setFullResolution(bool enabled)
{
camera_->setDecimation(fullResolution_?1:2);
}
rtabmap::ParametersMap parameters;
parameters.insert(rtabmap::ParametersPair(rtabmap::Parameters::kMemImagePreDecimation(), std::string(fullResolution_?"2":"1")));
this->post(new rtabmap::ParamEvent(parameters));
}
}