public class SumUpPatches extends Object implements stream.Processor
Modifier and Type | Field and Description |
---|---|
String |
key |
String |
outKey |
String |
pixelSetExcludeKey |
Boolean |
visualize |
Constructor and Description |
---|
SumUpPatches() |
Modifier and Type | Method and Description |
---|---|
stream.Data |
process(stream.Data item) |
double[] |
sumPixelsOfPatch(double[][] pixel_data,
int patch,
PixelSet invalid_pixels)
sum up all pixels of a given patch
|
double[] |
toDataArray(double[][] patch_sums)
Convert to a full ROI double array with length npixels*ROI
|
@Parameter(required=true) public String key
@Parameter(required=false) public String outKey
@Parameter(description="Key of the pixel sample that should be excluded") public String pixelSetExcludeKey
@Parameter(required=false, description="Converts the patch array into a 1440*ROI array inorder to visualize the patche time series in the viewer") public Boolean visualize
public stream.Data process(stream.Data item)
process
in interface stream.Processor
public double[] toDataArray(double[][] patch_sums)
patch_sums
- public double[] sumPixelsOfPatch(double[][] pixel_data, int patch, PixelSet invalid_pixels)
pixel_data
- patch
- Copyright © 2019. All rights reserved.