|
Point Cloud Library (PCL) 1.15.0
|
This class provides methods to fill a depth or disparity image. More...
#include <pcl/io/openni_camera/openni_depth_image.h>
Public Types | |
| using | Ptr = pcl::shared_ptr<DepthImage> |
| using | ConstPtr = pcl::shared_ptr<const DepthImage> |
Public Member Functions | |
| DepthImage (pcl::shared_ptr< xn::DepthMetaData > depth_meta_data, float baseline, float focal_length, XnUInt64 shadow_value, XnUInt64 no_sample_value) noexcept | |
| Constructor. | |
| virtual | ~DepthImage () noexcept |
| Destructor. | |
| const xn::DepthMetaData & | getDepthMetaData () const noexcept |
| method to access the internal data structure from OpenNI. | |
| void | fillDisparityImage (unsigned width, unsigned height, float *disparity_buffer, unsigned line_step=0) const |
| fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling. | |
| void | fillDepthImage (unsigned width, unsigned height, float *depth_buffer, unsigned line_step=0) const |
| fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling. | |
| void | fillDepthImageRaw (unsigned width, unsigned height, unsigned short *depth_buffer, unsigned line_step=0) const |
| fills a user given block of memory with the raw values with additional nearest-neighbor down-scaling. | |
| float | getBaseline () const noexcept |
| method to access the baseline of the "stereo" frame that was used to retrieve the depth image. | |
| float | getFocalLength () const noexcept |
| method to access the focal length of the "stereo" frame that was used to retrieve the depth image. | |
| XnUInt64 | getShadowValue () const noexcept |
| method to access the shadow value, that indicates pixels lying in shadow in the depth image. | |
| XnUInt64 | getNoSampleValue () const noexcept |
| method to access the no-sample value, that indicates pixels where no disparity could be determined for the depth image. | |
| unsigned | getWidth () const noexcept |
| unsigned | getHeight () const noexcept |
| unsigned | getFrameID () const noexcept |
| unsigned long | getTimeStamp () const noexcept |
Protected Attributes | |
| pcl::shared_ptr< xn::DepthMetaData > | depth_md_ |
| float | baseline_ |
| float | focal_length_ |
| XnUInt64 | shadow_value_ |
| XnUInt64 | no_sample_value_ |
This class provides methods to fill a depth or disparity image.
Definition at line 56 of file openni_depth_image.h.
| using openni_wrapper::DepthImage::ConstPtr = pcl::shared_ptr<const DepthImage> |
Definition at line 60 of file openni_depth_image.h.
| using openni_wrapper::DepthImage::Ptr = pcl::shared_ptr<DepthImage> |
Definition at line 59 of file openni_depth_image.h.
|
inlinenoexcept |
Constructor.
| [in] | depth_meta_data | the actual data from the OpenNI library |
| [in] | baseline | the baseline of the "stereo" camera, i.e. the distance between the projector and the IR camera for Primesense like cameras. e.g. 7.5cm for PSDK5 and PSDK6 reference design. |
| [in] | focal_length | focal length of the "stereo" frame. |
| [in] | shadow_value | defines which values in the depth data are indicating shadow (resulting from the parallax between projector and IR camera) |
| [in] | no_sample_value | defines which values in the depth data are indicating that no depth (disparity) could be determined . |
Definition at line 165 of file openni_depth_image.h.
References baseline_, depth_md_, DepthImage(), focal_length_, no_sample_value_, and shadow_value_.
Referenced by DepthImage(), and getDepthMetaData().
|
inlinevirtualdefaultnoexcept |
| void openni_wrapper::DepthImage::fillDepthImage | ( | unsigned | width, |
| unsigned | height, | ||
| float * | depth_buffer, | ||
| unsigned | line_step = 0 ) const |
fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling.
| [in] | width | width the width of the desired depth image. |
| [in] | height | height the height of the desired depth image. |
| [in,out] | depth_buffer | the float pointer to the actual memory buffer to be filled with the depth values. |
| [in] | line_step | if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. |
References fillDepthImage().
Referenced by fillDepthImage().
| void openni_wrapper::DepthImage::fillDepthImageRaw | ( | unsigned | width, |
| unsigned | height, | ||
| unsigned short * | depth_buffer, | ||
| unsigned | line_step = 0 ) const |
fills a user given block of memory with the raw values with additional nearest-neighbor down-scaling.
| [in] | width | width the width of the desired raw image. |
| [in] | height | height the height of the desired raw image. |
| [in,out] | depth_buffer | the unsigned short pointer to the actual memory buffer to be filled with the raw values. |
| [in] | line_step | if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. |
References fillDepthImageRaw(), getBaseline(), getFocalLength(), getFrameID(), getHeight(), getNoSampleValue(), getShadowValue(), getTimeStamp(), and getWidth().
Referenced by fillDepthImageRaw().
| void openni_wrapper::DepthImage::fillDisparityImage | ( | unsigned | width, |
| unsigned | height, | ||
| float * | disparity_buffer, | ||
| unsigned | line_step = 0 ) const |
fills a user given block of memory with the disparity values with additional nearest-neighbor down-scaling.
| [in] | width | the width of the desired disparity image. |
| [in] | height | the height of the desired disparity image. |
| [in,out] | disparity_buffer | the float pointer to the actual memory buffer to be filled with the disparity values. |
| [in] | line_step | if only a rectangular sub region of the buffer needs to be filled, then line_step is the width in bytes (not floats) of the original width of the depth buffer. |
References fillDisparityImage().
Referenced by fillDisparityImage().
|
inlinenoexcept |
method to access the baseline of the "stereo" frame that was used to retrieve the depth image.
Definition at line 181 of file openni_depth_image.h.
References baseline_, and getBaseline().
Referenced by fillDepthImageRaw(), and getBaseline().
|
inlinenoexcept |
method to access the internal data structure from OpenNI.
If the data is accessed just read-only, then this method is faster than a fillXXX method
Definition at line 175 of file openni_depth_image.h.
References depth_md_, DepthImage(), and getDepthMetaData().
Referenced by getDepthMetaData(), and ~DepthImage().
|
inlinenoexcept |
method to access the focal length of the "stereo" frame that was used to retrieve the depth image.
Definition at line 187 of file openni_depth_image.h.
References focal_length_, and getFocalLength().
Referenced by fillDepthImageRaw(), and getFocalLength().
|
inlinenoexcept |
Definition at line 217 of file openni_depth_image.h.
References depth_md_, and getFrameID().
Referenced by fillDepthImageRaw(), and getFrameID().
|
inlinenoexcept |
Definition at line 211 of file openni_depth_image.h.
References depth_md_, and getHeight().
Referenced by fillDepthImageRaw(), and getHeight().
|
inlinenoexcept |
method to access the no-sample value, that indicates pixels where no disparity could be determined for the depth image.
Definition at line 199 of file openni_depth_image.h.
References getNoSampleValue(), and no_sample_value_.
Referenced by fillDepthImageRaw(), and getNoSampleValue().
|
inlinenoexcept |
method to access the shadow value, that indicates pixels lying in shadow in the depth image.
Definition at line 193 of file openni_depth_image.h.
References getShadowValue(), and shadow_value_.
Referenced by fillDepthImageRaw(), and getShadowValue().
|
inlinenoexcept |
Definition at line 223 of file openni_depth_image.h.
References depth_md_, and getTimeStamp().
Referenced by fillDepthImageRaw(), and getTimeStamp().
|
inlinenoexcept |
Definition at line 205 of file openni_depth_image.h.
References depth_md_, and getWidth().
Referenced by fillDepthImageRaw(), and getWidth().
|
protected |
Definition at line 159 of file openni_depth_image.h.
Referenced by DepthImage(), and getBaseline().
|
protected |
Definition at line 158 of file openni_depth_image.h.
Referenced by DepthImage(), getDepthMetaData(), getFrameID(), getHeight(), getTimeStamp(), and getWidth().
|
protected |
Definition at line 160 of file openni_depth_image.h.
Referenced by DepthImage(), and getFocalLength().
|
protected |
Definition at line 162 of file openni_depth_image.h.
Referenced by DepthImage(), and getNoSampleValue().
|
protected |
Definition at line 161 of file openni_depth_image.h.
Referenced by DepthImage(), and getShadowValue().