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
6922b948
Commit
6922b948
authored
Jul 30, 2015
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5093 from sturkmen72:patch-5
parents
2b2bc83b
9dd41a81
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
how_to_scan_images.cpp
...orial_code/core/how_to_scan_images/how_to_scan_images.cpp
+3
-3
No files found.
samples/cpp/tutorial_code/core/how_to_scan_images/how_to_scan_images.cpp
View file @
6922b948
...
...
@@ -134,7 +134,7 @@ int main( int argc, char* argv[])
Mat
&
ScanImageAndReduceC
(
Mat
&
I
,
const
uchar
*
const
table
)
{
// accept only char type matrices
CV_Assert
(
I
.
depth
()
!=
sizeof
(
uchar
)
);
CV_Assert
(
I
.
depth
()
==
CV_8U
);
int
channels
=
I
.
channels
();
...
...
@@ -165,7 +165,7 @@ Mat& ScanImageAndReduceC(Mat& I, const uchar* const table)
Mat
&
ScanImageAndReduceIterator
(
Mat
&
I
,
const
uchar
*
const
table
)
{
// accept only char type matrices
CV_Assert
(
I
.
depth
()
!=
sizeof
(
uchar
)
);
CV_Assert
(
I
.
depth
()
==
CV_8U
);
const
int
channels
=
I
.
channels
();
switch
(
channels
)
...
...
@@ -197,7 +197,7 @@ Mat& ScanImageAndReduceIterator(Mat& I, const uchar* const table)
Mat
&
ScanImageAndReduceRandomAccess
(
Mat
&
I
,
const
uchar
*
const
table
)
{
// accept only char type matrices
CV_Assert
(
I
.
depth
()
!=
sizeof
(
uchar
)
);
CV_Assert
(
I
.
depth
()
==
CV_8U
);
const
int
channels
=
I
.
channels
();
switch
(
channels
)
...
...
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