robosat icon indicating copy to clipboard operation
robosat copied to clipboard

Mirror tiles at borders if adjacent tiles are missing

Open daniel-j-h opened this issue 7 years ago • 0 comments

At the moment we predict the tile segmentation probabilities by adding a border to the tile. The idea is to do prediction on the larger images to get masks and then crop out the original mask.

This border is made up of (e.g. 32) pixels from the eight adjacent tiles:

x x x
x o x
x x x

Predicting on tile o means we add a small border band from all x tiles.

halfdone composite

There are two cases when adjacent tiles may not be present:

  • hard negative mining on a randomly sampled set of tiles
  • predicting at the border of the dataset (e.g. predicting on multiple tifs)

When there are adjacent tiles missing we currently have a black border. This can lead to false predictions. We should instead mirror the image at the border when there are no adjacent tiles. This will reduce or eliminate the tile border problems when there are tiles missing.

Task

  • [ ] Mirror image at border when adjacent tile is missing; here

daniel-j-h avatar Jun 24 '18 20:06 daniel-j-h