Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #ifndef PCL_SURFACE_BILATERAL_UPSAMPLING_H_
00042 #define PCL_SURFACE_BILATERAL_UPSAMPLING_H_
00043
00044 #include <pcl/surface/processing.h>
00045
00046 namespace pcl
00047 {
00048
00062 template <typename PointInT, typename PointOutT>
00063 class BilateralUpsampling: public CloudSurfaceProcessing<PointInT, PointOutT>
00064 {
00065 public:
00066 using PCLBase<PointInT>::input_;
00067 using PCLBase<PointInT>::indices_;
00068 using PCLBase<PointInT>::initCompute;
00069 using PCLBase<PointInT>::deinitCompute;
00070 using CloudSurfaceProcessing<PointInT, PointOutT>::process;
00071
00072 typedef pcl::PointCloud<PointOutT> PointCloudOut;
00073
00074 Eigen::Matrix3f KinectVGAProjectionMatrix, KinectSXGAProjectionMatrix;
00075
00077 BilateralUpsampling ()
00078 : KinectVGAProjectionMatrix ()
00079 , KinectSXGAProjectionMatrix ()
00080 , window_size_ (5)
00081 , sigma_color_ (15.0f)
00082 , sigma_depth_ (0.5f)
00083 , projection_matrix_ ()
00084 , unprojection_matrix_ ()
00085 {
00086 KinectVGAProjectionMatrix << 525.0f, 0.0f, 320.0f,
00087 0.0f, 525.0f, 240.0f,
00088 0.0f, 0.0f, 1.0f;
00089 KinectSXGAProjectionMatrix << 1050.0f, 0.0f, 640.0f,
00090 0.0f, 1050.0f, 480.0f,
00091 0.0f, 0.0f, 1.0f;
00092 };
00093
00097 inline void
00098 setWindowSize (int window_size) { window_size_ = window_size; }
00099
00101 inline int
00102 getWindowSize () const { return (window_size_); }
00103
00107 inline void
00108 setSigmaColor (const float &sigma_color) { sigma_color_ = sigma_color; }
00109
00111 inline float
00112 getSigmaColor () const { return (sigma_color_); }
00113
00117 inline void
00118 setSigmaDepth (const float &sigma_depth) { sigma_depth_ = sigma_depth; }
00119
00121 inline float
00122 getSigmaDepth () const { return (sigma_depth_); }
00123
00129 inline void
00130 setProjectionMatrix (const Eigen::Matrix3f &projection_matrix) { projection_matrix_ = projection_matrix; }
00131
00133 inline Eigen::Matrix3f
00134 getProjectionMatrix () const { return (projection_matrix_); }
00135
00138 void
00139 process (pcl::PointCloud<PointOutT> &output);
00140
00141 protected:
00142 void
00143 performProcessing (pcl::PointCloud<PointOutT> &output);
00144
00145 private:
00146 int window_size_;
00147 float sigma_color_, sigma_depth_;
00148 Eigen::Matrix3f projection_matrix_, unprojection_matrix_;
00149
00150 public:
00151 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
00152 };
00153 }
00154
00155 #endif