Hi,
Recently, I try to use connected components labeling API in VLIB. There are 8 connected components in the test image, but VLIB return numCCs with 20, show in the result image. The CCMap suggest correct result, but components value are 1 2 3 4 5 6 7 20. Is this a bug?
test image:
result image:
part of code:
status = VLIB_packMask32(src, pack, width * height);
VLIB_calcConnectedComponentsMaxBufferSize(width, height, 32, &maxBytesRequired);
sizeOfCCHandle = VLIB_GetSizeOfCCHandle();
handle = (VLIB_CCHandle *) memalign(32, sizeOfCCHandle);
pBuf = (void *) memalign(32, maxBytesRequired);
status = VLIB_initConnectedComponentsList(handle, pBuf, maxBytesRequired);
status = VLIB_createConnectedComponentsList(handle, width, height, (uint32_t *)pack, 32, 1);
status = VLIB_createCCMap8Bit(handle, dst, width, height);
VLIB_getNumCCs(handle, &numCCs);