Ptex
|
#include <PtexSeparableKernel.h>
Public Member Functions | |
PtexSeparableKernel () | |
PtexSeparableKernel (const PtexSeparableKernel &k) | |
PtexSeparableKernel & | operator= (const PtexSeparableKernel &k) |
void | set (Res resVal, int uVal, int vVal, int uwVal, int vwVal, const float *kuVal, const float *kvVal, int rotVal=0) |
void | stripZeros () |
float | weight () const |
void | mergeL (BorderMode mode) |
void | mergeR (BorderMode mode) |
void | mergeB (BorderMode mode) |
void | mergeT (BorderMode mode) |
void | splitL (PtexSeparableKernel &k) |
void | splitR (PtexSeparableKernel &k) |
void | splitB (PtexSeparableKernel &k) |
void | splitT (PtexSeparableKernel &k) |
void | flipU () |
void | flipV () |
void | swapUV () |
void | rotate (int rotVal) |
bool | adjustMainToSubface (int eid) |
void | adjustSubfaceToMain (int eid) |
void | downresU () |
void | downresV () |
void | upresU () |
void | upresV () |
float | makeSymmetric (float initialWeight) |
void | apply (float *dst, void *data, DataType dt, int nChan, int nTxChan) |
void | applyConst (float *dst, void *data, DataType dt, int nChan) |
Public Attributes | |
Res | res |
int | u |
int | v |
int | uw |
int | vw |
float * | ku |
float * | kv |
float | kubuff [kmax] |
float | kvbuff [kmax] |
int | rot |
Static Public Attributes | |
static const int | kmax = 10 |
Private Types | |
typedef void(* | ApplyFn) (PtexSeparableKernel &k, float *dst, void *data, int nChan, int nTxChan) |
typedef void(* | ApplyConstFn) (float weight, float *dst, void *data, int nChan) |
Static Private Member Functions | |
static float | accumulate (const float *p, int n) |
Static Private Attributes | |
static ApplyFn | applyFunctions [40] |
static ApplyConstFn | applyConstFunctions [20] |
Definition at line 48 of file PtexSeparableKernel.h.
|
private |
Definition at line 471 of file PtexSeparableKernel.h.
|
private |
Definition at line 470 of file PtexSeparableKernel.h.
|
inline |
Definition at line 60 of file PtexSeparableKernel.h.
|
inline |
|
inlinestaticprivate |
|
inline |
Definition at line 266 of file PtexSeparableKernel.h.
References Ptex::e_bottom, Ptex::e_left, Ptex::e_right, Ptex::e_top, upresU(), and upresV().
Referenced by PtexSeparableFilter::applyAcrossEdge(), and PtexSeparableFilter::applyToCornerFace().
|
inline |
Definition at line 302 of file PtexSeparableKernel.h.
References Ptex::e_bottom, Ptex::e_left, Ptex::e_right, and Ptex::e_top.
Referenced by PtexSeparableFilter::applyAcrossEdge(), PtexSeparableFilter::applyToCorner(), and PtexSeparableFilter::applyToCornerFace().
|
inline |
Definition at line 457 of file PtexSeparableKernel.h.
References applyFunctions.
Referenced by PtexSeparableFilter::apply().
|
inline |
Definition at line 464 of file PtexSeparableKernel.h.
References PtexUtils::applyConst(), and weight().
Referenced by PtexSeparableFilter::apply().
|
inline |
Definition at line 313 of file PtexSeparableKernel.h.
References ku.
Referenced by PtexSeparableFilter::apply(), and makeSymmetric().
|
inline |
Definition at line 342 of file PtexSeparableKernel.h.
References kv.
Referenced by PtexSeparableFilter::apply(), and makeSymmetric().
|
inline |
|
inline |
|
inline |
Definition at line 397 of file PtexSeparableKernel.h.
References downresU(), downresV(), PtexUtils::min(), and uw.
Referenced by PtexSeparableFilter::applyToCorner().
|
inline |
Definition at line 129 of file PtexSeparableKernel.h.
References accumulate(), Ptex::m_black, and v.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 110 of file PtexSeparableKernel.h.
References accumulate(), Ptex::m_black, and u.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 120 of file PtexSeparableKernel.h.
References accumulate(), and Ptex::m_black.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 139 of file PtexSeparableKernel.h.
References accumulate(), and Ptex::m_black.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
|
inline |
Definition at line 254 of file PtexSeparableKernel.h.
References flipU(), flipV(), and swapUV().
Referenced by PtexSeparableFilter::applyAcrossEdge(), PtexSeparableFilter::applyToCorner(), and PtexSeparableFilter::applyToCornerFace().
|
inline |
Definition at line 78 of file PtexSeparableKernel.h.
References kubuff, and kvbuff.
Referenced by operator=(), PtexSeparableKernel(), splitB(), splitL(), splitR(), and splitT().
|
inline |
Definition at line 192 of file PtexSeparableKernel.h.
References ku, kv, set(), uw, and v.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 148 of file PtexSeparableKernel.h.
References ku, kv, set(), u, v, and vw.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 171 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 214 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 96 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::eval().
|
inline |
Definition at line 246 of file PtexSeparableKernel.h.
Referenced by rotate().
|
inline |
Definition at line 371 of file PtexSeparableKernel.h.
Referenced by adjustMainToSubface(), and PtexSeparableFilter::eval().
|
inline |
Definition at line 384 of file PtexSeparableKernel.h.
Referenced by adjustMainToSubface(), and PtexSeparableFilter::eval().
|
inline |
Definition at line 105 of file PtexSeparableKernel.h.
References accumulate().
Referenced by applyConst(), PtexSeparableFilter::applyToCorner(), and PtexSeparableFilter::eval().
|
staticprivate |
Definition at line 473 of file PtexSeparableKernel.h.
|
staticprivate |
Definition at line 472 of file PtexSeparableKernel.h.
Referenced by apply().
|
static |
Definition at line 55 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::eval().
float* PtexSeparableKernel::ku |
Definition at line 53 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), downresU(), operator=(), PtexSeparableKernel(), splitB(), and splitL().
float PtexSeparableKernel::kubuff[kmax] |
Definition at line 56 of file PtexSeparableKernel.h.
Referenced by set().
float* PtexSeparableKernel::kv |
Definition at line 54 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), downresV(), operator=(), PtexSeparableKernel(), splitB(), and splitL().
float PtexSeparableKernel::kvbuff[kmax] |
Definition at line 57 of file PtexSeparableKernel.h.
Referenced by set().
Res PtexSeparableKernel::res |
Definition at line 50 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexSeparableFilter::eval(), operator=(), PtexSeparableKernel(), and PtexSeparableFilter::splitAndApply().
int PtexSeparableKernel::rot |
Definition at line 58 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::apply(), operator=(), and PtexSeparableKernel().
int PtexSeparableKernel::u |
Definition at line 51 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), mergeL(), operator=(), PtexSeparableKernel(), PtexSeparableFilter::splitAndApply(), splitL(), and splitR().
int PtexSeparableKernel::uw |
Definition at line 52 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexSeparableFilter::eval(), flipU(), makeSymmetric(), operator=(), PtexSeparableKernel(), PtexSeparableFilter::splitAndApply(), and splitB().
int PtexSeparableKernel::v |
Definition at line 51 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), mergeB(), operator=(), PtexSeparableKernel(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), and splitT().
int PtexSeparableKernel::vw |
Definition at line 52 of file PtexSeparableKernel.h.
Referenced by PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), PtexSeparableFilter::eval(), flipV(), operator=(), PtexSeparableKernel(), PtexSeparableFilter::splitAndApply(), and splitL().