Commit c0b9df4e authored by Manuel Günther's avatar Manuel Günther

Fixed datatype issue with LDAIR preprocessor

parent 67d43d17
......@@ -54,7 +54,7 @@ class LDAIR (bob.bio.face.preprocessor.FaceCrop):
def _numpy_image(self, image):
"""Converts the givne image into a numpy color image in Bob format"""
np_image = image.asMatrix3D()
bob_image = numpy.ndarray((np_image.shape[0], np_image.shape[2], np_image.shape[1]), dtype = numpy.float64)
bob_image = numpy.ndarray((np_image.shape[0], np_image.shape[2], np_image.shape[1]), dtype = numpy.uint8)
# iterate over color layers
for j in range(np_image.shape[0]):
......
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