I would like to calculate the diameter of an irregular shape, in a given input image like this sample. I'm using this algorithm.
I can’t import a real image, can you help me? I'm new on stackoverflow..
I would like to calculate the diameter of an irregular shape, in a given input image like this sample. I'm using this algorithm.
I can’t import a real image, can you help me? I'm new on stackoverflow..
You can use the scipy.ndimage.imread function to import your image into an ndarray and then use the algorithm you mentioned.
img = scipy.ndimage.imread("PATH_TO_MY_IMG.jpg")