Class LabelsListsBuilder
java.lang.Object
net.algart.arrays.Arrays.ParallelExecutor
net.algart.executors.modules.cv.matrices.objects.labels.LabelsProcessor
net.algart.executors.modules.cv.matrices.objects.labels.LabelsListsBuilder
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class net.algart.arrays.Arrays.ParallelExecutor
blockSize, dest, numberOfRanges, numberOfTasks, src -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidfinish()static LabelsListsBuildergetInstance(int[] labels, int[] lists) int[]intmaxLabel()protected voidprocessSubArr(int p, int count, int threadIndex) Methods inherited from class net.algart.executors.modules.cv.matrices.objects.labels.LabelsProcessor
castToByte, castToDouble, castToFloat, castToInt, castToShort, ensureCapacityForLabel, ensureCapacityForLabel, ensureCapacityForPixels, ensureCapacityForPixels, ensureCapacityForPixels, ensureCapacityForPixels, ensureCapacityForPixels, ensureSeveralArraysCapacityForLabel, isArraySupported, numberOrParticlesInBlockForParallelProcessing, processSubArr, releaseAndClearDoubleArrays, releaseAndClearDoubleArrays, releaseAndClearIntArrays, releaseAndClearIntArrays, releaseByteArrays, releaseByteArrays, releaseDoubleArrays, releaseDoubleArrays, releaseFloatArrays, releaseFloatArrays, releaseIntArrays, releaseIntArrays, releaseShortArrays, releaseShortArrays, requestByteArrays, requestByteArrays, requestClearedDoubleArrays, requestClearedDoubleArrays, requestClearedIntArrays, requestClearedIntArrays, requestDoubleArrays, requestDoubleArrays, requestFloatArrays, requestFloatArrays, requestIntArrays, requestIntArrays, requestShortArrays, requestShortArraysMethods inherited from class net.algart.arrays.Arrays.ParallelExecutor
checkInterruption, correctNumberOfRanges, endGap, granularity, increaseReadyCount, numberOfRanges, numberOfTasks, process, processRange, rangeFrom, rangeLength, rangeTo, readyCount, recommendedNumberOfRanges, startGap, toString, updateProgress
-
Method Details
-
getInstance
-
close
public void close() -
listHeads
public int[] listHeads() -
maxLabel
public int maxLabel() -
processSubArr
protected void processSubArr(int p, int count, int threadIndex) - Specified by:
processSubArrin classLabelsProcessor
-
finish
protected void finish()- Overrides:
finishin classnet.algart.arrays.Arrays.ParallelExecutor
-