|
DGtal
1.5.beta
|
CDLR : Rotation with Discrete Line Reflections,. More...
#include <DGtal/images/bijectiveRotations/CDLR.h>
Public Member Functions | |
| CDLR (double ang, TOutputValue ptCenter, std::shared_ptr< Policy< TSpace, HyperRectDomain< TSpace >, CDLR_naiverotation< TSpace >>> policy) | |
| double | angle () const |
| void | set_angle (const double new_angle) |
| void | dslSolver (double ang, TOutputValue ptCenter) |
| TOutputValue | center () const |
| TOutputValue & | center () |
| TOutputValue | rotate (const TInputValue &p) const |
| TOutputValue | operator() (const TInputValue &p) const |
| template<typename Img > | |
| Img | rotateImage (Img img) const |
| std::string | tostring () const |
| template<typename TImage > | |
| TImage | rotateImage (const TImage img) const |
Protected Attributes | |
| double | my_angle |
| The angle of rotation. More... | |
| TOutputValue | my_center |
| The center of rotation. More... | |
| CDLR_naiverotation< TSpace, TInputValue, TOutputValue > | my_naive_rdlr_rotation |
| std::shared_ptr< Policy< TSpace, HyperRectDomain< TSpace >, CDLR_naiverotation< TSpace > > > | my_policy |
Private Attributes | |
| double | a |
| DSL specific variables, see Andres paper. More... | |
| double | b |
| double | my_minAngle |
CDLR : Rotation with Discrete Line Reflections,.
Description of template struct CDLR
| 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 |
| DGtal::CDLR< TSpace, TInputValue, TOutputValue >::CDLR | ( | double | ang, |
| TOutputValue | ptCenter, | ||
| std::shared_ptr< Policy< TSpace, HyperRectDomain< TSpace >, CDLR_naiverotation< TSpace >>> | policy | ||
| ) |
CDLR Constructor.
| ang | the angle given in radians. |
| ptCenter | the center of rotation. |
| policy | either Linf, L2, Lcontinuity, see Policy |
Definition at line 115 of file CDLR.h.
References DGtal::CDLR< TSpace, TInputValue, TOutputValue >::dslSolver().
|
inline |
Definition at line 64 of file CDLR.h.
References DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_angle.
|
inline |
Definition at line 81 of file CDLR.h.
References DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 79 of file CDLR.h.
References DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_center.
| void DGtal::CDLR< TSpace, TInputValue, TOutputValue >::dslSolver | ( | double | ang, |
| TOutputValue | ptCenter | ||
| ) |
initialisation function to find the composition of Discrete Line Reflection that minimises the sum of linf and lcontinuity
look for the pair of reflections that minimizes the Linf and Lcontinuity norm
Definition at line 120 of file CDLR.h.
Referenced by DGtal::CDLR< TSpace, TInputValue, TOutputValue >::CDLR(), and DGtal::CDLR< TSpace, TInputValue, TOutputValue >::set_angle().
| TOutputValue DGtal::CDLR< TSpace, TInputValue, TOutputValue >::operator() | ( | const TInputValue & | p | ) | const |
Definition at line 171 of file CDLR.h.
| TOutputValue DGtal::CDLR< TSpace, TInputValue, TOutputValue >::rotate | ( | const TInputValue & | p | ) | const |
| TImage DGtal::CDLR< TSpace, TInputValue, TOutputValue >::rotateImage | ( | const TImage | img | ) | const |
Definition at line 178 of file CDLR.h.
| Img DGtal::CDLR< TSpace, TInputValue, TOutputValue >::rotateImage | ( | Img | img | ) | const |
|
inline |
Definition at line 66 of file CDLR.h.
References DGtal::CDLR< TSpace, TInputValue, TOutputValue >::dslSolver(), DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_angle, DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_center, and DGtal::CDLR< TSpace, TInputValue, TOutputValue >::my_naive_rdlr_rotation.
|
inline |
|
private |
|
private |
|
protected |
The angle of rotation.
Definition at line 98 of file CDLR.h.
Referenced by DGtal::CDLR< TSpace, TInputValue, TOutputValue >::angle(), and DGtal::CDLR< TSpace, TInputValue, TOutputValue >::set_angle().
|
protected |
The center of rotation.
Definition at line 100 of file CDLR.h.
Referenced by DGtal::CDLR< TSpace, TInputValue, TOutputValue >::center(), and DGtal::CDLR< TSpace, TInputValue, TOutputValue >::set_angle().
|
private |
|
protected |
Definition at line 104 of file CDLR.h.
Referenced by DGtal::CDLR< TSpace, TInputValue, TOutputValue >::set_angle().
|
protected |