Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
6241296f
Commit
6241296f
authored
May 01, 2016
by
Balint Cristian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow vector<Mat> raster bands to SEEDS.
parent
46dd2631
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
seeds.cpp
modules/ximgproc/src/seeds.cpp
+25
-1
No files found.
modules/ximgproc/src/seeds.cpp
View file @
6241296f
...
...
@@ -375,7 +375,31 @@ void SuperpixelSEEDSImpl::initImageBins<float>(const Mat& img, int)
void
SuperpixelSEEDSImpl
::
initImage
(
InputArray
img
)
{
Mat
src
=
img
.
getMat
();
Mat
src
;
if
(
img
.
isMat
()
)
{
// get Mat
src
=
img
.
getMat
();
// image should be valid
CV_Assert
(
!
src
.
empty
()
);
}
else
if
(
img
.
isMatVector
()
)
{
vector
<
Mat
>
vec
;
// get vector Mat
img
.
getMatVector
(
vec
);
// array should be valid
CV_Assert
(
!
vec
.
empty
()
);
// merge into Mat
merge
(
vec
,
src
);
}
else
CV_Error
(
Error
::
StsInternal
,
"Invalid InputArray."
);
int
depth
=
src
.
depth
();
seeds_current_level
=
seeds_nr_levels
-
2
;
forwardbackward
=
true
;
...
...
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