-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Description
- TIA Toolbox version: latest
- Python version: 3.11
- Operating System: Ubuntu
Description
The error message from get_patch_extractor is misleading, when location_list is of invalid type.
What I Did
img = np.zeros((256,256,3))
coords = [[10,10]]
extractor = get_patch_extractor(
'point',
input_img = img,
locations_list = coords,
patch_size=38
)
TypeError: Please input correct image path or an ndarray image.
The problem is not the image, it's the locations list:
img = np.zeros((256,256,3))
coords = [[10,10]]
extractor = get_patch_extractor(
'point',
input_img = img,
locations_list = np.array(coords),
patch_size=38
)
This works fine.
Metadata
Metadata
Assignees
Labels
No labels