Class CudaOperation

    • Field Detail

      • gpuHint

        protected final SocketHint<java.lang.Boolean> gpuHint
      • gpuSocket

        protected final CudaSocket gpuSocket
        Input socket telling the operation to prefer to use CUDA acceleration when possible.
      • cpuIn

        protected final org.bytedeco.javacpp.opencv_core.Mat cpuIn
        The mat used for an input to the CPU operation.
      • gpuIn

        protected final org.bytedeco.javacpp.opencv_core.GpuMat gpuIn
        The mat used for an input to the CUDA operation.
      • cpuOut

        protected final org.bytedeco.javacpp.opencv_core.Mat cpuOut
        The output mat of a CPU operation.
      • gpuOut

        protected final org.bytedeco.javacpp.opencv_core.GpuMat gpuOut
        The output mat of a CUDA operation.
    • Method Detail

      • cleanUp

        public void cleanUp()
        Description copied from interface: Operation
        Allows the step to clean itself up when removed from the pipeline. This should only be called by Step.setRemoved() to ensure correct synchronization.
        Specified by:
        cleanUp in interface Operation
      • preferCuda

        protected boolean preferCuda()
        Checks the gpuSocket to see if this operation should prefer to use the CUDA codepath.
        Returns:
        true if this operation should prefer to use CUDA, false if it should only use the CPU