def is_resized()

in ez_wsi_dicomweb/gcs_image.py [0:0]


  def is_resized(self) -> bool:
    """Returns true if image dimensions have/maybe resized."""
    with self._gcs_image_lock:
      if self.are_image_bytes_loaded:
        # Image dimensions were resized.
        return self._are_image_bytes_resized
    # If image bytes are not loaded then use the definition of the image
    # dimensions as a proxy to avoid loading actual image bytes.
    # return true if image dimensions have been defined. Its clearly possible
    # the defined resize dimensions and the actual image dimensions may
    # be the same.
    return self._image_resize_dims is not None  # safe to access outside of lock