Ask Your Question

Zouhir_boukhamla's profile - activity

2018-04-18 12:40:38 -0600 commented answer Superpixel

good idea man , but found another trick using the mask i get from getLabelContourMask + find_contours + draw_contours

2018-04-18 12:36:49 -0600 marked best answer Superpixel

i've this code where im applying the algorithm slic superpixel on a image. using android studio + opencv contrib .My problem is how can colorise evrey superpixel segments with random colors ' each segment should have a unique colours ' , i tried to manipulate with getlabels , but it will take me too much time ( number of pixel * numberof segments if i use and doble loop ex :

foreach(number_segment) do {
loop all the pixel of the image : 
  if (pixel not existe in the output) && (pixel in the same segments) 
  {
        pixel = random color ;   
        add it to the output 
  }
}

}
2018-04-18 12:36:49 -0600 received badge  Scholar (source)
2018-04-16 10:54:36 -0600 asked a question Superpixel

Superpixel i've this code where im applying the algorithm slic superpixel on a image. using android studio + opencv con