Commit 7fa50d1b authored by Jay Laura's avatar Jay Laura
Browse files

fixes: roi center to be the pixel center

parent bcce95b1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ class Roi():
    @property
    def center(self):
        ie = self.image_extent
        return ((ie[1] - ie[0])-1)/2., ((ie[3]-ie[2])-1)/2.
        return ((ie[1] - ie[0])-1)/2. + 0.5, ((ie[3]-ie[2])-1)/2. + 0.5

    @property
    def is_valid(self):