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 typedef boost::shared_ptr<BilateralUpsampling<PointInT, PointOutT> > Ptr;
00067 typedef boost::shared_ptr<const BilateralUpsampling<PointInT, PointOutT> > ConstPtr;
00068
00069 using PCLBase<PointInT>::input_;
00070 using PCLBase<PointInT>::indices_;
00071 using PCLBase<PointInT>::initCompute;
00072 using PCLBase<PointInT>::deinitCompute;
00073 using CloudSurfaceProcessing<PointInT, PointOutT>::process;
00074
00075 typedef pcl::PointCloud<PointOutT> PointCloudOut;
00076
00077 Eigen::Matrix3f KinectVGAProjectionMatrix, KinectSXGAProjectionMatrix;
00078
00080 BilateralUpsampling ()
00081 : KinectVGAProjectionMatrix ()
00082 , KinectSXGAProjectionMatrix ()
00083 , window_size_ (5)
00084 , sigma_color_ (15.0f)
00085 , sigma_depth_ (0.5f)
00086 , projection_matrix_ ()
00087 , unprojection_matrix_ ()
00088 {
00089 KinectVGAProjectionMatrix << 525.0f, 0.0f, 320.0f,
00090 0.0f, 525.0f, 240.0f,
00091 0.0f, 0.0f, 1.0f;
00092 KinectSXGAProjectionMatrix << 1050.0f, 0.0f, 640.0f,
00093 0.0f, 1050.0f, 480.0f,
00094 0.0f, 0.0f, 1.0f;
00095 };
00096
00100 inline void
00101 setWindowSize (int window_size) { window_size_ = window_size; }
00102
00104 inline int
00105 getWindowSize () const { return (window_size_); }
00106
00110 inline void
00111 setSigmaColor (const float &sigma_color) { sigma_color_ = sigma_color; }
00112
00114 inline float
00115 getSigmaColor () const { return (sigma_color_); }
00116
00120 inline void
00121 setSigmaDepth (const float &sigma_depth) { sigma_depth_ = sigma_depth; }
00122
00124 inline float
00125 getSigmaDepth () const { return (sigma_depth_); }
00126
00132 inline void
00133 setProjectionMatrix (const Eigen::Matrix3f &projection_matrix) { projection_matrix_ = projection_matrix; }
00134
00136 inline Eigen::Matrix3f
00137 getProjectionMatrix () const { return (projection_matrix_); }
00138
00141 void
00142 process (pcl::PointCloud<PointOutT> &output);
00143
00144 protected:
00145 void
00146 performProcessing (pcl::PointCloud<PointOutT> &output);
00147
00148 private:
00149 int window_size_;
00150 float sigma_color_, sigma_depth_;
00151 Eigen::Matrix3f projection_matrix_, unprojection_matrix_;
00152
00153 public:
00154 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
00155 };
00156 }
00157
00158 #endif