Template Class LTM
Defined in File xf_ltm.hpp
Class Documentation
-
template<int IN_TYPE, int OUT_TYPE, int BLK_ROWS, int BLK_COLS, int ROWS, int COLS, int NPC>
class LTM Public Functions
-
inline LTM()
-
i(a[0], a[1], hBlkSize, offset)
- XF_CTUNAME (BILINEAR_INTERPOLATE_TYPE, NPC) x2
- out range ((l+1) *XF_PIXELWIDTH(BILINEAR_INTERPOLATE_TYPE, NPC) - 1, l *XF_PIXELWIDTH(BILINEAR_INTERPOLATE_TYPE, NPC))
- inline if (offset==hBlkSize)
-
interpolateOut write(out)
Public Members
- NPC in {XF_CTUNAME(IN_TYPE, NPC) ret = LOW()
-
CH0 __pad0__
- y = bilinear<BILINEAR_INTERPOLATE_TYPE>(x1, x2, vBlkSize, i)
- offset
Public Static Functions
- template<int T = IN_TYPE, typename std::enable_if<!is_floating_point< T >::value >::type * = nullptr> static inline constexpr XF_CTUNAME (IN_TYPE, NPC) LOW()
- template<int T = IN_TYPE, typename std::enable_if< is_floating_point< T >::value >::type * = nullptr> static inline constexpr XF_CTUNAME (IN_TYPE, NPC) LOW()
- template<int T = IN_TYPE, typename std::enable_if<!is_floating_point< T >::value >::type * = nullptr> static inline constexpr XF_CTUNAME (IN_TYPE, NPC) HIGH()
- template<int T = IN_TYPE, typename std::enable_if< is_floating_point< T >::value >::type * = nullptr> static inline constexpr XF_CTUNAME (IN_TYPE, NPC) HIGH()
- template<int T = IN_TYPE, typename std::enable_if<!is_floating_point< T >::value >::type * = nullptr> static inline float to_float (XF_CTUNAME(T, NPC) &a)
- template<int T = IN_TYPE, typename std::enable_if< is_floating_point< T >::value >::type * = nullptr> static inline float to_float (XF_CTUNAME(T, NPC) &a)
- template<int T = IN_TYPE, typename std::enable_if<!is_floating_point< T >::value >::type * = nullptr> static inline bool is_less (XF_CTUNAME(T, NPC) a, XF_CTUNAME(T, NPC) b)
- template<int T = IN_TYPE, typename std::enable_if< is_floating_point< T >::value >::type * = nullptr> static inline bool is_less (XF_CTUNAME(T, NPC) a, XF_CTUNAME(T, NPC) b)
- static static XF_CTUNAME (IN_TYPE, NPC) max(XF_DTUNAME(IN_TYPE
- static inline void processInterpolate (XF_CTUNAME(IN_TYPE, NPC) arr[MinMaxVArrSize][MinMaxHArrSize], LTMTile< BLK_ROWS, BLK_COLS, ROWS, COLS, NPC > &Tile, hls::stream< XF_TNAME(BILINEAR_INTERPOLATE_TYPE, NPC)> &interpolateOut)
-
static inline float compute(float val, float min, float max)
-
static inline void compute(xf::cv::Mat<IN_TYPE, ROWS, COLS, NPC> &in, LTMTile<BLK_ROWS, BLK_COLS, ROWS, COLS, NPC> &Tile, hls::stream<XF_TNAME(BILINEAR_INTERPOLATE_TYPE, NPC)> &interpolateMin, hls::stream<XF_TNAME(BILINEAR_INTERPOLATE_TYPE, NPC)> &interpolateMax, xf::cv::Mat<OUT_TYPE, ROWS, COLS, NPC> &out)
- static inline void process_i (xf::cv::Mat< IN_TYPE, ROWS, COLS, NPC > &in, LTMTile< BLK_ROWS, BLK_COLS, ROWS, COLS, NPC > &Tile, XF_CTUNAME(IN_TYPE, NPC) omin_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omin_w[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_w[MinMaxVArrSize][MinMaxHArrSize], xf::cv::Mat< OUT_TYPE, ROWS, COLS, NPC > &out)
- static inline void process (xf::cv::Mat< IN_TYPE, ROWS, COLS, NPC > &in, XF_CTUNAME(IN_TYPE, NPC) omin_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omin_w[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_w[MinMaxVArrSize][MinMaxHArrSize], xf::cv::Mat< OUT_TYPE, ROWS, COLS, NPC > &out)
- static inline void process (xf::cv::Mat< IN_TYPE, ROWS, COLS, NPC > &in, int block_rows, int block_cols, XF_CTUNAME(IN_TYPE, NPC) omin_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_r[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omin_w[MinMaxVArrSize][MinMaxHArrSize], XF_CTUNAME(IN_TYPE, NPC) omax_w[MinMaxVArrSize][MinMaxHArrSize], xf::cv::Mat< OUT_TYPE, ROWS, COLS, NPC > &out)
-
inline LTM()