Commit b501af81 authored by Hossain Mahmud's avatar Hossain Mahmud
Browse files

jenkins fix #1

parent cc13551b
...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment