|
DGtal
1.5.beta
|
QSH : Quasi Shears represents a bijective rotation through shears. More...
#include <DGtal/images/bijectiveRotations/QSH.h>
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((concepts::CSpace< TSpace >)) | |
| Checking concepts. More... | |
| BOOST_STATIC_ASSERT ((TSpace::dimension==2)) | |
| BOOST_STATIC_ASSERT ((TOutputValue::dimension==2)) | |
| BOOST_STATIC_ASSERT ((TInputValue::dimension==2)) | |
| TOutputValue | hqs (const TOutputValue X, const double a, const double b, const double c) const |
| TOutputValue | vqs (const TOutputValue X, const double a, const double b, const double c) const |
| TOutputValue | hqs_p (const TOutputValue X, const double ap, const double bp, const double omega) const |
| TOutputValue | vqs_p (const TOutputValue X, const double a, const double bp, const double omega) const |
| template<typename Img > | |
| Img | rotateImage (Img img) const |
| QSH (double ang, TOutputValue ptCenter) | |
| void | initQSHRotation () |
| init a QSH rotation using Andres' parameters More... | |
| double | angle () const |
| void | set_angle (const double new_angle) |
| set rotation angle More... | |
| TOutputValue | center () const |
| TOutputValue & | center () |
| TOutputValue | rotate (const TInputValue &p) const |
| TOutputValue | operator() (const TInputValue &p) 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... | |
Private Attributes | |
| const double | omega =1<<15 |
| shears variables More... | |
| double | a |
| double | aprime |
| double | bprime |
QSH : Quasi Shears represents a bijective rotation through shears.
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::QSH< TSpace, TInputValue, TOutputValue >::QSH | ( | double | ang, |
| TOutputValue | ptCenter | ||
| ) |
QSH Constructor.
| ang | the angle given in radians. |
| ptCenter | the center of rotation. |
Definition at line 132 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation().
|
inline |
Definition at line 92 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::my_angle.
| DGtal::QSH< TSpace, TInputValue, TOutputValue >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSpace< TSpace >) | ) |
Checking concepts.
| DGtal::QSH< TSpace, TInputValue, TOutputValue >::BOOST_STATIC_ASSERT | ( | (TInputValue::dimension==2) | ) |
| DGtal::QSH< TSpace, TInputValue, TOutputValue >::BOOST_STATIC_ASSERT | ( | (TOutputValue::dimension==2) | ) |
| DGtal::QSH< TSpace, TInputValue, TOutputValue >::BOOST_STATIC_ASSERT | ( | (TSpace::dimension==2) | ) |
|
inline |
Definition at line 101 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 99 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 60 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::hqs_p().
|
inline |
Definition at line 67 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::hqs().
|
inline |
init a QSH rotation using Andres' parameters
Definition at line 85 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::aprime, DGtal::QSH< TSpace, TInputValue, TOutputValue >::bprime, DGtal::QSH< TSpace, TInputValue, TOutputValue >::my_angle, and DGtal::QSH< TSpace, TInputValue, TOutputValue >::omega.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::QSH(), and DGtal::QSH< TSpace, TInputValue, TOutputValue >::set_angle().
| TOutputValue DGtal::QSH< TSpace, TInputValue, TOutputValue >::operator() | ( | const TInputValue & | p | ) | const |
| TOutputValue DGtal::QSH< TSpace, TInputValue, TOutputValue >::rotate | ( | const TInputValue & | p | ) | const |
| TImage DGtal::QSH< TSpace, TInputValue, TOutputValue >::rotateImage | ( | const TImage | img | ) | const |
Definition at line 158 of file QSH.h.
| Img DGtal::QSH< TSpace, TInputValue, TOutputValue >::rotateImage | ( | Img | img | ) | const |
|
inline |
set rotation angle
Definition at line 95 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation(), and DGtal::QSH< TSpace, TInputValue, TOutputValue >::my_angle.
|
inline |
|
inline |
Definition at line 63 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::vqs_p().
|
inline |
Definition at line 70 of file QSH.h.
References DGtal::QSH< TSpace, TInputValue, TOutputValue >::omega, and DGtal::QSH< TSpace, TInputValue, TOutputValue >::vqs().
|
private |
|
private |
Definition at line 125 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation().
|
private |
Definition at line 126 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation().
|
protected |
The angle of rotation.
Definition at line 116 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::angle(), DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation(), and DGtal::QSH< TSpace, TInputValue, TOutputValue >::set_angle().
|
protected |
The center of rotation.
Definition at line 118 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::center().
|
private |
shears variables
Definition at line 123 of file QSH.h.
Referenced by DGtal::QSH< TSpace, TInputValue, TOutputValue >::initQSHRotation(), and DGtal::QSH< TSpace, TInputValue, TOutputValue >::vqs_p().