Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.ip.qualitymeasure
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.ip.qualitymeasure
Commits
0b20aff7
Commit
0b20aff7
authored
Jun 29, 2017
by
David GEISSBUHLER
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Faster c++ remove_highlights algoritm integarted.
parent
6a6dff4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
bob/ip/qualitymeasure/msu_iqa_features.py
bob/ip/qualitymeasure/msu_iqa_features.py
+15
-3
No files found.
bob/ip/qualitymeasure/msu_iqa_features.py
View file @
0b20aff7
...
...
@@ -9,7 +9,9 @@ import scipy.signal as ssg
import
bob.ip.base
import
bob.ip.color
from
.
import
galbally_iqm_features
as
iqm
from
.
import
tan_specular_highlights
as
tsh
#from . import tan_specular_highlights as tsh
from
._library
import
remove_highlights
''' Utility functions '''
...
...
@@ -155,8 +157,18 @@ def compute_iqa_specularity_features(rgbImage, startEps=0.05):
"""
# separate the specular and diffuse components of input color image.
speckleFreeImg
,
diffuseImg
,
speckleImg
=
tsh
.
remove_highlights
(
rgbImage
.
astype
(
float
),
startEps
,
verboseFlag
=
False
)
# original python version
#speckleFreeImg, diffuseImg, speckleImg = tsh.remove_highlights(
# rgbImage.astype(float), startEps, verboseFlag=False)
speckleFreeImg
,
diffuseImg
,
speckleImg
=
remove_highlights
(
rgbImage
.
astype
(
np
.
float32
),
startEps
)
#speckleImg[np.where(np.isinf(speckleImg))] = 0
#speckleImg[np.where(np.isnan(speckleImg))] = 0
#speckleImg[np.where(speckleImg < 0)] = 0
#speckleImg[np.where(speckleImg > 255)] = 255
# speckleImg contains the specular-component
if
len
(
speckleImg
.
shape
)
==
3
:
...
...
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