Commit 0a6b3b74 authored by André Anjos's avatar André Anjos 💬

If sample does not have roi, then returns only image

parent 98f7c7ac
......@@ -40,6 +40,11 @@ class File(BioFile):
image = super(File, self).load(*args, **kwargs)
image = numpy.rot90(image, 3)
if not self.has_roi():
return image
roi = self.__f.roi()
# calculates the 90 degrees anti-clockwise rotated RoI points
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment