IMP
2.0.0
The Integrative Modeling Platform
|
A class to represent a voxel grid. More...
#include <IMP/algebra/algebra_config.h>
#include "GridD.h"
#include "internal/grid_interpolation.h"
#include "grid_indexes.h"
#include "internal/grid_3d_impl.h"
Go to the source code of this file.
Namespaces | |
namespace | IMP |
All IMP::kernel code is brought into the IMP namespace. | |
namespace | IMP::algebra |
See IMP.algebra Overview for more information. | |
Macros | |
#define | IMP_GRID3D_FOREACH_SMALLER_EXTENDED_INDEX_RANGE(grid, center,lower_corner,upper_corner,action) |
#define | IMP_GRID3D_FOREACH_VOXEL(g, action) |
Functions | |
template<int D, class Storage , class Value , class Embedding > | |
Value | IMP::algebra::get_linearly_interpolated (const GridD< D, Storage, Value, Embedding > &g, const VectorD< D > &pt) |
template<class Storage , class Embedding > | |
const Storage::Value | IMP::algebra::get_trilinearly_interpolated (const GridD< 3, Storage, typename Storage::Value, Embedding > &g, const Vector3D &v, const typename Storage::Value &outside=0) |
Use trilinear interpolation to compute a smoothed value at v. More... | |
Copyright 2007-2013 IMP Inventors. All rights reserved.
Definition in file grid_utility.h.
#define IMP_GRID3D_FOREACH_SMALLER_EXTENDED_INDEX_RANGE | ( | grid, | |
center, | |||
lower_corner, | |||
upper_corner, | |||
action | |||
) |
Iterate over each voxel in a subset of the grid that are less than center. The voxel index is unsigned int voxel_index[3]. Use this if, for example you want to find nearby pairs of voxels once each.
Definition at line 138 of file grid_utility.h.
#define IMP_GRID3D_FOREACH_VOXEL | ( | g, | |
action | |||
) |
Iterate over each voxel in grid. The voxel index is GridIndexD<3> voxel_index and the coordinates of the center is Vector3D voxel_center and the index of the voxel is loop_voxel_index.
Definition at line 96 of file grid_utility.h.