Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Public Attributes | Friends
jafar::model3d::Image3DTemplate< PointType > Class Template Reference

This template class is the base for all Image3D class. More...


Detailed Description

template<class PointType>
class jafar::model3d::Image3DTemplate< PointType >

This template class is the base for all Image3D class.

it takes as parameter the class of the points.

Definition at line 51 of file Image3DTemplate.hpp.

#include <Image3DTemplate.hpp>

List of all members.

Public Types

enum  ROBOT_TYPE {
  NIL_ROBOT, ROBOT_ADAM, ROBOT_HILARE, ROBOT_HILARE2,
  ROBOT_LAMA, ROBOT_EVE, ROBOT_DALA, ROBOT_DILIGENT,
  ROBOT_INCONNU
}
enum  CAPTEUR_TYPE {
  NIL_CAPTEUR, CAPTEUR_LASER1, CAPTEUR_LASER2, CAPTEUR_STEREO,
  CAPTEUR_STEREO_GEROMS94, CAPTEUR_LASER_SIMULATION, CAPTEUR_STEREO_SIMULATION
}
enum  REPERE_TYPE { NIL_REPERE, REPERE_CAPTEUR, REPERE_AUTRE }
enum  COORDINATES_TYPE { NIL_COORDONNEES, COORDONNEES_CARTESIENNES, COORDONNEES_CYLINDRIQUES, COORDONNEES_SPHERIQUES }

Public Member Functions

PointType * operator() (int i, int j)
 by this member : we can access the points of the image as (i,j) i : index of lines j : index of columns
void initialize (int nWidth_, int nHeight_)
 Sets the width and the height of the image and Reserve the memory for the points.
void clear ()
 set the width and the height of the image to ZERO and release the memory of the points
void info ()
 print to the standard output a discription of the data members.
void readBrutData (int nWidth_, char *xFile, char *yFiel, char *zFile)
void minMax ()
 Calculates the min and max of each coordinate X,Y,and Z of the points.
void minMaxFilteredPoints ()
void lowPassfilter (double maxX_)
 Low pass filter.
void dropOuterPoints (double x_min, double x_max, double y_min, double y_max, double z_min, double z_max)
void dropOuterPoints (double rho_min, double rho_max)
void saveToFile (char *fileName)
void readFromFile (char *fileName)

Public Attributes

std::vector< PointType > m_vPoints
 the array of points
std::vector< PointType > m_vFilteredPoints
 array of filtered Good points
int m_nNumberOfGoodPoints
 number of GOOD points
int m_nWidth
 Width of the image : number of columns.
int m_nHeight
 Height of the image : number of lines.
double minX
 min X
double minY
 min Y
double minZ
 min Z
double maxX
 max X
double maxY
 max Y
double maxZ
 max Z
double fminX
 filtered min X
double fminY
 filtered min Y
double fminZ
 filtered min Z
double fmaxX
 filtered max X
double fmaxY
 filtered max Y
double fmaxZ
 filtered max Z
ROBOT_TYPE robot_type
CAPTEUR_TYPE capteur_type
REPERE_TYPE repere_type
COORDINATES_TYPE coordinates_type

Friends

std::ostream & operator<< (std::ostream &os, const Image3DTemplate< PointType > &im3d)
 implements << operator
std::istream & operator>> (std::istream &is, Image3DTemplate< PointType > &im3d)
 implements >> operator

Member Function Documentation

template<class PointType >
void jafar::model3d::Image3DTemplate< PointType >::lowPassfilter ( double  maxX_)

Low pass filter.

Definition at line 408 of file Image3DTemplate.hpp.

template<class PointType >
void jafar::model3d::Image3DTemplate< PointType >::minMax ( )

Calculates the min and max of each coordinate X,Y,and Z of the points.

The results are saved in the corresponding data members.

Definition at line 327 of file Image3DTemplate.hpp.

template<class PointType>
PointType* jafar::model3d::Image3DTemplate< PointType >::operator() ( int  i,
int  j 
) [inline]

by this member : we can access the points of the image as (i,j) i : index of lines j : index of columns

Note:
There is no test on the values of i and j so it is your responsability to ensure that they are within the good ranges.

Definition at line 99 of file Image3DTemplate.hpp.

References jafar::model3d::Image3DTemplate< PointType >::m_nWidth, and jafar::model3d::Image3DTemplate< PointType >::m_vPoints.


Friends And Related Function Documentation

template<class PointType>
std::ostream& operator<< ( std::ostream &  os,
const Image3DTemplate< PointType > &  im3d 
) [friend]

implements << operator

Note:
It is a template function : see the empty <> in the code
template<class PointType>
std::istream& operator>> ( std::istream &  is,
Image3DTemplate< PointType > &  im3d 
) [friend]

implements >> operator

Note:
It is a template function : see the empty <> in the code

Member Data Documentation

template<class PointType>
int jafar::model3d::Image3DTemplate< PointType >::m_nHeight

Height of the image : number of lines.

Definition at line 190 of file Image3DTemplate.hpp.

template<class PointType>
int jafar::model3d::Image3DTemplate< PointType >::m_nNumberOfGoodPoints

number of GOOD points

Definition at line 179 of file Image3DTemplate.hpp.

template<class PointType>
int jafar::model3d::Image3DTemplate< PointType >::m_nWidth

Width of the image : number of columns.

Note:
the number of points in the 'm_vPoints' data member is m_nWidth*m_nHeight

Definition at line 186 of file Image3DTemplate.hpp.

Referenced by jafar::model3d::Image3DTemplate< PointType >::operator()().

template<class PointType>
std::vector<PointType> jafar::model3d::Image3DTemplate< PointType >::m_vFilteredPoints

array of filtered Good points

Definition at line 174 of file Image3DTemplate.hpp.

template<class PointType>
std::vector<PointType> jafar::model3d::Image3DTemplate< PointType >::m_vPoints

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:42 for Jafar by doxygen 1.7.6.1
LAAS-CNRS