public static class DifferenceOfGaussianCUDA.CUDAOutput extends Object implements OutputAlgorithm<FloatType>
Constructor and Description |
---|
CUDAOutput(Img<FloatType> img,
double percentGPUMem,
CUDADevice cudaDevice,
CUDASeparableConvolution cuda,
boolean accurate,
double[] sigma) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
static int[] |
computeNumBlocksDim(long memAvail,
long memReq,
double percentGPUMem,
int n,
String start) |
String |
getErrorMessage() |
static long[] |
getImgSize(Interval img) |
static int[] |
getImgSizeInt(Interval img) |
protected static long[] |
getKernelSize(double[] sigma) |
protected static int[] |
getKernelSizeInt(double[] sigma) |
Image<FloatType> |
getResult() |
protected static int |
numBlocks(int[] numBlocksDim) |
protected long |
numPixels() |
boolean |
process() |
protected static void |
reduceBlockNumbers(int[] numBlocksDim,
int numBlocks) |
public CUDAOutput(Img<FloatType> img, double percentGPUMem, CUDADevice cudaDevice, CUDASeparableConvolution cuda, boolean accurate, double[] sigma)
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public Image<FloatType> getResult()
getResult
in interface OutputAlgorithm<FloatType>
protected static long[] getKernelSize(double[] sigma)
public static long[] getImgSize(Interval img)
protected static int[] getKernelSizeInt(double[] sigma)
public static int[] getImgSizeInt(Interval img)
public static int[] computeNumBlocksDim(long memAvail, long memReq, double percentGPUMem, int n, String start)
protected static void reduceBlockNumbers(int[] numBlocksDim, int numBlocks)
protected static int numBlocks(int[] numBlocksDim)
protected long numPixels()
Copyright © 2015–2021 Fiji. All rights reserved.