|
DGtal
1.5.beta
|
OTC : Optimal Transport through Circle bijective rotation. More...
#include <DGtal/images/bijectiveRotations/OTC.h>
Public Member Functions | |
| OTC (const std::vector< std::vector< int > > &table, int dr, TOutputValue c, int W, int H) | |
| TOutputValue | center () const |
| void | set_angle (double alpha) |
| int | outSize () const |
| TOutputValue | rotatePoint (TInputValue p) const |
| TOutputValue | operator() (const TInputValue &aInput) const |
| void | rotateInput () |
| template<typename TImage > | |
| TImage | rotateImage (const TImage &img) const |
| std::string | tostring () const |
Data Fields | |
| const std::vector< std::vector< int > > & | _table |
| int | _dr |
| TOutputValue | my_center |
| int | max_radius |
| RBC_vec< TSpace, TInputValue, TOutputValue > | rbc |
| int | angle |
| int | _W |
| int | _H |
| int | _outS |
| std::vector< int > | _offset |
OTC : Optimal Transport through Circle bijective rotation.
Description of template struct OTC
| 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 |
|
inline |
OTC Constructor.
| table | precomputed table thanks to the OT implementation |
| dr | width of each ring (OTC-2, OTC3) |
| c | center of rotation |
| W,H | size of the image |
Definition at line 71 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::_dr, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_H, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_offset, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_outS, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_W, DGtal::distance2(), DGtal::H, max(), DGtal::OTC< TSpace, TInputValue, TOutputValue >::max_radius, DGtal::OTC< TSpace, TInputValue, TOutputValue >::my_center, and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rbc.
|
inline |
Definition at line 105 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::my_center.
|
inline |
Definition at line 161 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
|
inline |
Definition at line 115 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::_outS.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
|
inline |
Definition at line 176 of file OTC.h.
|
inline |
Definition at line 166 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::_H, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_W, and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
|
inline |
Definition at line 117 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::_dr, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_offset, DGtal::OTC< TSpace, TInputValue, TOutputValue >::_table, DGtal::OTC< TSpace, TInputValue, TOutputValue >::my_center, DGtal::OTC< TSpace, TInputValue, TOutputValue >::outSize(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rbc.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::operator()(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotateInput().
|
inline |
Definition at line 108 of file OTC.h.
References DGtal::OTC< TSpace, TInputValue, TOutputValue >::rbc.
|
inline |
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::_dr |
Definition at line 54 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::_H |
Definition at line 60 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotateInput().
| std::vector< int > DGtal::OTC< TSpace, TInputValue, TOutputValue >::_offset |
Definition at line 62 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::_outS |
Definition at line 61 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::outSize().
| const std::vector< std::vector< int > >& DGtal::OTC< TSpace, TInputValue, TOutputValue >::_table |
Definition at line 53 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::_W |
Definition at line 59 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotateInput().
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::angle |
| int DGtal::OTC< TSpace, TInputValue, TOutputValue >::max_radius |
Definition at line 56 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC().
| TOutputValue DGtal::OTC< TSpace, TInputValue, TOutputValue >::my_center |
Definition at line 55 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::center(), DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint().
| RBC_vec<TSpace,TInputValue,TOutputValue> DGtal::OTC< TSpace, TInputValue, TOutputValue >::rbc |
Definition at line 57 of file OTC.h.
Referenced by DGtal::OTC< TSpace, TInputValue, TOutputValue >::OTC(), DGtal::OTC< TSpace, TInputValue, TOutputValue >::rotatePoint(), and DGtal::OTC< TSpace, TInputValue, TOutputValue >::set_angle().