Class MedianPixelFusion

java.lang.Object
mpicbg.stitching.fusion.MedianPixelFusion
All Implemented Interfaces:
PixelFusion
Direct Known Subclasses:
MedianPixelFusionIgnoreZero

public class MedianPixelFusion extends Object implements PixelFusion
  • Constructor Details

    • MedianPixelFusion

      public MedianPixelFusion()
  • 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