Class BlendingPixelFusion

java.lang.Object
mpicbg.stitching.fusion.BlendingPixelFusion
All Implemented Interfaces:
PixelFusion
Direct Known Subclasses:
BlendingPixelFusionIgnoreZero

public class BlendingPixelFusion extends Object implements PixelFusion
  • Field Details

    • fractionBlended

      public static double fractionBlended
  • Constructor Details

    • BlendingPixelFusion

      public BlendingPixelFusion(ArrayList<? extends ImageInterpolation<?>> images)
      Instantiates the per-pixel blending
      Parameters:
      images - - all input images (the position in the list has to be the same as Id provided by addValue!)
  • Method Details

    • clear

      public void clear()
      Description copied from interface: PixelFusion
      reset for the next output pixel
      Specified by:
      clear in interface PixelFusion
    • addValue

      public void addValue(double value, int imageId, double[] localPosition)
      Description copied from interface: PixelFusion
      add a new value for the current output pixel
      Specified by:
      addValue in interface PixelFusion
      Parameters:
      value - - the image intensity
      imageId - - from which input image as defined by the id
      localPosition - - the position inside the input image in local coordinates of the input image
    • getValue

      public double getValue()
      Description copied from interface: PixelFusion
      return the result for the current pixel
      Specified by:
      getValue in interface PixelFusion
      Returns:
      - the value for the output image
    • copy

      public PixelFusion copy()
      Description copied from interface: PixelFusion
      Convinience method for multi-threading
      Specified by:
      copy in interface PixelFusion
      Returns:
      - a PixelFusion with the same properties
    • computeWeight

      public static final double computeWeight(double[] location, long[] dimensions, double[] border, double percentScaling)
      From SPIM Registration
      Parameters:
      location -
      dimensions -
      border -
      percentScaling -
      Returns: