java.lang.Object
net.algart.arrays.Arrays.ParallelExecutor
net.algart.executors.modules.cv.matrices.objects.labels.LabelsProcessor
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
LabelledObjectsProcessor, LabelledObjectsProcessorForFloat, LabelsListsBuilder

public abstract class LabelsProcessor extends net.algart.arrays.Arrays.ParallelExecutor implements AutoCloseable
  • Constructor Details

    • LabelsProcessor

      protected LabelsProcessor(net.algart.arrays.Array src)
    • LabelsProcessor

      protected LabelsProcessor(net.algart.arrays.Array src, int blockSize)
  • Method Details

    • processSubArr

      protected final void processSubArr(long position, int count, int threadIndex)
      Specified by:
      processSubArr in class net.algart.arrays.Arrays.ParallelExecutor
    • processSubArr

      protected abstract void processSubArr(int p, int count, int threadIndex)
    • numberOrParticlesInBlockForParallelProcessing

      protected static int numberOrParticlesInBlockForParallelProcessing(int numberOfParticles)
    • isArraySupported

      protected static boolean isArraySupported(Object array)
    • castToByte

      protected static byte[][] castToByte(Object[] channels)
    • castToShort

      protected static short[][] castToShort(Object[] channels)
    • castToInt

      protected static int[][] castToInt(Object[] channels)
    • castToFloat

      protected static float[][] castToFloat(Object[] channels)
    • castToDouble

      protected static double[][] castToDouble(Object[] channels)
    • requestByteArrays

      protected static byte[][] requestByteArrays(int numberOfArrays)
    • requestByteArrays

      protected static byte[][][] requestByteArrays(int numberOfArrays, int numberOfChannels)
    • releaseByteArrays

      protected static void releaseByteArrays(byte[][] arrays)
    • releaseByteArrays

      protected static void releaseByteArrays(byte[][][] arrays)
    • requestShortArrays

      protected static short[][] requestShortArrays(int numberOfArrays)
    • requestShortArrays

      protected static short[][][] requestShortArrays(int numberOfArrays, int numberOfChannels)
    • releaseShortArrays

      protected static void releaseShortArrays(short[][] arrays)
    • releaseShortArrays

      protected static void releaseShortArrays(short[][][] arrays)
    • requestIntArrays

      protected static int[][] requestIntArrays(int numberOfArrays)
    • requestIntArrays

      protected static int[][][] requestIntArrays(int numberOfArrays, int numberOfChannels)
    • releaseIntArrays

      protected static void releaseIntArrays(int[][] arrays)
    • releaseIntArrays

      protected static void releaseIntArrays(int[][][] arrays)
    • requestFloatArrays

      protected static float[][] requestFloatArrays(int numberOfArrays)
    • requestFloatArrays

      protected static float[][][] requestFloatArrays(int numberOfArrays, int numberOfChannels)
    • releaseFloatArrays

      protected static void releaseFloatArrays(float[][] arrays)
    • releaseFloatArrays

      protected static void releaseFloatArrays(float[][][] arrays)
    • requestDoubleArrays

      protected static double[][] requestDoubleArrays(int numberOfArrays)
    • requestDoubleArrays

      protected static double[][][] requestDoubleArrays(int numberOfArrays, int numberOfChannels)
    • releaseDoubleArrays

      protected static void releaseDoubleArrays(double[][] arrays)
    • releaseDoubleArrays

      protected static void releaseDoubleArrays(double[][][] arrays)
    • requestClearedIntArrays

      protected static int[][] requestClearedIntArrays(int numberOfArrays)
    • requestClearedIntArrays

      protected static int[][][] requestClearedIntArrays(int numberOfArrays, int numberOfChannels)
    • releaseAndClearIntArrays

      protected static void releaseAndClearIntArrays(int[][] arrays, int numberOfElementsToZero)
    • releaseAndClearIntArrays

      protected static void releaseAndClearIntArrays(int[][][] arrays, int numberOfElementsToZero)
    • requestClearedDoubleArrays

      protected static double[][] requestClearedDoubleArrays(int numberOfArrays)
    • requestClearedDoubleArrays

      protected static double[][][] requestClearedDoubleArrays(int numberOfArrays, int numberOfChannels)
    • releaseAndClearDoubleArrays

      protected static void releaseAndClearDoubleArrays(double[][] arrays, int numberOfElementsToZero)
    • releaseAndClearDoubleArrays

      protected static void releaseAndClearDoubleArrays(double[][][] arrays, int numberOfElementsToZero)
    • ensureCapacityForPixels

      protected static void ensureCapacityForPixels(byte[][] arrays, int totalNumberOfPixels, int newElementIndex)
    • ensureCapacityForPixels

      protected static void ensureCapacityForPixels(short[][] arrays, int totalNumberOfPixels, int newElementIndex)
    • ensureCapacityForPixels

      protected static void ensureCapacityForPixels(int[][] arrays, int totalNumberOfPixels, int newElementIndex)
    • ensureCapacityForPixels

      protected static void ensureCapacityForPixels(float[][] arrays, int totalNumberOfPixels, int newElementIndex)
    • ensureCapacityForPixels

      protected static void ensureCapacityForPixels(double[][] arrays, int totalNumberOfPixels, int newElementIndex)
    • ensureCapacityForLabel

      protected static int[] ensureCapacityForLabel(int[] array, int label)
    • ensureCapacityForLabel

      protected static double[] ensureCapacityForLabel(double[] array, int label)
    • ensureSeveralArraysCapacityForLabel

      protected static void ensureSeveralArraysCapacityForLabel(double[][] arrays, int label)