Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
b501af81
Commit
b501af81
authored
Sep 11, 2014
by
Hossain Mahmud
Browse files
jenkins fix
#1
parent
cc13551b
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/visregtests/script.py
View file @
b501af81
...
@@ -97,7 +97,6 @@ for case in casesDir :
...
@@ -97,7 +97,6 @@ for case in casesDir :
if
(
ref
.
shape
==
testim
.
shape
)
:
if
(
ref
.
shape
==
testim
.
shape
)
:
test
=
np
.
abs
(
ref
.
astype
(
int
)
-
testim
.
astype
(
int
));
test
=
np
.
abs
(
ref
.
astype
(
int
)
-
testim
.
astype
(
int
));
else
:
else
:
print
"i'm in else! HELP me!"
test
=
ref
;
test
=
ref
;
# Store fully opaque image
# Store fully opaque image
rgb
=
test
[:,
:,
:
3
];
rgb
=
test
[:,
:,
:
3
];
...
@@ -109,7 +108,7 @@ for case in casesDir :
...
@@ -109,7 +108,7 @@ for case in casesDir :
# Calculate MSE and SSIM
# Calculate MSE and SSIM
mse
=
np
.
linalg
.
norm
(
test
);
mse
=
np
.
linalg
.
norm
(
test
);
reff
=
color
.
rgb2gray
(
ref
);
reff
=
color
.
rgb2gray
(
ref
);
testf
=
color
.
rgb2gray
(
test
);
testf
=
color
.
rgb2gray
(
test
.
astype
(
float
)
);
ssimval
=
ssim
(
reff
,
testf
);
ssimval
=
ssim
(
reff
,
testf
);
# XML
# XML
...
...
Write
Preview
Supports
Markdown
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