Points&Forces (survey)
Software tools facilitating the task of surveying architecture
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
a_image_defo Class Referenceabstract

a unit to deform an image. The transformation function needs to be defined in a children class. More...

#include <a_image_defo.h>

+ Inheritance diagram for a_image_defo:
+ Collaboration diagram for a_image_defo:

Public Member Functions

 a_image_defo ()
 
virtual void read (const std::string &name)
 read the image to be processed More...
 
void write (const std::string &name)
 write the processed image to a file More...
 
virtual void new_coordinates (double xo, double yo, double &xn, double &yn)=0
 gives the pixel coordinates in the output image in function of the pixel coordinates in the input image More...
 
virtual bool old_coordinates (double xn, double yn, double &xo, double &yo)=0
 gives the pixel coordinates in the input image in function of the pixel coordinates in the output image More...
 
virtual void box_out ()
 compute the bounding box of the new image More...
 
void xm (const int val)
 impose the size of the output bounding box More...
 
void xM (const int val)
 impose the size of the output bounding box More...
 
void ym (const int val)
 impose the size of the output bounding box More...
 
void yM (const int val)
 impose the size of the output bounding box More...
 
void get_box_out () const
 
void deform ()
 deform the image More...
 

Protected Member Functions

void box_out_reset ()
 reset the value of the bounding box More...
 

Protected Attributes

vtkImageData * in_
 
vtkImageData * out_
 
int box_in_ [6]
 
int box_out_ [6]
 

Detailed Description

a unit to deform an image. The transformation function needs to be defined in a children class.

Author
P.Smars
Date
2008
Warning
portability: ansi C++

Definition at line 28 of file a_image_defo.h.

Constructor & Destructor Documentation

◆ a_image_defo()

a_image_defo::a_image_defo ( )
inline

Definition at line 31 of file a_image_defo.h.

Member Function Documentation

◆ box_out()

void a_image_defo::box_out ( )
virtual

compute the bounding box of the new image

Reimplemented in a_radial_distorsion.

Definition at line 87 of file a_image_defo.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ box_out_reset()

void a_image_defo::box_out_reset ( )
protected

reset the value of the bounding box

Definition at line 81 of file a_image_defo.cxx.

+ Here is the caller graph for this function:

◆ deform()

void a_image_defo::deform ( )

deform the image

Definition at line 151 of file a_image_defo.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ get_box_out()

void a_image_defo::get_box_out ( ) const
inline

Definition at line 52 of file a_image_defo.h.

+ Here is the caller graph for this function:

◆ new_coordinates()

virtual void a_image_defo::new_coordinates ( double  xo,
double  yo,
double &  xn,
double &  yn 
)
pure virtual

gives the pixel coordinates in the output image in function of the pixel coordinates in the input image

Implemented in a_radial_distorsion, and a_h_remap.

+ Here is the caller graph for this function:

◆ old_coordinates()

virtual bool a_image_defo::old_coordinates ( double  xn,
double  yn,
double &  xo,
double &  yo 
)
pure virtual

gives the pixel coordinates in the input image in function of the pixel coordinates in the output image

Implemented in a_radial_distorsion, and a_h_remap.

+ Here is the caller graph for this function:

◆ read()

void a_image_defo::read ( const std::string &  name)
virtual

read the image to be processed

Reimplemented in a_radial_distorsion.

Definition at line 46 of file a_image_defo.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ write()

void a_image_defo::write ( const std::string &  name)

write the processed image to a file

this is an extra comment

Definition at line 65 of file a_image_defo.cxx.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ xm()

void a_image_defo::xm ( const int  val)
inline

impose the size of the output bounding box

Definition at line 45 of file a_image_defo.h.

+ Here is the caller graph for this function:

◆ xM()

void a_image_defo::xM ( const int  val)
inline

impose the size of the output bounding box

Definition at line 47 of file a_image_defo.h.

+ Here is the caller graph for this function:

◆ ym()

void a_image_defo::ym ( const int  val)
inline

impose the size of the output bounding box

Definition at line 49 of file a_image_defo.h.

+ Here is the caller graph for this function:

◆ yM()

void a_image_defo::yM ( const int  val)
inline

impose the size of the output bounding box

Definition at line 51 of file a_image_defo.h.

+ Here is the caller graph for this function:

Member Data Documentation

◆ box_in_

int a_image_defo::box_in_[6]
protected

Definition at line 61 of file a_image_defo.h.

◆ box_out_

int a_image_defo::box_out_[6]
protected

Definition at line 62 of file a_image_defo.h.

◆ in_

vtkImageData* a_image_defo::in_
protected

Definition at line 59 of file a_image_defo.h.

◆ out_

vtkImageData* a_image_defo::out_
protected

Definition at line 60 of file a_image_defo.h.


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