aboutsummaryrefslogtreecommitdiff
path: root/libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py
diff options
context:
space:
mode:
Diffstat (limited to 'libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py')
-rw-r--r--libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py b/libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py
index 12bc53ff7..37305898a 100644
--- a/libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py
+++ b/libvpx/tools/3D-Reconstruction/MotionEST/GroundTruth.py
@@ -29,7 +29,7 @@ class GroundTruth(MotionEST):
def __init__(self, cur_f, ref_f, blk_sz, gt_path, mf=None, mask=None):
self.name = 'ground truth'
super(GroundTruth, self).__init__(cur_f, ref_f, blk_sz)
- self.mask = np.zeros((self.num_row, self.num_col), dtype=np.bool)
+ self.mask = np.zeros((self.num_row, self.num_col), dtype=bool)
if gt_path:
with open(gt_path) as gt_file:
lines = gt_file.readlines()
@@ -42,7 +42,7 @@ class GroundTruth(MotionEST):
self.mask[i, -j - 1] = True
continue
#the order of original file is flipped on the x axis
- self.mf[i, -j - 1] = np.array([float(y), -float(x)], dtype=np.int)
+ self.mf[i, -j - 1] = np.array([float(y), -float(x)], dtype=int)
else:
self.mf = mf
self.mask = mask