import cython
import numpy
RectStruct = cython.struct(
image_summary=numpy.ndarray,
)
my_array = numpy.zeros((50,50), dtype=numpy.int)
rect = cython.declare(RectStruct)
rect.image_summary = my_array # throws: TypeError: only integer scalar arrays can be converted to a scalar index