height property

int height

Gets the image height.

Throws StateError if the TensorImage never loads data. and ArgumentError if the container data is corrupted.

Implementation

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