Package mpicbg.stitching.fusion
Class BlendingPixelFusion
java.lang.Object
mpicbg.stitching.fusion.BlendingPixelFusion
- All Implemented Interfaces:
PixelFusion
- Direct Known Subclasses:
BlendingPixelFusionIgnoreZero
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlendingPixelFusion(ArrayList<? extends ImageInterpolation<?>> images) Instantiates the per-pixel blending -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(double value, int imageId, double[] localPosition) add a new value for the current output pixelvoidclear()reset for the next output pixelstatic final doublecomputeWeight(double[] location, long[] dimensions, double[] border, double percentScaling) From SPIM Registrationcopy()Convinience method for multi-threadingdoublegetValue()return the result for the current pixel
-
Field Details
-
fractionBlended
public static double fractionBlended
-
-
Constructor Details
-
BlendingPixelFusion
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:PixelFusionreset for the next output pixel- Specified by:
clearin interfacePixelFusion
-
addValue
public void addValue(double value, int imageId, double[] localPosition) Description copied from interface:PixelFusionadd a new value for the current output pixel- Specified by:
addValuein interfacePixelFusion- Parameters:
value- - the image intensityimageId- - from which input image as defined by the idlocalPosition- - the position inside the input image in local coordinates of the input image
-
getValue
public double getValue()Description copied from interface:PixelFusionreturn the result for the current pixel- Specified by:
getValuein interfacePixelFusion- Returns:
- - the value for the output image
-
copy
Description copied from interface:PixelFusionConvinience method for multi-threading- Specified by:
copyin interfacePixelFusion- Returns:
- - a
PixelFusionwith 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:
-