mapbox / nodata

Because the pixels you can't see are harder than the ones you can.
MIT License
1 stars 3 forks source link

Purpose of this repo + where we are at. #2

Closed dnomadb closed 8 years ago

dnomadb commented 9 years ago

Purpose:

The main idea of this repo is to capture the tools we need to work w/ nodata:

I've experimented with blobbing out and compositing over "actual" data, and the results look promising - there are only tiny artifacts in extrapolated areas:

image

I'll pick this back up when I am back, but until then, would love for anyone to start poking at this.

cc @mapbox/satellite @isiyu @yhahn

dnomadb commented 9 years ago

@yhahn an update on where I am at:

Right now, I have it set up so that you can specify the (blobbed|filled|smergled) bands. Check out the results (purposefully did a 10px blob on bands 1, 2, and 3): nodata

When we run this through pxm-composite (w/o ze old seamfilling), we get this:

image

It's not just the alpha band that is masking this - the data from r, g, and b themselves are 0 now: image

If we blob all bands then composite, we see two things:

image

One is that darker edge artifacts still exist - they've just been moved. The second is that there are weird extrapolation artifacts where we've essentially filled too much.

This big question that are coming up for me in pre-blobbing jpegification is: how do we make sure blobbed pixels don't go "over" good pixels? Also, how are we going to preserve the blobbed data values (under masked areas) with the existing compositing method?

Basically - do we also have to make a custom compositor that will handle this? Or am i misunderstanding the sketch you can in your mind?

dnomadb commented 8 years ago

^ This is all good!