52 #ifndef __PCL_ImageResolution_h
53 #define __PCL_ImageResolution_h
58 #include <pcl/Diagnostics.h>
98 x = xResolution; y = yResolution;
129 PCL_PRECONDITION( x >= 0 )
130 PCL_PRECONDITION( y >= 0 )
157 PCL_PRECONDITION( r >= 0 )
158 xResolution = yResolution =
pcl::Max( 0.0, r );
190 double xResolution = 72;
191 double yResolution = 72;
double Resolution() const
void SetMetricResolution(bool m)
bool IsMetricResolution() const
double HorizontalResolution() const
void GetResolution(double &x, double &y)
void SetResolution(double x, double y)
void SetResolution(double r)
ImageResolution(const ImageResolution &)=default
ImageResolution()=default
double VerticalResolution() const
constexpr const T & Max(const T &a, const T &b) noexcept