public class BlendingPixelFusion extends Object implements PixelFusion
Modifier and Type | Field and Description |
---|---|
static double |
fractionBlended |
Constructor and Description |
---|
BlendingPixelFusion(ArrayList<? extends ImageInterpolation<?>> images)
Instantiates the per-pixel blending
|
Modifier and Type | Method and Description |
---|---|
void |
addValue(double value,
int imageId,
double[] localPosition)
add a new value for the current output pixel
|
void |
clear()
reset for the next output pixel
|
static double |
computeWeight(double[] location,
long[] dimensions,
double[] border,
double percentScaling)
From SPIM Registration
|
PixelFusion |
copy()
Convinience method for multi-threading
|
double |
getValue()
return the result for the current pixel
|
public BlendingPixelFusion(ArrayList<? extends ImageInterpolation<?>> images)
images
- - all input images (the position in the list has to be the same as Id provided by addValue!)public void clear()
PixelFusion
clear
in interface PixelFusion
public void addValue(double value, int imageId, double[] localPosition)
PixelFusion
addValue
in interface PixelFusion
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 imagepublic double getValue()
PixelFusion
getValue
in interface PixelFusion
public PixelFusion copy()
PixelFusion
copy
in interface PixelFusion
PixelFusion
with the same propertiespublic static final double computeWeight(double[] location, long[] dimensions, double[] border, double percentScaling)
location
- dimensions
- border
- percentScaling
- Copyright © 2015–2021 Fiji. All rights reserved.