Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
bcf8bdb4
Commit
bcf8bdb4
authored
Jun 03, 2013
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed constructors for functional objects (added __host__ modifier)
parent
58e47275
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
62 deletions
+62
-62
color_detail.hpp
...es/gpu/include/opencv2/gpu/device/detail/color_detail.hpp
+0
-0
functional.hpp
modules/gpu/include/opencv2/gpu/device/functional.hpp
+0
-0
utility.hpp
modules/gpu/include/opencv2/gpu/device/utility.hpp
+2
-2
calib3d.cu
modules/gpu/src/cuda/calib3d.cu
+4
-4
canny.cu
modules/gpu/src/cuda/canny.cu
+6
-6
element_operations.cu
modules/gpu/src/cuda/element_operations.cu
+50
-50
No files found.
modules/gpu/include/opencv2/gpu/device/detail/color_detail.hpp
View file @
bcf8bdb4
This diff is collapsed.
Click to expand it.
modules/gpu/include/opencv2/gpu/device/functional.hpp
View file @
bcf8bdb4
This diff is collapsed.
Click to expand it.
modules/gpu/include/opencv2/gpu/device/utility.hpp
View file @
bcf8bdb4
...
...
@@ -124,8 +124,8 @@ namespace cv { namespace gpu { namespace device
struct
WithOutMask
{
__device__
__forceinline__
WithOutMask
(){}
__
device__
__forceinline__
WithOutMask
(
const
WithOutMask
&
mask
){}
__
host__
__
device__
__forceinline__
WithOutMask
(){}
__
host__
__device__
__forceinline__
WithOutMask
(
const
WithOutMask
&
){}
__device__
__forceinline__
void
next
()
const
{
...
...
modules/gpu/src/cuda/calib3d.cu
View file @
bcf8bdb4
...
...
@@ -67,8 +67,8 @@ namespace cv { namespace gpu { namespace device
crot1.x * p.x + crot1.y * p.y + crot1.z * p.z + ctransl.y,
crot2.x * p.x + crot2.y * p.y + crot2.z * p.z + ctransl.z);
}
__device__ __forceinline__ TransformOp() {}
__device__ __forceinline__ TransformOp(const TransformOp&) {}
__
host__ __
device__ __forceinline__ TransformOp() {}
__
host__ __
device__ __forceinline__ TransformOp(const TransformOp&) {}
};
void call(const PtrStepSz<float3> src, const float* rot,
...
...
@@ -106,8 +106,8 @@ namespace cv { namespace gpu { namespace device
(cproj0.x * t.x + cproj0.y * t.y) / t.z + cproj0.z,
(cproj1.x * t.x + cproj1.y * t.y) / t.z + cproj1.z);
}
__device__ __forceinline__ ProjectOp() {}
__device__ __forceinline__ ProjectOp(const ProjectOp&) {}
__
host__ __
device__ __forceinline__ ProjectOp() {}
__
host__ __
device__ __forceinline__ ProjectOp(const ProjectOp&) {}
};
void call(const PtrStepSz<float3> src, const float* rot,
...
...
modules/gpu/src/cuda/canny.cu
View file @
bcf8bdb4
...
...
@@ -62,8 +62,8 @@ namespace canny
return ::abs(x) + ::abs(y);
}
__device__ __forceinline__ L1() {}
__device__ __forceinline__ L1(const L1&) {}
__
host__ __
device__ __forceinline__ L1() {}
__
host__ __
device__ __forceinline__ L1(const L1&) {}
};
struct L2 : binary_function<int, int, float>
{
...
...
@@ -72,8 +72,8 @@ namespace canny
return ::sqrtf(x * x + y * y);
}
__device__ __forceinline__ L2() {}
__device__ __forceinline__ L2(const L2&) {}
__
host__ __
device__ __forceinline__ L2() {}
__
host__ __
device__ __forceinline__ L2(const L2&) {}
};
}
...
...
@@ -470,8 +470,8 @@ namespace canny
return (uchar)(-(e >> 1));
}
__device__ __forceinline__ GetEdges() {}
__device__ __forceinline__ GetEdges(const GetEdges&) {}
__
host__ __
device__ __forceinline__ GetEdges() {}
__
host__ __
device__ __forceinline__ GetEdges(const GetEdges&) {}
};
}
...
...
modules/gpu/src/cuda/element_operations.cu
View file @
bcf8bdb4
...
...
@@ -162,8 +162,8 @@ namespace arithm
return vadd4(a, b);
}
__device__ __forceinline__ VAdd4() {}
__
device__ __forceinline__ VAdd4(const VAdd4& other
) {}
__
host__ __
device__ __forceinline__ VAdd4() {}
__
host__ __device__ __forceinline__ VAdd4(const VAdd4&
) {}
};
////////////////////////////////////
...
...
@@ -175,8 +175,8 @@ namespace arithm
return vadd2(a, b);
}
__device__ __forceinline__ VAdd2() {}
__
device__ __forceinline__ VAdd2(const VAdd2& other
) {}
__
host__ __
device__ __forceinline__ VAdd2() {}
__
host__ __device__ __forceinline__ VAdd2(const VAdd2&
) {}
};
////////////////////////////////////
...
...
@@ -188,8 +188,8 @@ namespace arithm
return saturate_cast<D>(a + b);
}
__device__ __forceinline__ AddMat() {}
__
device__ __forceinline__ AddMat(const AddMat& other
) {}
__
host__ __
device__ __forceinline__ AddMat() {}
__
host__ __device__ __forceinline__ AddMat(const AddMat&
) {}
};
}
...
...
@@ -397,8 +397,8 @@ namespace arithm
return vsub4(a, b);
}
__device__ __forceinline__ VSub4() {}
__
device__ __forceinline__ VSub4(const VSub4& other
) {}
__
host__ __
device__ __forceinline__ VSub4() {}
__
host__ __device__ __forceinline__ VSub4(const VSub4&
) {}
};
////////////////////////////////////
...
...
@@ -410,8 +410,8 @@ namespace arithm
return vsub2(a, b);
}
__device__ __forceinline__ VSub2() {}
__
device__ __forceinline__ VSub2(const VSub2& other
) {}
__
host__ __
device__ __forceinline__ VSub2() {}
__
host__ __device__ __forceinline__ VSub2(const VSub2&
) {}
};
////////////////////////////////////
...
...
@@ -423,8 +423,8 @@ namespace arithm
return saturate_cast<D>(a - b);
}
__device__ __forceinline__ SubMat() {}
__
device__ __forceinline__ SubMat(const SubMat& other
) {}
__
host__ __
device__ __forceinline__ SubMat() {}
__
host__ __device__ __forceinline__ SubMat(const SubMat&
) {}
};
}
...
...
@@ -617,8 +617,8 @@ namespace arithm
return res;
}
__device__ __forceinline__ Mul_8uc4_32f() {}
__
device__ __forceinline__ Mul_8uc4_32f(const Mul_8uc4_32f& other
) {}
__
host__ __
device__ __forceinline__ Mul_8uc4_32f() {}
__
host__ __device__ __forceinline__ Mul_8uc4_32f(const Mul_8uc4_32f&
) {}
};
struct Mul_16sc4_32f : binary_function<short4, float, short4>
...
...
@@ -629,8 +629,8 @@ namespace arithm
saturate_cast<short>(a.z * b), saturate_cast<short>(a.w * b));
}
__device__ __forceinline__ Mul_16sc4_32f() {}
__
device__ __forceinline__ Mul_16sc4_32f(const Mul_16sc4_32f& other
) {}
__
host__ __
device__ __forceinline__ Mul_16sc4_32f() {}
__
host__ __device__ __forceinline__ Mul_16sc4_32f(const Mul_16sc4_32f&
) {}
};
template <typename T, typename D> struct Mul : binary_function<T, T, D>
...
...
@@ -640,8 +640,8 @@ namespace arithm
return saturate_cast<D>(a * b);
}
__device__ __forceinline__ Mul() {}
__
device__ __forceinline__ Mul(const Mul& other
) {}
__
host__ __
device__ __forceinline__ Mul() {}
__
host__ __device__ __forceinline__ Mul(const Mul&
) {}
};
template <typename T, typename S, typename D> struct MulScale : binary_function<T, T, D>
...
...
@@ -888,8 +888,8 @@ namespace arithm
return b != 0 ? saturate_cast<D>(a / b) : 0;
}
__device__ __forceinline__ Div() {}
__
device__ __forceinline__ Div(const Div& other
) {}
__
host__ __
device__ __forceinline__ Div() {}
__
host__ __device__ __forceinline__ Div(const Div&
) {}
};
template <typename T> struct Div<T, float> : binary_function<T, T, float>
{
...
...
@@ -898,8 +898,8 @@ namespace arithm
return b != 0 ? static_cast<float>(a) / b : 0;
}
__device__ __forceinline__ Div() {}
__
device__ __forceinline__ Div(const Div& other
) {}
__
host__ __
device__ __forceinline__ Div() {}
__
host__ __device__ __forceinline__ Div(const Div&
) {}
};
template <typename T> struct Div<T, double> : binary_function<T, T, double>
{
...
...
@@ -908,8 +908,8 @@ namespace arithm
return b != 0 ? static_cast<double>(a) / b : 0;
}
__device__ __forceinline__ Div() {}
__
device__ __forceinline__ Div(const Div& other
) {}
__
host__ __
device__ __forceinline__ Div() {}
__
host__ __device__ __forceinline__ Div(const Div&
) {}
};
template <typename T, typename S, typename D> struct DivScale : binary_function<T, T, D>
...
...
@@ -1196,8 +1196,8 @@ namespace arithm
return vabsdiff4(a, b);
}
__device__ __forceinline__ VAbsDiff4() {}
__
device__ __forceinline__ VAbsDiff4(const VAbsDiff4& other
) {}
__
host__ __
device__ __forceinline__ VAbsDiff4() {}
__
host__ __device__ __forceinline__ VAbsDiff4(const VAbsDiff4&
) {}
};
////////////////////////////////////
...
...
@@ -1209,8 +1209,8 @@ namespace arithm
return vabsdiff2(a, b);
}
__device__ __forceinline__ VAbsDiff2() {}
__
device__ __forceinline__ VAbsDiff2(const VAbsDiff2& other
) {}
__
host__ __
device__ __forceinline__ VAbsDiff2() {}
__
host__ __device__ __forceinline__ VAbsDiff2(const VAbsDiff2&
) {}
};
////////////////////////////////////
...
...
@@ -1235,8 +1235,8 @@ namespace arithm
return saturate_cast<T>(_abs(a - b));
}
__device__ __forceinline__ AbsDiffMat() {}
__
device__ __forceinline__ AbsDiffMat(const AbsDiffMat& other
) {}
__
host__ __
device__ __forceinline__ AbsDiffMat() {}
__
host__ __device__ __forceinline__ AbsDiffMat(const AbsDiffMat&
) {}
};
}
...
...
@@ -1370,8 +1370,8 @@ namespace arithm
return saturate_cast<T>(x * x);
}
__device__ __forceinline__ Sqr() {}
__
device__ __forceinline__ Sqr(const Sqr& other
) {}
__
host__ __
device__ __forceinline__ Sqr() {}
__
host__ __device__ __forceinline__ Sqr(const Sqr&
) {}
};
}
...
...
@@ -1466,8 +1466,8 @@ namespace arithm
return saturate_cast<T>(f(x));
}
__device__ __forceinline__ Exp() {}
__
device__ __forceinline__ Exp(const Exp& other
) {}
__
host__ __
device__ __forceinline__ Exp() {}
__
host__ __device__ __forceinline__ Exp(const Exp&
) {}
};
}
...
...
@@ -1507,8 +1507,8 @@ namespace arithm
return vcmpeq4(a, b);
}
__device__ __forceinline__ VCmpEq4() {}
__
device__ __forceinline__ VCmpEq4(const VCmpEq4& other
) {}
__
host__ __
device__ __forceinline__ VCmpEq4() {}
__
host__ __device__ __forceinline__ VCmpEq4(const VCmpEq4&
) {}
};
struct VCmpNe4 : binary_function<uint, uint, uint>
{
...
...
@@ -1517,8 +1517,8 @@ namespace arithm
return vcmpne4(a, b);
}
__device__ __forceinline__ VCmpNe4() {}
__
device__ __forceinline__ VCmpNe4(const VCmpNe4& other
) {}
__
host__ __
device__ __forceinline__ VCmpNe4() {}
__
host__ __device__ __forceinline__ VCmpNe4(const VCmpNe4&
) {}
};
struct VCmpLt4 : binary_function<uint, uint, uint>
{
...
...
@@ -1527,8 +1527,8 @@ namespace arithm
return vcmplt4(a, b);
}
__device__ __forceinline__ VCmpLt4() {}
__
device__ __forceinline__ VCmpLt4(const VCmpLt4& other
) {}
__
host__ __
device__ __forceinline__ VCmpLt4() {}
__
host__ __device__ __forceinline__ VCmpLt4(const VCmpLt4&
) {}
};
struct VCmpLe4 : binary_function<uint, uint, uint>
{
...
...
@@ -1537,8 +1537,8 @@ namespace arithm
return vcmple4(a, b);
}
__device__ __forceinline__ VCmpLe4() {}
__
device__ __forceinline__ VCmpLe4(const VCmpLe4& other
) {}
__
host__ __
device__ __forceinline__ VCmpLe4() {}
__
host__ __device__ __forceinline__ VCmpLe4(const VCmpLe4&
) {}
};
////////////////////////////////////
...
...
@@ -2008,8 +2008,8 @@ namespace arithm
return vmin4(a, b);
}
__device__ __forceinline__ VMin4() {}
__
device__ __forceinline__ VMin4(const VMin4& other
) {}
__
host__ __
device__ __forceinline__ VMin4() {}
__
host__ __device__ __forceinline__ VMin4(const VMin4&
) {}
};
////////////////////////////////////
...
...
@@ -2021,8 +2021,8 @@ namespace arithm
return vmin2(a, b);
}
__device__ __forceinline__ VMin2() {}
__
device__ __forceinline__ VMin2(const VMin2& other
) {}
__
host__ __
device__ __forceinline__ VMin2() {}
__
host__ __device__ __forceinline__ VMin2(const VMin2&
) {}
};
}
...
...
@@ -2100,8 +2100,8 @@ namespace arithm
return vmax4(a, b);
}
__device__ __forceinline__ VMax4() {}
__
device__ __forceinline__ VMax4(const VMax4& other
) {}
__
host__ __
device__ __forceinline__ VMax4() {}
__
host__ __device__ __forceinline__ VMax4(const VMax4&
) {}
};
////////////////////////////////////
...
...
@@ -2113,8 +2113,8 @@ namespace arithm
return vmax2(a, b);
}
__device__ __forceinline__ VMax2() {}
__
device__ __forceinline__ VMax2(const VMax2& other
) {}
__
host__ __
device__ __forceinline__ VMax2() {}
__
host__ __device__ __forceinline__ VMax2(const VMax2&
) {}
};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment