I am trying to extract features from images using:
def process_image(image_fp):
image_ = imread(image_fp)
image_ = resize(image_, (300, 200,3))
image=equalize_hist(rgb2gray(image_))
edges = skimage.feature.blob_dog(image)
return edges.reshape(edges.size).tolist()
where image_fp is an image path.
I am having a problem due to the different sizes of the return. In general, the reshape guarantees the same size in the others algorithms.
Is there a way to get always the same size?
I only see a way: to truncate the lists (the stupid way).