Backproject
Public Member Functions | List of all members
Image Class Reference

Represents the metadata of an image. More...

#include <Image.h>

Public Member Functions

 Image (int _height, int _width, const std::string &_fileName, const std::shared_ptr< InteriorOrientation > &_IO, const std::shared_ptr< ExteriorOrientation > &_EO)
 Constructs an image object with the given properties. More...
 
bool backProject (const vector &worldCoordinate, Point &imageCoordinate)
 Back-projects a 3d world coordinate into the image. More...
 
void set_height (int height)
 
int get_height () const
 
int get_width () const
 
void set_width (int width)
 
const std::string & get_fileName () const
 gets the filename of the image More...
 
void set_fileName (const std::string &fileName)
 sets the filename of the image More...
 
const std::shared_ptr< InteriorOrientation > & get_IO () const
 retrieves the Interior Orientation of the image More...
 
void set_IO (const std::shared_ptr< InteriorOrientation > &IO)
 sets the Interior Orientation of the image More...
 
const std::shared_ptr< ExteriorOrientation > & get_EO () const
 retrieves the Exterior Orientation of the image More...
 
void set_EO (const std::shared_ptr< ExteriorOrientation > &EO)
 sets the Exterior Orientation of the image More...
 

Detailed Description

Represents the metadata of an image.

Constructor & Destructor Documentation

§ Image()

Image::Image ( int  _height,
int  _width,
const std::string &  _fileName,
const std::shared_ptr< InteriorOrientation > &  _IO,
const std::shared_ptr< ExteriorOrientation > &  _EO 
)

Constructs an image object with the given properties.

Parameters
_heightthe height of the image in pixels
_widththe width of the image in pixels
_fileNamethe filename of the image
_IOthe interior orientation of the image
_EOthe exterior orientation of the image

Member Function Documentation

§ backProject()

bool Image::backProject ( const vector &  worldCoordinate,
Point imageCoordinate 
)

Back-projects a 3d world coordinate into the image.

Parameters
worldCoordinatethe vector containing the x,y and z ordinates.
imageCoordinatethe point object that will contain the projected pixel coordinates of the object.
Returns

§ get_EO()

const std::shared_ptr< ExteriorOrientation > & Image::get_EO ( ) const

retrieves the Exterior Orientation of the image

Returns
the ExteriorOrientation

§ get_fileName()

const std::string & Image::get_fileName ( ) const

gets the filename of the image

Returns
the filename and path relative to the working directory of the executable.

§ get_height()

int Image::get_height ( ) const
Returns
the height of the image

§ get_IO()

const std::shared_ptr< InteriorOrientation > & Image::get_IO ( ) const

retrieves the Interior Orientation of the image

Returns
the InteriorOrientation

§ get_width()

int Image::get_width ( ) const
Returns
the width of the image in pixels

§ set_EO()

void Image::set_EO ( const std::shared_ptr< ExteriorOrientation > &  EO)

sets the Exterior Orientation of the image

Parameters
_IOthe ExteriorOrientation

§ set_fileName()

void Image::set_fileName ( const std::string &  fileName)

sets the filename of the image

Parameters
fileNamethe filename and path, relative to the working directory of the executable.

§ set_height()

void Image::set_height ( int  height)
Parameters
heightsets the height of the image.

§ set_IO()

void Image::set_IO ( const std::shared_ptr< InteriorOrientation > &  IO)

sets the Interior Orientation of the image

Parameters
IOthe InteriorOrientation

§ set_width()

void Image::set_width ( int  width)
Parameters
widththe width of the image in pixels

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