Extracts information regarding the image.

  • getImageDims(): Extracts dimensions of the image, namely width, height and depth.

  • getImageRange(): Extracts range of the image axis.

getImageDims(object, ...)

getImageRange(object, ...)

Arguments

object

An object of class spata2.

...

Used to absorb deprecated arguments or functions.

Value

Similar output, different data structure:

  • getImageDims(): Vector of length three: image width, image height, image depth

  • getImageRange(): Named list, names are x and y. Each slot contains a vector of length two that describes the range of the x- and y-axis. Used for intersection between histology image and scatterplots.

Details

In case of confusion due to overlapping naming conventions: X-axis, x and x-range in terms of coordinates, corresponds to image width in terms of image analysis. Y-axis, y and y-range, in terms of coordinates, refers to image-height in terms of image analysis. SPATA2 primarily uses coordinates naming convention.