Obsidian
Probabilistic Geophysical Joint Inversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
grid.cpp File Reference

Contains the implementation for creating grids. More...

#include "world/grid.hpp"
#include <Eigen/Dense>
#include <Eigen/Core>
Include dependency graph for grid.cpp:

Namespaces

 obsidian
 
 obsidian::world
 

Functions

Eigen::MatrixXd obsidian::world::sensorGrid (const WorldSpec &worldSpec, uint resx, uint resy, double sensorZ)
 
Eigen::MatrixXd obsidian::world::internalGrid2D (std::pair< double, double > xMinMax, std::pair< double, double > yMinMax, uint resx, uint resy)
 
Eigen::MatrixXd obsidian::world::internalGrid2DX (std::pair< double, double > xMinMax, std::pair< double, double > yMinMax, uint resx, uint resy)
 
Eigen::MatrixXd obsidian::world::edgeGrid2D (std::pair< double, double > xMinMax, std::pair< double, double > yMinMax, uint resx, uint resy)
 
Eigen::MatrixXd obsidian::world::sensorGrid3d (const WorldSpec &worldSpec, uint resx, uint resy, uint resz)
 
double obsidian::world::length (const Eigen::Vector2d &pt)
 
Eigen::VectorXd obsidian::world::linrange (double from, double to, double step=1.0)
 Return a vector containing regularly spaced numbers within a range. This is equivalent to the colon operator in MATLAB (Note the different parameter ordering). More...
 
std::pair< Eigen::MatrixXd,
Eigen::MatrixXd > 
obsidian::world::meshgrid (const Eigen::VectorXd &x, const Eigen::VectorXd &y)
 
Eigen::VectorXd obsidian::world::flatten (const Eigen::MatrixXd &matrix)
 Maps all the columns of a matrix into a single column vector. Equivalent to the colon operator A(:) in MATLAB. More...
 
Eigen::VectorXi obsidian::world::flatten (const Eigen::MatrixXi &matrix)
 Maps all the columns of a matrix into a single column vector. Equivalent to the colon operator A(:) in MATLAB. More...
 
std::pair< Eigen::MatrixXd,
std::pair< Eigen::MatrixXd,
Eigen::MatrixXd > > 
obsidian::world::makeGrid (const Eigen::Vector2d &boundaryStart, const Eigen::Vector2d &boundaryEnd, const Eigen::Vector2i &resolution, int padding=0)
 Compute a regular 2D grid given the boundaries and resolutions in the x and y directions. More...
 

Detailed Description

Contains the implementation for creating grids.

Author
Alistair Reid
Darren Shen
Date
2014
License:
Affero General Public License version 3 or later