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
8237418b
Commit
8237418b
authored
Dec 19, 2014
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Allocator parameter to cudev::GpuMat_ contructors
parent
f054d631
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
gpumat.hpp
modules/cudev/include/opencv2/cudev/ptr2d/detail/gpumat.hpp
+14
-14
gpumat.hpp
modules/cudev/include/opencv2/cudev/ptr2d/gpumat.hpp
+7
-7
No files found.
modules/cudev/include/opencv2/cudev/ptr2d/detail/gpumat.hpp
View file @
8237418b
...
...
@@ -51,33 +51,33 @@
namespace
cv
{
namespace
cudev
{
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
()
:
GpuMat
()
__host__
GpuMat_
<
T
>::
GpuMat_
(
Allocator
*
allocator
)
:
GpuMat
(
allocator
)
{
flags
=
(
flags
&
~
CV_MAT_TYPE_MASK
)
|
DataType
<
T
>::
type
;
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
int
arows
,
int
acols
)
:
GpuMat
(
arows
,
acols
,
DataType
<
T
>::
type
)
__host__
GpuMat_
<
T
>::
GpuMat_
(
int
arows
,
int
acols
,
Allocator
*
allocator
)
:
GpuMat
(
arows
,
acols
,
DataType
<
T
>::
type
,
allocator
)
{
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
Size
asize
)
:
GpuMat
(
asize
.
height
,
asize
.
width
,
DataType
<
T
>::
type
)
__host__
GpuMat_
<
T
>::
GpuMat_
(
Size
asize
,
Allocator
*
allocator
)
:
GpuMat
(
asize
.
height
,
asize
.
width
,
DataType
<
T
>::
type
,
allocator
)
{
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
int
arows
,
int
acols
,
Scalar
val
)
:
GpuMat
(
arows
,
acols
,
DataType
<
T
>::
type
,
val
)
__host__
GpuMat_
<
T
>::
GpuMat_
(
int
arows
,
int
acols
,
Scalar
val
,
Allocator
*
allocator
)
:
GpuMat
(
arows
,
acols
,
DataType
<
T
>::
type
,
val
,
allocator
)
{
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
Size
asize
,
Scalar
val
)
:
GpuMat
(
asize
.
height
,
asize
.
width
,
DataType
<
T
>::
type
,
val
)
__host__
GpuMat_
<
T
>::
GpuMat_
(
Size
asize
,
Scalar
val
,
Allocator
*
allocator
)
:
GpuMat
(
asize
.
height
,
asize
.
width
,
DataType
<
T
>::
type
,
val
,
allocator
)
{
}
...
...
@@ -88,8 +88,8 @@ __host__ GpuMat_<T>::GpuMat_(const GpuMat_& m)
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
const
GpuMat
&
m
)
:
GpuMat
()
__host__
GpuMat_
<
T
>::
GpuMat_
(
const
GpuMat
&
m
,
Allocator
*
allocator
)
:
GpuMat
(
allocator
)
{
flags
=
(
flags
&
~
CV_MAT_TYPE_MASK
)
|
DataType
<
T
>::
type
;
...
...
@@ -134,8 +134,8 @@ __host__ GpuMat_<T>::GpuMat_(const GpuMat_& m, Rect roi)
}
template
<
typename
T
>
__host__
GpuMat_
<
T
>::
GpuMat_
(
InputArray
arr
)
:
GpuMat
()
__host__
GpuMat_
<
T
>::
GpuMat_
(
InputArray
arr
,
Allocator
*
allocator
)
:
GpuMat
(
allocator
)
{
flags
=
(
flags
&
~
CV_MAT_TYPE_MASK
)
|
DataType
<
T
>::
type
;
upload
(
arr
);
...
...
modules/cudev/include/opencv2/cudev/ptr2d/gpumat.hpp
View file @
8237418b
...
...
@@ -63,21 +63,21 @@ public:
typedef
T
value_type
;
//! default constructor
__host__
GpuMat_
();
__host__
GpuMat_
(
Allocator
*
allocator
=
defaultAllocator
()
);
//! constructs GpuMat of the specified size
__host__
GpuMat_
(
int
arows
,
int
acols
);
__host__
explicit
GpuMat_
(
Size
asize
);
__host__
GpuMat_
(
int
arows
,
int
acols
,
Allocator
*
allocator
=
defaultAllocator
()
);
__host__
explicit
GpuMat_
(
Size
asize
,
Allocator
*
allocator
=
defaultAllocator
()
);
//! constucts GpuMat and fills it with the specified value
__host__
GpuMat_
(
int
arows
,
int
acols
,
Scalar
val
);
__host__
GpuMat_
(
Size
asize
,
Scalar
val
);
__host__
GpuMat_
(
int
arows
,
int
acols
,
Scalar
val
,
Allocator
*
allocator
=
defaultAllocator
()
);
__host__
GpuMat_
(
Size
asize
,
Scalar
val
,
Allocator
*
allocator
=
defaultAllocator
()
);
//! copy constructor
__host__
GpuMat_
(
const
GpuMat_
&
m
);
//! copy/conversion contructor. If m is of different type, it's converted
__host__
explicit
GpuMat_
(
const
GpuMat
&
m
);
__host__
explicit
GpuMat_
(
const
GpuMat
&
m
,
Allocator
*
allocator
=
defaultAllocator
()
);
//! constructs a matrix on top of user-allocated data. step is in bytes(!!!), regardless of the type
__host__
GpuMat_
(
int
arows
,
int
acols
,
T
*
adata
,
size_t
astep
=
Mat
::
AUTO_STEP
);
...
...
@@ -88,7 +88,7 @@ public:
__host__
GpuMat_
(
const
GpuMat_
&
m
,
Rect
roi
);
//! builds GpuMat from host memory (Blocking call)
__host__
explicit
GpuMat_
(
InputArray
arr
);
__host__
explicit
GpuMat_
(
InputArray
arr
,
Allocator
*
allocator
=
defaultAllocator
()
);
//! assignment operators
__host__
GpuMat_
&
operator
=
(
const
GpuMat_
&
m
);
...
...
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