Source images: fixed starting position to 1 (not 0) when selecting a folder, removed all asserts on valid caemra model in SensorData

This commit is contained in:
matlabbe
2015-07-18 16:02:11 -04:00
parent fb68b3f67d
commit 6bbde72840
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -248,10 +248,6 @@ SensorData::SensorData(
depth.type() == CV_16UC1); // Depth in millimetre depth.type() == CV_16UC1); // Depth in millimetre
_depthOrRightRaw = depth; _depthOrRightRaw = depth;
} }
for(unsigned int i=0; i<cameraModels.size(); ++i)
{
UASSERT(cameraModels[i].isValid());
}
if(userData.type() == CV_8UC1) // Bytes if(userData.type() == CV_8UC1) // Bytes
{ {
@@ -311,11 +307,6 @@ SensorData::SensorData(
_laserScanCompressed = laserScan; _laserScanCompressed = laserScan;
} }
for(unsigned int i=0; i<cameraModels.size(); ++i)
{
UASSERT(cameraModels[i].isValid());
}
if(userData.type() == CV_8UC1) // Bytes if(userData.type() == CV_8UC1) // Bytes
{ {
_userDataCompressed = userData; // assume compressed _userDataCompressed = userData; // assume compressed
+1 -1
View File
@@ -2233,7 +2233,7 @@ void PreferencesDialog::selectSourceImagesPath()
if(!path.isEmpty()) if(!path.isEmpty())
{ {
_ui->source_images_lineEdit_path->setText(path); _ui->source_images_lineEdit_path->setText(path);
_ui->source_images_spinBox_startPos->setValue(0); _ui->source_images_spinBox_startPos->setValue(1);
} }
} }