Skip to content

Commit 7e739df

Browse files
authored
Added the square function to the source file
1 parent afce16a commit 7e739df

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/ximgproc/src/globalmatting.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ namespace cv
88
{
99
namespace ximgproc
1010
{
11+
template <typename T>
12+
inline T sqr(T a)
13+
{
14+
return a * a;
15+
}
1116

1217
struct IntensityComp
1318
{

0 commit comments

Comments
 (0)