Skip to content

feat(aliby): dummy image for tiler input

Arin Wongprommoon requested to merge 053-dummy-image into dev

WHY IS THIS CHANGE NEEDED?:

  • We can only test the pipeline using minimal datasets or test experiments, which test the whole pipeline, but not individual components (e.g. tiler, segmentation, extraction) in isolation.

HOW DOES THE CHANGE SOLVE THE PROBLEM?:

  • Added TIFF file from unit test (staffa:560) to examples/tiler/
  • Created dummy image class (ImageDummy in aliby.io.image), which mimics the other image classes, and loads the dummy image file, then pads it with zeros to create an Image instance that Tiler accepts.
  • Created dummy() method for Tiler that initiates a dummy Tiler instance based on the dummy image. This method also implements a minimal Omero metadata dict to get it to function.
  • Added a test for the dummy image class to check whether the padding function works as expected.
  • Extended the Tiler test to include the dummy Tiler.
  • Improved aliby.io.image and aliby.tile.tiler documentation.

WHAT SIDE EFFECTS DOES THIS CHANGE HAVE?

  • This is not a breaking change, and all tests passed, so I don't expect anything weird.

EVIDENCE THAT COMMIT WORKS:

REFERENCES

Edited by Arin Wongprommoon

Merge request reports

Loading