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
6ebfa871
Commit
6ebfa871
authored
Sep 04, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delete a bunch more trailing whitespace that slipped through the cracks.
parent
33d8d8ff
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
25 deletions
+25
-25
color.cpp
modules/imgproc/src/color.cpp
+19
-19
smooth.cpp
modules/imgproc/src/smooth.cpp
+1
-1
AndroidManifest.xml
modules/java/android_test/AndroidManifest.xml
+2
-2
main.xml
modules/java/android_test/res/layout/main.xml
+3
-3
No files found.
modules/imgproc/src/color.cpp
View file @
6ebfa871
...
...
@@ -398,7 +398,7 @@ private:
struct
IPPColor2GrayFunctor
{
IPPColor2GrayFunctor
(
ippiColor2GrayFunc
_func
)
:
func
(
_func
)
IPPColor2GrayFunctor
(
ippiColor2GrayFunc
_func
)
:
func
(
_func
)
{
coeffs
[
0
]
=
0.114
f
;
coeffs
[
1
]
=
0.587
f
;
...
...
@@ -454,7 +454,7 @@ struct IPPReorderGeneralFunctor
}
bool
operator
()(
const
void
*
src
,
int
srcStep
,
void
*
dst
,
int
dstStep
,
int
cols
,
int
rows
)
const
{
Mat
temp
;
Mat
temp
;
temp
.
create
(
rows
,
cols
,
CV_MAKETYPE
(
depth
,
3
));
if
(
func1
(
src
,
srcStep
,
temp
.
data
,
(
int
)
temp
.
step
[
0
],
ippiSize
(
cols
,
rows
),
order
)
<
0
)
return
false
;
...
...
@@ -478,7 +478,7 @@ struct IPPGeneralReorderFunctor
}
bool
operator
()(
const
void
*
src
,
int
srcStep
,
void
*
dst
,
int
dstStep
,
int
cols
,
int
rows
)
const
{
Mat
temp
;
Mat
temp
;
temp
.
create
(
rows
,
cols
,
CV_MAKETYPE
(
depth
,
3
));
if
(
func1
(
src
,
srcStep
,
temp
.
data
,
(
int
)
temp
.
step
[
0
],
ippiSize
(
cols
,
rows
))
<
0
)
return
false
;
...
...
@@ -3651,8 +3651,8 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
dcn
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
code
==
CV_BGR2BGRA
||
code
==
CV_RGB2RGBA
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPReorderFunctor
(
ippiSwapChannelsC3C4RTab
[
depth
],
0
,
1
,
2
))
)
...
...
@@ -3737,7 +3737,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
CV_Assert
(
scn
==
3
||
scn
==
4
);
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
1
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
code
==
CV_BGR2GRAY
)
{
...
...
@@ -3789,13 +3789,13 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
CV_Assert
(
scn
==
1
&&
(
dcn
==
3
||
dcn
==
4
));
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
dcn
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
code
==
CV_GRAY2BGR
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPGray2BGRFunctor
(
ippiCopyP3C3RTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_GRAY2BGRA
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPGray2BGRAFunctor
(
ippiCopyP3C3RTab
[
depth
],
ippiSwapChannelsC3C4RTab
[
depth
],
depth
))
)
...
...
@@ -3882,7 +3882,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
3
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
code
==
CV_BGR2XYZ
&&
scn
==
3
)
{
...
...
@@ -3898,7 +3898,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralFunctor
(
ippiRGB2XYZTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_RGB2XYZ
&&
scn
==
4
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPReorderGeneralFunctor
(
ippiSwapChannelsC4C3RTab
[
depth
],
ippiRGB2XYZTab
[
depth
],
0
,
1
,
2
,
depth
))
)
...
...
@@ -3921,7 +3921,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
dcn
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
code
==
CV_XYZ2BGR
&&
dcn
==
3
)
{
...
...
@@ -3964,7 +3964,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
3
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
depth
==
CV_8U
||
depth
==
CV_16U
)
{
...
...
@@ -3982,12 +3982,12 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralFunctor
(
ippiRGB2HSVTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_RGB2HSV_FULL
&&
scn
==
4
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPReorderGeneralFunctor
(
ippiSwapChannelsC4C3RTab
[
depth
],
ippiRGB2HSVTab
[
depth
],
0
,
1
,
2
,
depth
))
)
return
;
}
}
else
if
(
code
==
CV_BGR2HLS_FULL
&&
scn
==
3
)
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPReorderGeneralFunctor
(
ippiSwapChannelsC3RTab
[
depth
],
ippiRGB2HLSTab
[
depth
],
2
,
1
,
0
,
depth
))
)
...
...
@@ -4002,7 +4002,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralFunctor
(
ippiRGB2HLSTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_RGB2HLS_FULL
&&
scn
==
4
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPReorderGeneralFunctor
(
ippiSwapChannelsC4C3RTab
[
depth
],
ippiRGB2HLSTab
[
depth
],
0
,
1
,
2
,
depth
))
)
...
...
@@ -4045,7 +4045,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
_dst
.
create
(
sz
,
CV_MAKETYPE
(
depth
,
dcn
));
dst
=
_dst
.
getMat
();
#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7)
if
(
depth
==
CV_8U
||
depth
==
CV_16U
)
{
...
...
@@ -4063,12 +4063,12 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralFunctor
(
ippiHSV2RGBTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_HSV2RGB_FULL
&&
dcn
==
4
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPGeneralReorderFunctor
(
ippiHSV2RGBTab
[
depth
],
ippiSwapChannelsC3C4RTab
[
depth
],
0
,
1
,
2
,
depth
))
)
return
;
}
}
else
if
(
code
==
CV_HLS2BGR_FULL
&&
dcn
==
3
)
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralReorderFunctor
(
ippiHLS2RGBTab
[
depth
],
ippiSwapChannelsC3RTab
[
depth
],
2
,
1
,
0
,
depth
))
)
...
...
@@ -4083,7 +4083,7 @@ void cv::cvtColor( InputArray _src, OutputArray _dst, int code, int dcn )
{
if
(
CvtColorIPPLoopCopy
(
src
,
dst
,
IPPGeneralFunctor
(
ippiHLS2RGBTab
[
depth
]))
)
return
;
}
}
else
if
(
code
==
CV_HLS2RGB_FULL
&&
dcn
==
4
)
{
if
(
CvtColorIPPLoop
(
src
,
dst
,
IPPGeneralReorderFunctor
(
ippiHLS2RGBTab
[
depth
],
ippiSwapChannelsC3C4RTab
[
depth
],
0
,
1
,
2
,
depth
))
)
...
...
modules/imgproc/src/smooth.cpp
View file @
6ebfa871
...
...
@@ -1951,7 +1951,7 @@ bilateralFilter_8u( const Mat& src, Mat& dst, int d,
if
(
ok
)
return
;
}
#endif
vector
<
float
>
_color_weight
(
cn
*
256
);
vector
<
float
>
_space_weight
(
d
*
d
);
vector
<
int
>
_space_ofs
(
d
*
d
);
...
...
modules/java/android_test/AndroidManifest.xml
View file @
6ebfa871
...
...
@@ -3,7 +3,7 @@
package=
"org.opencv.test"
android:versionCode=
"1"
android:versionName=
"1.0"
>
<uses-sdk
android:minSdkVersion=
"8"
/>
<!-- We add an application tag here just so that we can indicate that
...
...
@@ -20,7 +20,7 @@
<instrumentation
android:name=
"org.opencv.test.OpenCVTestRunner"
android:targetPackage=
"org.opencv.test"
android:label=
"Tests for org.opencv"
/>
<uses-permission
android:name=
"android.permission.CAMERA"
/>
<uses-feature
android:name=
"android.hardware.camera"
/>
<uses-feature
android:name=
"android.hardware.camera.autofocus"
/>
...
...
modules/java/android_test/res/layout/main.xml
View file @
6ebfa871
...
...
@@ -4,9 +4,9 @@
android:layout_width=
"fill_parent"
android:layout_height=
"fill_parent"
>
<TextView
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
<TextView
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:text=
"@string/hello"
/>
</LinearLayout>
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