saalfeldlab / render

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

Make intensities uniform again #154

Closed minnerbe closed 1 year ago

minnerbe commented 1 year ago

This is an attempt at providing a parameter to adjust the overall uniformity during intensity correction.

Before: Coefficient tiles within an image tile were identity connected, parts that overlap with another image tile are matched. This ensures global smoothness of the result (i.e., no hard cuts between two image tiles).

Now: In addition, all coefficient tiles are connected to a single tile by a point match "average intensity of coefficient tile" <-> 0.5. This tile is fixed during optimization. This should skew the average intensity of every tile towards the "target intensity" 0.5. A parameter --equilibrationWeight is provided to tune the weight of this match; setting this parameter to 0.0 disables this mechanism and does intensity correction as before.

trautmane commented 1 year ago

Needed to merge this into newsolver branch locally - changing the branch target in the GutHub UIO was a bad idea.