saalfeldlab / render

Render transformed image tiles
GNU General Public License v2.0
34 stars 32 forks source link

Add (interactive) background correction #197

Open minnerbe opened 1 week ago

minnerbe commented 1 week ago

This PR adds tools for correcting global shading on large FIBSEM volumes (e.g., here). These tools are:

For supplying model parameters to the spark client, I used an ad hoc json representation, since the model is expected to vary in z. This representation is documented in BackgroundCorrectionClient. Feedback about the documentation and the representation itself is very welcome.

One particular problem with doing this at the level of a stack is that we would need an exported mask to not also correct regions where there is no tissue. Is it safe to assume that a mask will always be exported when background correction is done? In this case, I will add support for masks.