Modifies the scale factor of a point cloud 3D model (type "3D") More...
#include "ros/ros.h"
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <sstream>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include "../MetaFile.h"
#include "../ObjectModel.h"
#include "DUtils.h"
#include "DUtilsCV.h"
#include "DVision.h"
Go to the source code of this file.
Typedefs | |
typedef DVision::PMVS::PLYFile | PLYFile |
typedef DVision::PMVS::PLYFile::PLYPoint | PLYPoint |
typedef DVision::SurfSet | SurfSet |
Functions | |
int | main (int argc, char **argv) |
void | updatePointCloud (std::vector< PLYPoint > &plypoints, float s) |
Modifies the scale factor of a point cloud 3D model (type "3D")
Changes the scale factor of a point cloud 3D model (type "3D") by modifying all the ply files and the scale factor of the meta.xml file. The scale factor in the meta file is updated so that the final value is the scale factor to apply to the output of Bundler+PMVS in order to build the same model again.
This file is part of the RoboEarth ROS WP1 package.
It file was originally created for RoboEarth. The research leading to these results has received funding from the European Union Seventh Framework Programme FP7/2007-2013 under grant agreement no248942 RoboEarth.
Copyright (C) 2010 by Dorian Galvez-Lopez, University of Zaragoza
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Definition in file changeScaleFactor.cpp.
typedef DVision::PMVS::PLYFile PLYFile |
Usage: changeScaleFactor <model dir>=""> <relative scale="" factor>="">
model dir: directory where the model is stored relative scale factor: the scale factor to apply to the current scale factor of the model
Definition at line 64 of file changeScaleFactor.cpp.
Definition at line 65 of file changeScaleFactor.cpp.
typedef DVision::SurfSet SurfSet |
Definition at line 66 of file changeScaleFactor.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 82 of file changeScaleFactor.cpp.
void updatePointCloud | ( | std::vector< PLYPoint > & | plypoints, |
float | s | ||
) |
Multiplies the coordinates of all the given points by s
plypoints | |
s |
Definition at line 153 of file changeScaleFactor.cpp.