v0.8.16
wkcuber:
webknossos python lib:
- Refactored the BufferedSliceWriter and added a BufferedSliceReader. #425
- Breaking changes in BufferedSliceWriter:
- The data no longer gets transposed: previously the format of the slices was [y,x]; now it is [x,y]
- The interface of the constructor was changed:
- A
View(orMagView) is now required as datasource - The parameter
dimensioncan be used to specify the axis along the data is sliced - The offset is expected to be in the magnification of the view
- A
- This class is now supposed to be used within a context manager and the slices are written by sending them to the generator (see documentation of the class).
- BufferedSliceReader
- This class was added complementary to the BufferedSliceWriter
- Added methods to get a BufferedSliceReader/BufferedSliceWriter from a View directly