Commit 4cd01777 authored by Julia Garriga Ferrer's avatar Julia Garriga Ferrer
Browse files

[core][dataset] Apply 2D ROI to the transformation matrices

parent 1855979d
......@@ -720,6 +720,9 @@ class Dataset():
if urls is None:
return
new_data = Data(urls, self.running_data.metadata, self._in_memory)
if self.transformation:
transformation = [apply_2D_ROI(axis, origin, size, center) for axis in self.transformation]
if indices is None:
shape = list(self.data.shape)[:-2]
shape.append(new_data.shape[-2])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment