Skip to content

Commit

Permalink
Remove backprojection dependency on config for slice dimensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
We-Gold committed Jul 31, 2024
1 parent 0b8220c commit 6e46a7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/ouroboros/pipeline/backproject_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ def process_bounding_box(
num_channels = (
None if len(straightened_volume.shape) == 3 else straightened_volume.shape[-1]
)
slice_width, slice_height = straightened_volume.shape[1], straightened_volume.shape[2]
durations["memmap"].append(time.perf_counter() - start)

# Get the slices from the straightened volume
Expand All @@ -334,7 +335,7 @@ def process_bounding_box(
grids = np.array(
[
generate_coordinate_grid_for_rect(
slice_rects[i], config.slice_width, config.slice_height
slice_rects[i], slice_width, slice_height
)
for i in slice_indices
]
Expand Down

0 comments on commit 6e46a7f

Please sign in to comment.