SpatialImage#
openalea.image.spatial_image#
This module create the main |SpatialImage| object
- class openalea.image.spatial_image.SpatialImage(input_array, voxelsize=None, vdim=None, info=None, dtype=None, **kwargs)[source]#
Bases:
ndarrayAssociate meta data to np.ndarray
- clone(data)[source]#
Clone the current image metadata on the given data.
Warning
vdim is defined according to self.voxelsize and data.shape
- Parameters:
data - (array)
- Returns Type:
- property real_shape#
- property resolution#
- openalea.image.spatial_image.checkerboard(nx=9, ny=8, nz=5, size=10, vs=(1.0, 1.0, 1.0), dtype=<class 'numpy.uint8'>)[source]#
Creates a 3D checkerboard image with nx squares in width, ny squares in height and nz squares in depth. The length of the edge in real units of each square is size.