Class MedianKernel7x7

java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.median.MedianKernel7x7
All Implemented Interfaces:
Cloneable

public class MedianKernel7x7
extends com.aparapi.Kernel
Provides support for pixel windows of size no greater than 49 (e.g. 7x7).

Demonstrates use of __private array for (partial) sorting, also demonstrates @NoCl annotation for specialised use of ThreadLocal in JTP execution.

  • Nested Class Summary

    Nested classes/interfaces inherited from class com.aparapi.Kernel

    com.aparapi.Kernel.Constant, com.aparapi.Kernel.Entry, com.aparapi.Kernel.EXECUTION_MODE, com.aparapi.Kernel.KernelState, com.aparapi.Kernel.Local, com.aparapi.Kernel.NoCL, com.aparapi.Kernel.PrivateMemorySpace
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static int CHANNEL_ALPHA  
    static int CHANNEL_BLUE  
    static int CHANNEL_GRAY  
    static int CHANNEL_GREEN  
    static int CHANNEL_RED  
    static int MAX_WINDOW_SIZE  

    Fields inherited from class com.aparapi.Kernel

    CONSTANT_SUFFIX, LOCAL_SUFFIX, PRIVATE_SUFFIX
  • Constructor Summary

    Constructors 
    Constructor Description
    MedianKernel7x7()  
  • Method Summary

    Modifier and Type Method Description
    void processImages​(MedianSettings settings)  
    void run()  
    void setUpWindow()  

    Methods inherited from class com.aparapi.Kernel

    addExecutionModes, cancelMultiPass, cleanUpArrays, clone, 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, 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait