Skip to content
Snippets Groups Projects
Commit 92d815d5 authored by Arin Wongprommoon's avatar Arin Wongprommoon
Browse files

[WIP] feat!(aliby): ImageDummy pads loaded image

WHY IS THIS CHANGE NEEDED?:
- currently has one time point, one channel, one z-stack and thus
  mimicking usual Image.data structure.  this isn't what we want to test.

HOW DOES THE CHANGE SOLVE THE PROBLEM?:
- use pad_array() to pad with zeros so that the shape is as desired

REFERENCES:
- MR !10
parent 13f11054
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,11 @@ class ImageDummy(BaseLocalImage): ...@@ -188,7 +188,11 @@ class ImageDummy(BaseLocalImage):
img, (1, 1, img.shape[-3], img.shape[-2], img.shape[-1]) img, (1, 1, img.shape[-3], img.shape[-2], img.shape[-1])
) )
# Pads t, c, and z dimensions # Pads t, c, and z dimensions
# .... img = self.pad_array(
img, dim=0, n_empty_slices=199
) # 200 timepoints total
img = self.pad_array(img, dim=1, n_empty_slices=2) # 3 channels
img = self.pad_array(img, dim=2, n_empty_slices=4) # 5 z-stacks
return img return img
def name(self): def name(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment