webknossos-libs icon indicating copy to clipboard operation
webknossos-libs copied to clipboard

Function to Transform WKW Datasets

Open Tobias314 opened this issue 1 year ago • 0 comments

Detailed Description

  • a dataset layer should have a function like transform(coordinate_mapping, inverse_coordinate_mapping, output_layer, roi_bbox) which allows to specify a transformation as a lambda which maps coordinates from one coordinate system to another (e.g. could be an AffineTransform) as well as specifies an output layer for the result and an optional bounding box in case the transformation should only be applied to a subset of the dataset layer. The function should then materialize the transformed version of the input layer in the output layer. Ideally it does so using multiprocessing and chunking to make sure all processing cores are utilized while memory limits are kept.

I (@Tobias314 ) already created a first prototype of this for another project.

Use Cases & Context

  • Rotate a dataset
  • Warp a dataset
  • Materialize a transformation used for viewing a Dataset in WK

Tobias314 avatar Nov 21 '24 12:11 Tobias314