Commit cc13551b authored by Hossain Mahmud's avatar Hossain Mahmud

small fix for absolute image diff

parent d4aa071c
......@@ -95,7 +95,7 @@ for case in casesDir :
testim = io.imread(testFilePath);
# Check dimension of the file before finding difference
if (ref.shape == testim.shape) :
test = ref-testim;
test = np.abs(ref.astype(int)-testim.astype(int));
else :
print "i'm in else! HELP me!"
test = ref;
......
Markdown is supported
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