Retrieves information from models. 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 | |
void | calculatePointCloudDimensions (const std::vector< PLYPoint > &plypoints, float &dx, float &dy, float &dz) |
double | getMinHessian (const SurfSet &surf) |
int | main (int argc, char **argv) |
Retrieves information from models.
Reads model files and prints its information in the screen
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 getModelInfo.cpp.
typedef DVision::PMVS::PLYFile PLYFile |
Usage: getModelInfo <model dir>="">
model dir: directory where the model is stored
Definition at line 58 of file getModelInfo.cpp.
Definition at line 59 of file getModelInfo.cpp.
typedef DVision::SurfSet SurfSet |
Definition at line 60 of file getModelInfo.cpp.
void calculatePointCloudDimensions | ( | const std::vector< PLYPoint > & | plypoints, |
float & | dx, | ||
float & | dy, | ||
float & | dz | ||
) |
Calculates the dimensions in the object axes
plypoints | dense point cloud of the model |
dx | |
dy | |
dz | (out) dimensions |
Definition at line 190 of file getModelInfo.cpp.
double getMinHessian | ( | const SurfSet & | surf | ) |
Returns the minimum value of the hessian of the given keypoints
surf | keypoints |
Definition at line 175 of file getModelInfo.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 85 of file getModelInfo.cpp.