Open sierrajc598 opened 1 month ago
It looks like you added the following custom function:
def centroid_info(mask, img):
point = ndimage.center_of_mass(mask)
round_point = [ int(round(elem, 0)) for elem in point ]
if len(round_point) == 2 :
intensity = int(img[round_point[0], round_point[1]])
elif len(round_point) == 3:
intensity = int(img[round_point[0], round_point[1], round_point[2]])
return intensity
Is it working as is? I'm not clear on what the problem is. Could you provide an example (screenshot or copy-paste) of what you are trying to do and what error you are encountering?
Tried to make a new custom feature in featurize.py however the code had issues reading the custom features. To bypass this, I had to modify the code to look like the file added. featurize_edit.txt