ini.trakem2.imaging
Class Blending

java.lang.Object
  extended by ini.trakem2.imaging.Blending

public final class Blending
extends java.lang.Object

Utility functions for blending images together, to remove contrast seams. Inspired and guided by Stephan Preibisch's blending functions in his Stitching plugins.


Constructor Summary
Blending()
           
 
Method Summary
static Bureaucrat blend(java.util.Set<Patch> patches, boolean respect_current_mask)
          For each file, find the weight for the alpha mask according to wether the pixel overlaps with other images (weighted alpha dependent on the distante to the image border and of that on the other images) or not (full alpha).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Blending

public Blending()
Method Detail

blend

public static final Bureaucrat blend(java.util.Set<Patch> patches,
                                     boolean respect_current_mask)
For each file, find the weight for the alpha mask according to wether the pixel overlaps with other images (weighted alpha dependent on the distante to the image border and of that on the other images) or not (full alpha). An image that doesn't overlap at all gets no alpha set at all.