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
7b90a1e8
Commit
7b90a1e8
authored
Aug 21, 2018
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #6349 - a bug in cuda::meanShiftSegmentation
parent
e9a1ccb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cudaimgproc.hpp
modules/cudaimgproc/include/opencv2/cudaimgproc.hpp
+1
-1
mssegmentation.cpp
modules/cudaimgproc/src/mssegmentation.cpp
+2
-2
No files found.
modules/cudaimgproc/include/opencv2/cudaimgproc.hpp
View file @
7b90a1e8
...
...
@@ -639,7 +639,7 @@ CV_EXPORTS void meanShiftProc(InputArray src, OutputArray dstr, OutputArray dsts
/** @brief Performs a mean-shift segmentation of the source image and eliminates small segments.
@param src Source image. Only CV_8UC4 images are supported for now.
@param dst Segmented image with the same size and type as src (host memory).
@param dst Segmented image with the same size and type as src (host
or gpu
memory).
@param sp Spatial window radius.
@param sr Color window radius.
@param minsize Minimum segment size. Smaller segments are merged.
...
...
modules/cudaimgproc/src/mssegmentation.cpp
View file @
7b90a1e8
...
...
@@ -372,8 +372,7 @@ void cv::cuda::meanShiftSegmentation(InputArray _src, OutputArray _dst, int sp,
}
// Create final image, color of each segment is the average color of its pixels
_dst
.
create
(
src
.
size
(),
src
.
type
());
Mat
dst
=
_dst
.
getMat
();
Mat
dst
(
src
.
size
(),
src
.
type
());
for
(
int
y
=
0
;
y
<
nrows
;
++
y
)
{
...
...
@@ -389,6 +388,7 @@ void cv::cuda::meanShiftSegmentation(InputArray _src, OutputArray _dst, int sp,
dstcol
[
3
]
=
255
;
}
}
dst
.
copyTo
(
_dst
);
}
#endif // #if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)
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