smistad / FAST

A framework for high-performance medical image processing, neural network inference and visualization
https://fast.eriksmistad.no
BSD 2-Clause "Simplified" License
433 stars 101 forks source link

ValueError: Type mismatch between NumPy and Eigen objects. #144

Closed smistad closed 3 years ago

smistad commented 3 years ago

Describe the bug ValueError: Type mismatch between NumPy and Eigen objects.

To Reproduce On Windows with pyFAST 3.2:

import fast
import numpy as np
cropper = fast.ImageCropper.New()
cropper.setSize(np.array([20, 30], dtype=np.int32))

Works on ubuntu linux, and it works with float like in Image::setSpacing()

System: Windows 10 Tested with numpy 1.18,1.19 and 1.20.2