image property

Image image

Returns the underlying Image representation of this TensorImage.

Important: It's only a reference. DO NOT MODIFY. We don't create a copy here for performance concern, but if modification is necessary, please make a copy.

Throws StateError if the TensorImage never loads data.

Implementation

Image get image {
  if (_container == null) {
    throw new StateError("No image has been loaded yet.");
  }
  return _container!.image;
}