Hello,
In the fucntions related to the connected components labeling, namely:
VLIB_createConnectedComponentsList
VLIB_createCCMap8Bit
I am feeding the VLIB_createConnectedComponentsList with the packed foreground mask extracted from one of the VLIB Background Subtraction algorithms.
When i see the output of VLIB_createCCMap8Bit and threshold it so that all components are in white (Using IMGLIB) the result is not has expected.
In fact an object will be drawn has several diagonal lines. This led me to think that the frame_width and frame height parameters of VLIB_createConnectedComponentsList were wrong. I double checked them and they are correct. Just as a trial i inverted them, this is, i wrote the height in the width and vice-versa, and the results were more close to the real. still a black region would float around in the output image (what is acceptable has the values were wrong).
is this something to do with the layout in memory of my input image?
I have it in memory like : LINE1 | LINE2 | LINE3 ... is the VLIB expecting COL1|COL2|COL3
I also read somewhere that the bit packed data "are different" for VLIB and IMGLIB, in the sense that the first requires bit reversed data. (Is this of any interest for my problem?)
Any help would be appreciated.
Best Regards