question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edges of dataset load black patches

See original GitHub issue

As all the tiles are warped to one crs I believe the edge of the dataset loads black patches. I attached an example of a warped NAIP tile that is rotated because of the warping. The BoundingBox is based on min & max values therefore capures more than the actual outline of the tile.

Is there a good way to handle this? Maybe shrinking the BoundingBox somehow to only contain data.

PS: This is also an example of why loading just the hit in #547 does not work even for datasets perpendicular to their crs. Will have to investigate how the merge handles this.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
adamjstewartcommented, May 31, 2022

It depends on if your goal is training or prediction. For training, yes, it’s fine to lose a bit of data assuming you have a lot of data. For prediction, you want to make a prediction for every pixel on the map, not just the ones near the center of each image tile. I agree that this would be a useful addition though. I’m not sure if there’s a way to automatically predict the maximum size of the bounding box within the image that contains data. I guess it depends on the metadata available for that particular satellite.

0reactions
Modexuscommented, Jun 1, 2022

Ah yes predicting, I didn’t think of that as I only really train for research.

Are the landsat images already rotated or is it the same effect from warping? It may be feasible to warp the coordinates of the bounds and use the smaller value for the bounding box.

If they are already rotated is it possible to warp the bounds back to the original crs (if known) and then warp the coordinates to the new crs?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove near black edges off some rasters - Esri Community
Hello, I would like to mosaic hundreds of pictures into a single dataset. Each individual picture has a near black frame around the...
Read more >
Extra Episode: Edge Detection – Image Processing with Python
If we zoom in on the edge more closely, as in this image, we can see that the edge between the black and...
Read more >
Improving the display of raster data—Help | ArcGIS for Desktop
Gamma does not affect the black or white values in a raster dataset, only the middle values. By applying a gamma correction, you...
Read more >
Incremental refresh for datasets and real-time data in Power BI
An incremental refresh policy to partition the table, refreshing only the most recent import partition(s), and optionally leveraging an ...
Read more >
NetLogo 6.3.0 User Manual: Gis Extension
For line data, each vertex list will represent the vertices of a line that makes up ... gis:load-dataset gis:store-dataset gis:type-of gis:patch-dataset ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found