Ask Your Question

Connected Component Labelling

asked 2018-04-04 15:07:17 -0500

Kenny Karnama gravatar image

updated 2018-04-04 15:08:10 -0500

Hi guys, i am trying to implement CCL based on algorithm provided in I have already created it, and it works if the resolution of image is not too high. any ideas ?

here is the example

image with 448 x 18 pixels, after ccl

image in 448 x 18 pixels

same image with 1495 x 60 pixels, after ccl

same image with 1495 x 60 pixels

edit retag flag offensive close merge delete


you should probably use opencv's builtin connectedComponents method, not reinvent the wheel here

berak gravatar imageberak ( 2018-04-04 23:53:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-04-06 04:41:47 -0500

Kenny Karnama gravatar image

i have already found the problem, i have to use ushort instead of uchar when store the labels.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-04-04 15:07:17 -0500

Seen: 1,035 times

Last updated: Apr 04 '18