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
09490188
Commit
09490188
authored
Mar 28, 2012
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#1365 Fixed numerous bugs in Bayer2RGB_VNG_8u SSE optimization, added simple regression test
parent
32b9bc1d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
color.cpp
modules/imgproc/src/color.cpp
+0
-0
test_color.cpp
modules/imgproc/test/test_color.cpp
+22
-0
No files found.
modules/imgproc/src/color.cpp
View file @
09490188
This diff is collapsed.
Click to expand it.
modules/imgproc/test/test_color.cpp
View file @
09490188
...
...
@@ -1658,6 +1658,7 @@ void CV_ColorBayerTest::prepare_to_validation( int /*test_case_idx*/ )
CV_Error
(
CV_StsUnsupportedFormat
,
""
);
}
/////////////////////////////////////////////////////////////////////////////////////////////////
TEST
(
Imgproc_ColorGray
,
accuracy
)
{
CV_ColorGrayTest
test
;
test
.
safe_run
();
}
...
...
@@ -1669,3 +1670,24 @@ TEST(Imgproc_ColorLab, accuracy) { CV_ColorLabTest test; test.safe_run(); }
TEST
(
Imgproc_ColorLuv
,
accuracy
)
{
CV_ColorLuvTest
test
;
test
.
safe_run
();
}
TEST
(
Imgproc_ColorRGB
,
accuracy
)
{
CV_ColorRGBTest
test
;
test
.
safe_run
();
}
TEST
(
Imgproc_ColorBayer
,
accuracy
)
{
CV_ColorBayerTest
test
;
test
.
safe_run
();
}
TEST
(
Imgproc_ColorBayerVNG
,
accuracy
)
{
cvtest
::
TS
&
ts
=
*
cvtest
::
TS
::
ptr
();
Mat
given
=
imread
(
ts
.
get_data_path
()
+
"/cvtcolor/bayerVNG_input.png"
,
CV_LOAD_IMAGE_GRAYSCALE
);
Mat
gold
=
imread
(
ts
.
get_data_path
()
+
"/cvtcolor/bayerVNG_gold.png"
,
CV_LOAD_IMAGE_UNCHANGED
);
Mat
result
;
cvtColor
(
given
,
result
,
CV_BayerBG2BGR_VNG
,
3
);
EXPECT_EQ
(
gold
.
type
(),
result
.
type
());
EXPECT_EQ
(
gold
.
cols
,
result
.
cols
);
EXPECT_EQ
(
gold
.
rows
,
result
.
rows
);
Mat
diff
;
absdiff
(
gold
,
result
,
diff
);
EXPECT_EQ
(
0
,
countNonZero
(
diff
.
reshape
(
1
)
>
1
));
}
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