labsyspharm / ashlar

ASHLAR: Alignment by Simultaneous Harmonization of Layer/Adjacency Registration
https://labsyspharm.github.io/ashlar/
MIT License
126 stars 42 forks source link

Support different x and y overlaps in the fileseries reader #44

Open Yu-AnChen opened 5 years ago

Yu-AnChen commented 5 years ago

Would like to suggest default to one overlap size for both x and y direction but also allow two overlap numbers for [x-overlap, y-overlap] or other reasonable formats.

rainwashautumn commented 2 years ago

Have you solved the problem? I modified the tile_position function in the fileseries script as follows: from: def tile_position(self, i): row, col = self.tile_rc(i) return [row, col] self.tile_size(i) (1 - self.overlap)

to: def tile_position(self, i): row, col = self.tile_rc(i) return [row, col] self.tile_size(i) np.array([1 - self.overlapx,1 - self.overlapy]) It is found that there are longitudinal gaps in the Mosaic panoramic image.

image

In addition, I found obvious stitching traces on the edge of the mosaic image. Do you have any suggestions?

image
Yu-AnChen commented 2 years ago

Thanks @rainwashautumn, I have used a similar approach for my use case.

For the issue you are seeing, I'd recommend trying out different blending modes, #110 would be a reference for that. It might be helpful to also check out #92 and make some plots for quality check.