def test_seammarker_getColSliceOnPointIsUpToFalse(self): viet = self.loadImageCol() points = getPointListFromPointPath(self.points_down_path) point = points[0] slicer = PointSlicer(point, viet) colslice = slicer.getColumnSliceOnPoint(thresh=5, isUpTo=False)[0] # pdb.set_trace() compimg = os.path.join(self.imagedir, 'colslice.png') compimg = np.array(Image.open(compimg)) self.compareArrays(colslice, compimg, "column slice is not the same for sliced image")
def generateColSlice(self): if self.GEN_COL_SLICE: viet = self.loadImageCol() points = getPointListFromPointPath(self.points_down_path) point = points[0] slicer = PointSlicer(point, viet) colslice = slicer.getColumnSliceOnPoint(point, viet, thresh=5, isUpTo=False)[0] Image.fromarray(colslice).save(self.colslicePath)