public class MedianKernel7x7
extends com.aparapi.Kernel
Demonstrates use of __private array for (partial) sorting, also demonstrates @NoCl annotation for specialised use of ThreadLocal in JTP execution.
Modifier and Type | Field and Description |
---|---|
static int |
CHANNEL_ALPHA
Constant
CHANNEL_ALPHA=0 |
static int |
CHANNEL_BLUE
Constant
CHANNEL_BLUE=3 |
static int |
CHANNEL_GRAY
Constant
CHANNEL_GRAY=-1 |
static int |
CHANNEL_GREEN
Constant
CHANNEL_GREEN=2 |
static int |
CHANNEL_RED
Constant
CHANNEL_RED=1 |
static int |
MAX_WINDOW_SIZE
Constant
MAX_WINDOW_SIZE=49 |
Constructor and Description |
---|
MedianKernel7x7() |
Modifier and Type | Method and Description |
---|---|
void |
processImages(MedianSettings settings)
processImages.
|
void |
run() |
void |
setUpWindow()
setUpWindow.
|
addExecutionModes, cancelMultiPass, cleanUpArrays, clone, compile, compile, dispose, execute, execute, execute, execute, execute, execute, executeFallbackAlgorithm, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAccumulatedExecutionTime, getAccumulatedExecutionTimeAllThreads, getAccumulatedExecutionTimeCurrentThread, getCancelState, getConversionTime, getCurrentPass, getExecutionMode, getExecutionTime, getKernelCompileWorkGroupSize, getKernelLocalMemSizeInUse, getKernelMaxWorkGroupSize, getKernelMinimumPrivateMemSizeInUsePerWorkItem, getKernelPreferredWorkGroupSizeMultiple, getKernelState, getMappedMethodName, getProfileInfo, getProfileReportCurrentThread, getProfileReportLastThread, getTargetDevice, hasFallbackAlgorithm, hasNextExecutionMode, invalidateCaches, isAllowDevice, isAutoCleanUpArrays, isExecuting, isExplicit, isMappedMethod, isOpenCLDelegateMethod, isRunningCL, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, registerProfileReportObserver, setAutoCleanUpArrays, setExecutionMode, setExecutionModeWithoutFallback, setExplicit, setFallbackExecutionMode, toString, tryNextExecutionMode, usesAtomic32, usesAtomic64
public static final int CHANNEL_GRAY
CHANNEL_GRAY=-1
public static final int CHANNEL_ALPHA
CHANNEL_ALPHA=0
public static final int CHANNEL_RED
CHANNEL_RED=1
public static final int CHANNEL_GREEN
CHANNEL_GREEN=2
public static final int CHANNEL_BLUE
CHANNEL_BLUE=3
public static final int MAX_WINDOW_SIZE
MAX_WINDOW_SIZE=49
public void setUpWindow()
setUpWindow.
public void processImages(MedianSettings settings)
processImages.
settings
- a MedianSettings
object.public void run()
run
in class com.aparapi.Kernel
Copyright © 2021 Syncleus. All rights reserved.