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, res, u, upresU(), upresV(), and v.
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, Ptex::e_top, res, u, and v.
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, res, u, and uw.
Referenced by PtexSeparableFilter::apply(), and makeSymmetric().
|
inline |
Definition at line 342 of file PtexSeparableKernel.h.
References kv, res, v, and vw.
Referenced by PtexSeparableFilter::apply(), and makeSymmetric().
|
inline |
|
inline |
|
inline |
Definition at line 397 of file PtexSeparableKernel.h.
References downresU(), downresV(), ku, kv, PtexUtils::min(), res, u, uw, v, and vw.
Referenced by PtexSeparableFilter::applyToCorner().
|
inline |
Definition at line 129 of file PtexSeparableKernel.h.
References accumulate(), kv, Ptex::m_black, v, and vw.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 110 of file PtexSeparableKernel.h.
References accumulate(), ku, Ptex::m_black, u, and uw.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 120 of file PtexSeparableKernel.h.
References accumulate(), ku, Ptex::m_black, res, u, and uw.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
Definition at line 139 of file PtexSeparableKernel.h.
References accumulate(), kv, Ptex::m_black, res, v, and vw.
Referenced by PtexSeparableFilter::splitAndApply().
|
inline |
|
inline |
Definition at line 254 of file PtexSeparableKernel.h.
References flipU(), flipV(), rot, and swapUV().
Referenced by PtexSeparableFilter::applyAcrossEdge(), PtexSeparableFilter::applyToCorner(), and PtexSeparableFilter::applyToCornerFace().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 96 of file PtexSeparableKernel.h.
References ku, kv, u, uw, v, and vw.
Referenced by PtexSeparableFilter::eval().
|
inline |
|
inline |
Definition at line 371 of file PtexSeparableKernel.h.
References ku, res, u, and uw.
Referenced by adjustMainToSubface(), and PtexSeparableFilter::eval().
|
inline |
Definition at line 384 of file PtexSeparableKernel.h.
References kv, res, v, and vw.
Referenced by adjustMainToSubface(), and PtexSeparableFilter::eval().
|
inline |
Definition at line 105 of file PtexSeparableKernel.h.
References accumulate(), ku, kv, uw, and vw.
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(), and set().
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(), flipU(), makeSymmetric(), mergeL(), mergeR(), operator=(), PtexSeparableKernel(), set(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), upresU(), and weight().
float PtexSeparableKernel::kubuff[kmax] |
Definition at line 56 of file PtexSeparableKernel.h.
Referenced by PtexSeparableKernel(), and 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(), flipV(), makeSymmetric(), mergeB(), mergeT(), operator=(), PtexSeparableKernel(), set(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), upresV(), and weight().
float PtexSeparableKernel::kvbuff[kmax] |
Definition at line 57 of file PtexSeparableKernel.h.
Referenced by PtexSeparableKernel(), and set().
Res PtexSeparableKernel::res |
Definition at line 50 of file PtexSeparableKernel.h.
Referenced by adjustMainToSubface(), adjustSubfaceToMain(), PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), downresU(), downresV(), PtexSeparableFilter::eval(), flipU(), flipV(), makeSymmetric(), mergeR(), mergeT(), operator=(), PtexSeparableKernel(), set(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), splitR(), splitT(), swapUV(), upresU(), and upresV().
int PtexSeparableKernel::rot |
Definition at line 58 of file PtexSeparableKernel.h.
Referenced by PtexSeparableFilter::apply(), operator=(), PtexSeparableKernel(), rotate(), and set().
int PtexSeparableKernel::u |
Definition at line 51 of file PtexSeparableKernel.h.
Referenced by adjustMainToSubface(), adjustSubfaceToMain(), PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), downresU(), flipU(), makeSymmetric(), mergeL(), mergeR(), operator=(), PtexSeparableKernel(), set(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), and upresU().
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(), downresU(), PtexSeparableFilter::eval(), flipU(), makeSymmetric(), mergeL(), mergeR(), operator=(), PtexSeparableKernel(), set(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), upresU(), and weight().
int PtexSeparableKernel::v |
Definition at line 51 of file PtexSeparableKernel.h.
Referenced by adjustMainToSubface(), adjustSubfaceToMain(), PTEX_NAMESPACE_BEGIN::Apply(), PtexSeparableFilter::apply(), PTEX_NAMESPACE_BEGIN::ApplyN(), PTEX_NAMESPACE_BEGIN::ApplyS(), PtexWidth4Filter::buildKernel(), PtexBoxFilter::buildKernel(), PtexBilinearFilter::buildKernel(), downresV(), flipV(), makeSymmetric(), mergeB(), mergeT(), operator=(), PtexSeparableKernel(), set(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), and upresV().
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(), downresV(), PtexSeparableFilter::eval(), flipV(), makeSymmetric(), mergeB(), mergeT(), operator=(), PtexSeparableKernel(), set(), PtexSeparableFilter::splitAndApply(), splitB(), splitL(), splitR(), splitT(), stripZeros(), swapUV(), upresV(), and weight().