samdobson / image_slicer

Split images into tiles. Join the tiles back together.
http://samdobson.github.io/image_slicer
MIT License
151 stars 73 forks source link

Joined image showing vertical and horizontal line on image #40

Open sandeepdahake opened 3 years ago

sandeepdahake commented 3 years ago

I am using image_slicer to split and join the tiff image. I split the tiff in 9 parts and after getting the prediction I joined this 9 parts into a single png image but this joined image is showing the vertical and horizontal line on the image. Below is my code that I using to split and join the tiff. Size of my tiff file is around 450 MB.

img = 'test.tif'
num_tiles = 16
tiles = image_slicer.slice(img, num_tiles)

for tile in tiles:
    name = tile.filename
    print('Processing file',name)
    out = model.predict(inp=name,out_fname=name,class_names = class_names,
    colors = class_colors,overlay_img = True,show_legends = False)
    tile.image = Image.open(name)

image = join(tiles)
image.save('join.png')

Here I upload the sample image.

ZidyP

How can I remove this lines from an image?