cv.jit.label / blobs : how to track more than 255 blobs ? (count stars in sky)


    May 31 2018 | 9:59 am
    I need to count + get positions and sizes of stars in a big sky photography like this one : http://getwallpapers.com/wallpaper/full/6/1/e/550866.jpg
    all cv.jit.blobs.* object work only with the output of cv.jit.label @charmode 1 that mean we are limited to 255 blobs Even with @charmode 0, the output of cv.jit.label is a type long matrix, which is limited to 2024, and that’s probably not enough for my needs…
    If I split my large image file into smaller pieces, I’ll certainly have some blobs/stars counted twice or ignored if they are on the edge of a slice…
    Any clue ?
    Is there a way to overcome this char limitation ?
    or perform a basic blob detection in gen ?
    I’ve found this Python lib that seems to do the job perfectly : https://www.analyticsvidhya.com/blog/2014/12/image-processing-python-basics/ but I’ve no idea on how to do this in Max (/ communicate with a Python script, …)
    any help would be much appreciated :-)
    thanks
    Mathieu