 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
25 : h(
std::numeric_limits<double>::quiet_NaN()),
61 static bool ComputeGridSize(
unsigned char Z,
94 static QString GetDefaultFieldName(ExportableFields field);
98 const std::vector<ExportableFields>& exportedFields,
101 bool resampleInputCloudXY,
102 bool resampleInputCloudZ,
108 double emptyCellsHeight,
109 bool exportToOriginalCS)
const;
113 PROJ_MINIMUM_VALUE = 0,
114 PROJ_AVERAGE_VALUE = 1,
115 PROJ_MAXIMUM_VALUE = 2,
116 PROJ_MEDIAN_VALUE = 3,
117 PROJ_INVERSE_VAR_VALUE = 4,
118 INVALID_PROJECTION_TYPE = 255,
130 unsigned char projectionDimension,
131 ProjectionType projectionType,
132 bool interpolateEmptyCells,
133 ProjectionType sfInterpolation = INVALID_PROJECTION_TYPE,
139 FILL_MINIMUM_HEIGHT = 1,
140 FILL_MAXIMUM_HEIGHT = 2,
141 FILL_CUSTOM_HEIGHT = 3,
142 FILL_AVERAGE_HEIGHT = 4,
143 INTERPOLATE_DELAUNAY = 5,
149 static InterpolationType InterpolationTypeFromEmptyCellFillOption(
150 EmptyCellFillOption option);
153 void fillEmptyCells(EmptyCellFillOption fillEmptyCellsStrategy,
154 double customCellHeight = 0);
157 unsigned updateNonEmptyCellCount();
160 void updateCellStats();
163 inline void setValid(
bool state) { valid = state; }
170 unsigned char Y)
const {
174 int i =
static_cast<int>((relativePos.
u[
X] / gridStep + 0.5));
175 int j =
static_cast<int>((relativePos.
u[Y] / gridStep + 0.5));
184 unsigned char Y)
const {
185 return {minCorner.
u[
X] + (i + 0.5) * gridStep,
186 minCorner.
u[Y] + (j + 0.5) * gridStep};
190 using Row = std::vector<ccRasterCell>;
196 using SF = std::vector<double>;
PointCoordinateType maxHeight
Max height value.
Definition: ecvRasterGrid.h:43
@ PER_CELL_VALUE
Definition: ecvRasterGrid.h:80
double h
Height value.
Definition: ecvRasterGrid.h:35
unsigned pointIndex
Nearest point index (if any)
Definition: ecvRasterGrid.h:47
bool interpolateColors(const ccHObject::Container &selectedEntities, QWidget *parent)
Interpolate colors from on entity and transfer them to another one.
Definition: ecvEntityAction.cpp:292
@ PER_CELL_MIN_VALUE
Definition: ecvRasterGrid.h:82
Bounding box structure.
Definition: ecvBBox.h:25
std::vector< Row > rows
All cells.
Definition: ecvRasterGrid.h:193
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
@ PER_CELL_VALUE_RANGE
Definition: ecvRasterGrid.h:86
double stdDevHeight
Height std.dev.
Definition: ecvRasterGrid.h:39
@ PER_CELL_MAX_VALUE
Definition: ecvRasterGrid.h:83
InterpolationType
Types of interpolation.
Definition: ecvRasterGrid.h:122
Raster grid type.
Definition: ecvRasterGrid.h:53
Raster grid cell.
Definition: ecvRasterGrid.h:22
math::float4 color
Definition: LineSetBuffers.cpp:46
CCVector2d computeCellCenter(int i, int j, unsigned char X, unsigned char Y) const
Computes the position of the center of a given cell.
Definition: ecvRasterGrid.h:181
ccRasterCell()
Default constructor.
Definition: ecvRasterGrid.h:24
int width
Definition: FileIOFactory.cpp:142
double avgHeight
Average height value.
Definition: ecvRasterGrid.h:37
int height
Definition: FileIOFactory.cpp:143
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
@ PER_CELL_PERCENTILE_VALUE
Definition: ecvRasterGrid.h:88
CCVector3d color
Color.
Definition: ecvRasterGrid.h:49
double minHeight
Min height (computed on the NON-EMPTY or INTERPOLATED cells)
Definition: ecvRasterGrid.h:211
std::pair< int, int > computeCellPos(const CCVector3 &P, unsigned char X, unsigned char Y) const
Computes the position of the cell that includes a given point.
Definition: ecvRasterGrid.h:168
unsigned validCellCount
Number of VALID cells.
Definition: ecvRasterGrid.h:219
std::vector< SF > scalarFields
Associated scalar fields.
Definition: ecvRasterGrid.h:199
bool hasColors
Whether the (average) colors are available or not.
Definition: ecvRasterGrid.h:222
CCVector3d minCorner
Min corner (3D)
Definition: ecvRasterGrid.h:208
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
PointCoordinateType minHeight
Min height value.
Definition: ecvRasterGrid.h:41
@ PER_CELL_COUNT
Definition: ecvRasterGrid.h:81
unsigned height
Number of rows.
Definition: ecvRasterGrid.h:204
bool valid
Whether the grid is valid/up-to-date.
Definition: ecvRasterGrid.h:225
EmptyCellFillOption
Option for handling empty cells.
Definition: ecvRasterGrid.h:137
double maxHeight
Max height (computed on the NON-EMPTY or INTERPOLATED cells)
Definition: ecvRasterGrid.h:213
ExportableFields
Exportable fields.
Definition: ecvRasterGrid.h:79
unsigned nbPoints
Number of points projected in this cell.
Definition: ecvRasterGrid.h:45
void setValid(bool state)
Sets valid.
Definition: ecvRasterGrid.h:163
std::vector< ccRasterCell > Row
Row.
Definition: ecvRasterGrid.h:190
@ PER_CELL_MEDIAN_VALUE
Definition: ecvRasterGrid.h:87
unsigned nonEmptyCellCount
Number of NON-EMPTY cells.
Definition: ecvRasterGrid.h:217
@ PER_CELL_UNIQUE_COUNT_VALUE
Definition: ecvRasterGrid.h:89
bool isValid() const
Returns whether the grid is 'valid' or not.
Definition: ecvRasterGrid.h:165
@ PER_CELL_AVG_VALUE
Definition: ecvRasterGrid.h:84
double gridStep
Grid step ('pixel' size)
Definition: ecvRasterGrid.h:206
@ PER_CELL_INVALID
Definition: ecvRasterGrid.h:90
#define CV_DB_LIB_API
Definition: CV_db.h:15
@ PER_CELL_VALUE_STD_DEV
Definition: ecvRasterGrid.h:85
void * X
Definition: SmallVector.cpp:45
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Type u[3]
Definition: CVGeom.h:139
static Vector3Tpl fromArray(const int a[3])
Constructor from an int array.
Definition: CVGeom.h:268
std::vector< double > SF
Scalar field.
Definition: ecvRasterGrid.h:196
ProjectionType
Types of projection.
Definition: ecvRasterGrid.h:112
double meanHeight
Average height (computed on the NON-EMPTY or INTERPOLATED cells)
Definition: ecvRasterGrid.h:215
unsigned width
Number of columns.
Definition: ecvRasterGrid.h:202