Skip to content

Improve image handling #45

@davidcsterratt

Description

@davidcsterratt

The aim of this proposal are:

  1. Make it easy to have multiple images in a directory and switch between them in the GUI
  2. Not save images in the r.Rdata files
  3. Read TIFF as well as PNG files

This could be achieved by:

  1. Modifying read.image() to read information about images in the directory. It would throw an error if all images do not have the same dimensions, and it would return a list of image file names, and the common dimensions.
  2. Store the dimensions in the Outline object
  3. Only load images at the time of rendering. The Outline function getImage() could be modified to take an argument (image file name), defaulting to the first in alphabetical order. This would then load the image, cache it in Outline$im and proceed as now. A record of the cached image name would be kept in the Outline object.

Ideally point (1) requires some code to read image metadata without reading the whole image.

Metadata

Metadata

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions