Points&Forces (survey)
Software tools facilitating the task of surveying architecture
|
a unit to deform an image. The transformation function needs to be defined in a children class. More...
#include <a_image_defo.h>
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] |
a unit to deform an image. The transformation function needs to be defined in a children class.
Definition at line 28 of file a_image_defo.h.
|
inline |
Definition at line 31 of file a_image_defo.h.
|
virtual |
compute the bounding box of the new image
Reimplemented in a_radial_distorsion.
Definition at line 87 of file a_image_defo.cxx.
|
protected |
reset the value of the bounding box
Definition at line 81 of file a_image_defo.cxx.
void a_image_defo::deform | ( | ) |
deform the image
Definition at line 151 of file a_image_defo.cxx.
|
inline |
|
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.
|
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.
|
virtual |
read the image to be processed
Reimplemented in a_radial_distorsion.
Definition at line 46 of file a_image_defo.cxx.
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.
|
inline |
impose the size of the output bounding box
Definition at line 45 of file a_image_defo.h.
|
inline |
impose the size of the output bounding box
Definition at line 47 of file a_image_defo.h.
|
inline |
impose the size of the output bounding box
Definition at line 49 of file a_image_defo.h.
|
inline |
impose the size of the output bounding box
Definition at line 51 of file a_image_defo.h.
|
protected |
Definition at line 61 of file a_image_defo.h.
|
protected |
Definition at line 62 of file a_image_defo.h.
|
protected |
Definition at line 59 of file a_image_defo.h.
|
protected |
Definition at line 60 of file a_image_defo.h.