the-lay / tiler

N-dimensional NumPy array tiling and merging with overlapping, padding and tapering
https://the-lay.github.io/tiler/
MIT License
66 stars 10 forks source link

How to merge files that been tiled using different lib? #1

Closed leocd91 closed 4 years ago

leocd91 commented 4 years ago

Btw, nice lib!

I already have horizontally tiled files with no overlap that I need to merge and use some of the windows using your lib. Is there any guide to do this?

the-lay commented 4 years ago

@leocd91 Unfortunately, for now, merging with Merger class is possible only after passing Tiler, implying the data was tiled with it. There is an example in examples directory.

The library is far from ready (version 0.0.1 :)) and with your use case I would advise to just use numpy. For vertical merging you can use np.vstack or np.hstack for horizontal.

leocd91 commented 4 years ago

it's okay, I managed to repredict it from your tiler then merge it back lol.

anyway, I think a feature where the overlap pixel automatically calculated is a good idea. for example, if one wants to have n-tiles with the same shape from an image.

the-lay commented 4 years ago

Glad you've solved it! I agree, such feature would be very useful. Hopefully I will have more time to work on that in December!