|
DGtal
1.5.beta
|
RBC : Bijective Rotation through Circles. More...
#include <DGtal/images/bijectiveRotations/RBC_vec.h>
Public Types | |
| typedef std::vector< TOutputValue > | Circle |
Public Member Functions | |
| RBC_vec (int max_radius, bool smart=false) | |
| void | init (int R, bool smart) |
| double | angle () const |
| double & | setAngle () |
| TOutputValue | center () const |
| TOutputValue & | center () |
| TOutputValue | rotate (TInputValue p) const |
| TOutputValue | operator() (const TInputValue &aInput) const |
| std::size_t | size () const |
| const Circle & | circle (int r) const |
Static Public Member Functions | |
| static Circle | computeCircle (int r) |
Data Fields | |
| std::vector< Circle > | circles |
| std::map< TOutputValue, TOutputValue > | point2circle |
Protected Attributes | |
| double | my_angle |
| The angle of rotation. More... | |
| TOutputValue | my_center |
| The center of rotation. More... | |
RBC : Bijective Rotation through Circles.
Description of template struct RBC_vec
| TSpace | a 2 dimensional space. |
| TInputValue | type of the input point e.g., TSpace::RealPoint. |
| TOutputValue | type of the output point e.g., TSpace::Point |
| typedef std::vector< TOutputValue > DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::Circle |
|
inline |
Constructor
| max_radius | the maximal distance of a point to the center of rotation. |
| smart | when 'true', tries to regularize the number of points of each circle, when 'false' each circle contains the point between distance r (included) and r+1 (excluded). |
Definition at line 72 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::init(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_angle, and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 138 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_angle.
|
inline |
Definition at line 150 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 146 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_center.
Referenced by main().
|
inline |
| r | an integer smaller than nbCircles(). |
Definition at line 183 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circles.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::computeCircle(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::rotate().
|
inlinestatic |
| r | an integer specifying the digital radius of the circle. |
Definition at line 190 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circle().
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::init().
|
inline |
Initialization
| R | the maximal distance of a point to the center of rotation. |
| smart | when 'true', tries to regularize the number of points of each circle, when 'false' each circle contains the point between distance r (included) and r+1 (excluded). |
Definition at line 85 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circles, DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::computeCircle(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::operator()(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::point2circle.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::RBC_vec().
|
inline |
Definition at line 171 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::rotate().
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::init().
|
inline |
| p | a lattice point |
Definition at line 157 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circle(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_angle, DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_center, and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::point2circle.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::operator()().
|
inline |
Definition at line 142 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::my_angle.
Referenced by main().
|
inline |
Definition at line 177 of file RBC_vec.h.
References DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circles.
| std::vector< Circle > DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circles |
the array of circles, where index is the integer radius of the circle.
Definition at line 61 of file RBC_vec.h.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::circle(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::init(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::size().
|
protected |
The angle of rotation.
Definition at line 218 of file RBC_vec.h.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::angle(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::RBC_vec(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::rotate(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::setAngle().
|
protected |
The center of rotation.
Definition at line 220 of file RBC_vec.h.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::center(), DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::RBC_vec(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::rotate().
| std::map< TOutputValue, TOutputValue > DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::point2circle |
the map associating to a lattice point its polar coordinates (r,idx) in the circles.
Definition at line 64 of file RBC_vec.h.
Referenced by DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::init(), and DGtal::RBC_vec< TSpace, TInputValue, TOutputValue >::rotate().