smurf.spatial_object.spatial_object.image_temp¶
- spatial_object.image_temp()¶
Returns the cropped image based on the specified boundaries.
- Returns:
The cropped image as a NumPy array. If image_format is ‘HE’, the image is returned with all color channels. If image_format is ‘DAPI’, the image is returned as a single channel.
- Return type:
- Raises:
ValueError – If image_format is not ‘HE’ or ‘DAPI’.