コード例 #1
0
inline Vec3f sqr(const Vec3b& a)
{
    return Vec3f(CV_8TO32F_SQR(a[0]), CV_8TO32F_SQR(a[1]), CV_8TO32F_SQR(a[2]));
}
コード例 #2
0
ファイル: cvsumpixels.cpp プロジェクト: glo/ee384b
template<> inline double sqr(uchar a) { return CV_8TO32F_SQR(a); }
コード例 #3
0
inline float sqr(uchar a) { return CV_8TO32F_SQR(a); }