Skip to content

Commit

Permalink
update todo
Browse files Browse the repository at this point in the history
  • Loading branch information
m-albert committed Oct 23, 2020
1 parent d889c21 commit 603016d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@


###Performance
- stream fused blocks directly to file
- perform blockwise transformations to handle large target volumes
- optimize weight calculation (downscaling seems to take long)
- optimize weight calculation (downscaling seems to take long) (dask.array.coarsen?)


### Registration
Expand Down
5 changes: 3 additions & 2 deletions mvregfus/multiview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,8 +1686,9 @@ def affine_transform_dask(

def transform_chunk(x, matrix, offset, input, kwargs, block_info=None):

N = x.ndim
N = input.ndim
input_shape = input.shape
chunk_shape = block_info[None]['chunk-shape']

chunk_offset = np.array([i[0] for i in block_info[0]['array-location']])
# print('chunk_offset', chunk_offset)
Expand Down Expand Up @@ -1745,7 +1746,7 @@ def transform_chunk(x, matrix, offset, input, kwargs, block_info=None):
transformed_chunk = curr_ndimage.affine_transform(asarray(input_relevant),
asarray(matrix),
asarray(offset_modified),
output_shape=x.shape,
output_shape=chunk_shape,
order = 1)
# **kwargs)

Expand Down

0 comments on commit 603016d

Please sign in to comment.