Public Member Functions | Private Attributes | List of all members
vpgl_backproject_dem Class Reference

#include <vpgl_backproject_dem.h>

Public Member Functions

 vpgl_backproject_dem (vil_image_resource_sptr const &dem, double zmin=0.0, double zmax=-1.0)
 default constructor not allowed. More...
 
 ~vpgl_backproject_dem ()
 
void set_verbose (bool verbose)
 turn on/off messages (default not verbose). More...
 
vgl_point_3d< double > geo_center () const
 
double zmax () const
 elevation bounds of the DEM (with tail removal). More...
 
double zmin () const
 
std::vector< vgl_point_3d< double > > dem_corners () const
 geographic corners of the DEM - useful for bounding valid image regions. More...
 
bool bproj_dem (const vpgl_camera< double > *cam, vnl_double_2 const &image_point, double max_z, double min_z, vnl_double_3 const &initial_guess, vnl_double_3 &world_point, double error_tol=1.0)
 General camera - typically a RPC camera. More...
 
bool bproj_dem (const vpgl_camera< double > *cam, vgl_point_2d< double > const &image_point, double max_z, double min_z, vgl_point_3d< double > const &initial_guess, vgl_point_3d< double > &world_point, double error_tol=1.0)
 Backproject an image point onto a geotiff dem, start with initial_guess. More...
 
bool bproj_dem (vpgl_rational_camera< double > const &rcam, vnl_double_2 const &image_point, double max_z, double min_z, vnl_double_3 const &initial_guess, vnl_double_3 &world_point, double error_tol=0.05)
 Backproject an image point onto a plane, start with initial_guess. More...
 
bool bproj_dem (vpgl_rational_camera< double > const &rcam, vgl_point_2d< double > const &image_point, double max_z, double min_z, vgl_point_3d< double > const &initial_guess, vgl_point_3d< double > &world_point, double error_tol=0.05)
 Backproject an image point onto a plane, start with initial_guess. More...
 

Private Attributes

bool verbose_
 
double min_samples_
 
double tail_fract_
 
vil_image_resource_sptr dem_
 
vil_image_view< float > dem_view_
 
vpgl_geo_camerageo_cam_
 
vgl_point_3d< double > geo_center_
 
std::vector< vgl_point_3d< double > > dem_corners_
 
double z_min_
 bounds of the DEM. More...
 
double z_max_
 

Detailed Description

Definition at line 25 of file vpgl_backproject_dem.h.

Constructor & Destructor Documentation

◆ vpgl_backproject_dem()

vpgl_backproject_dem::vpgl_backproject_dem ( vil_image_resource_sptr const &  dem,
double  zmin = 0.0,
double  zmax = -1.0 
)

default constructor not allowed.

Definition at line 47 of file vpgl_backproject_dem.cxx.

◆ ~vpgl_backproject_dem()

vpgl_backproject_dem::~vpgl_backproject_dem ( )

Definition at line 123 of file vpgl_backproject_dem.cxx.

Member Function Documentation

◆ bproj_dem() [1/4]

bool vpgl_backproject_dem::bproj_dem ( const vpgl_camera< double > *  cam,
vnl_double_2 const &  image_point,
double  max_z,
double  min_z,
vnl_double_3 const &  initial_guess,
vnl_double_3 &  world_point,
double  error_tol = 1.0 
)

General camera - typically a RPC camera.

Backproject an image point onto a geotiff dem, start with initial_guess. use local ray with origin and dir from backprojection onto max_z and min_z planes

Definition at line 182 of file vpgl_backproject_dem.cxx.

◆ bproj_dem() [2/4]

bool vpgl_backproject_dem::bproj_dem ( const vpgl_camera< double > *  cam,
vgl_point_2d< double > const &  image_point,
double  max_z,
double  min_z,
vgl_point_3d< double > const &  initial_guess,
vgl_point_3d< double > &  world_point,
double  error_tol = 1.0 
)

Backproject an image point onto a geotiff dem, start with initial_guess.

use local ray with origin and dir from backprojection onto max_z and min_z planes

Definition at line 129 of file vpgl_backproject_dem.cxx.

◆ bproj_dem() [3/4]

bool vpgl_backproject_dem::bproj_dem ( vpgl_rational_camera< double > const &  rcam,
vnl_double_2 const &  image_point,
double  max_z,
double  min_z,
vnl_double_3 const &  initial_guess,
vnl_double_3 &  world_point,
double  error_tol = 0.05 
)

Backproject an image point onto a plane, start with initial_guess.

use local ray with origin and dir from backprojection onto rcam's z bounds

Definition at line 199 of file vpgl_backproject_dem.cxx.

◆ bproj_dem() [4/4]

bool vpgl_backproject_dem::bproj_dem ( vpgl_rational_camera< double > const &  rcam,
vgl_point_2d< double > const &  image_point,
double  max_z,
double  min_z,
vgl_point_3d< double > const &  initial_guess,
vgl_point_3d< double > &  world_point,
double  error_tol = 0.05 
)

Backproject an image point onto a plane, start with initial_guess.

use local ray with origin and dir from backprojection onto rcam's z bounds

Definition at line 206 of file vpgl_backproject_dem.cxx.

◆ dem_corners()

std::vector<vgl_point_3d<double> > vpgl_backproject_dem::dem_corners ( ) const
inline

geographic corners of the DEM - useful for bounding valid image regions.

Definition at line 43 of file vpgl_backproject_dem.h.

◆ geo_center()

vgl_point_3d<double> vpgl_backproject_dem::geo_center ( ) const
inline

Definition at line 36 of file vpgl_backproject_dem.h.

◆ set_verbose()

void vpgl_backproject_dem::set_verbose ( bool  verbose)
inline

turn on/off messages (default not verbose).

Definition at line 33 of file vpgl_backproject_dem.h.

◆ zmax()

double vpgl_backproject_dem::zmax ( ) const
inline

elevation bounds of the DEM (with tail removal).

Definition at line 39 of file vpgl_backproject_dem.h.

◆ zmin()

double vpgl_backproject_dem::zmin ( ) const
inline

Definition at line 40 of file vpgl_backproject_dem.h.

Member Data Documentation

◆ dem_

vil_image_resource_sptr vpgl_backproject_dem::dem_
private

Definition at line 94 of file vpgl_backproject_dem.h.

◆ dem_corners_

std::vector<vgl_point_3d<double> > vpgl_backproject_dem::dem_corners_
private

Definition at line 98 of file vpgl_backproject_dem.h.

◆ dem_view_

vil_image_view<float> vpgl_backproject_dem::dem_view_
private

Definition at line 95 of file vpgl_backproject_dem.h.

◆ geo_cam_

vpgl_geo_camera* vpgl_backproject_dem::geo_cam_
private

Definition at line 96 of file vpgl_backproject_dem.h.

◆ geo_center_

vgl_point_3d<double> vpgl_backproject_dem::geo_center_
private

Definition at line 97 of file vpgl_backproject_dem.h.

◆ min_samples_

double vpgl_backproject_dem::min_samples_
private

Definition at line 92 of file vpgl_backproject_dem.h.

◆ tail_fract_

double vpgl_backproject_dem::tail_fract_
private

Definition at line 93 of file vpgl_backproject_dem.h.

◆ verbose_

bool vpgl_backproject_dem::verbose_
private

Definition at line 91 of file vpgl_backproject_dem.h.

◆ z_max_

double vpgl_backproject_dem::z_max_
private

Definition at line 101 of file vpgl_backproject_dem.h.

◆ z_min_

double vpgl_backproject_dem::z_min_
private

bounds of the DEM.

Definition at line 100 of file vpgl_backproject_dem.h.


The documentation for this class was generated from the following files: