VIPS (software)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
VIPS
Repository Edit this at Wikidata
Written inC, GTK+
Operating systemMicrosoft Windows, macOS, Linux
Typeimage processing
LicenseGNU Lesser General Public License
GNU General Public License
Websitelibvips.github.io/libvips/

VIPS is an open source image processing software package.[1][2] It is particularly good with large images, works with multi-core processors, working with colour, scientific analysis and general research & development. It was developed during and is the product of several European research projects (VASARI, MARC, ACOHIR, Viseum) which were primarily about Imaging art,[3] but which demanded a new approach to image processing.

Compared to most image processing libraries VIPS needs little RAM and runs quickly, especially on machines with more than one CPU. This is primarily due to its architecture which automatically parallelises the image workflows.[4]

The software has two main parts: libvips is the image-processing library and nip2 is the graphical user-interface. The GUI aims to be about half-way between Photoshop and Excel. It is not designed for tasks such as retouching photographs, but more useful for the many other imaging tasks that programs like Photoshop are used for. Both work on Linux, Unix, Windows (NT, 2k, XP, Vista, Win7) and Apple macOS (10.2 and later).[5]

VIPS is a standard package for many Linux distributions [6][7] [8][9]

Software Design[edit]

Most of libVIPS is written in C. However, there are Python, Ruby, and C++ libraries which can use it.

Vipspartials.png

VIPS processes images in small portions (rectangles or groups of lines) and groups of operations are automatically run by separate threads. This makes the processing parallel because modern systems can run the threads on different cores. It also means that image intermediates are small and can easily be stored in RAM. This is how multi-GB sized images can be processed on machines efficiently.[10]

History[11][edit]

VASARI [12] was an EU-funded research project to build a system capable of measuring long-term colour change in old master paintings. Previous systems had made a series of point measurements of areas thought likely to degrade - of course this meant that changes in parts of the painting that hadn't been measured would be missed. VASARI aimed to fix this through imaging: it would use a camera to measure colour and simply record the whole painting.

The project had partners in Germany, France, Italy and Britain. Kirk Martinez of Birkbeck College and David Saunders of the National Gallery London were responsible for building the London scanner. Kirk hired Nicos Dessipris, who had been a fellow research student in the Image Processing group of the University of Essex, and David hired John Cupitt, who had just finished a PhD in Theoretical Computer Science at the University of Kent.

The project wanted to image paintings up to about 1m by 1m, with a resolution of up to about 20 pixels per millimetre, since the smallest interesting features in a painting are about 0.1mm. Multiple colour bands were needed (7 was decided upon), since the aim was to measure reflectance spectra rather than just colour. The final requirement was for 16 bit data. Put these requirements together and you reach an image size of about 1GB per colour channel. A suitable image processing library which could handle the data size needed could not be found, so custom one was developed. Machines of the time were very modest by today's standards: a Sun workstation cost £40,000, had 64MB of RAM and ran at 25 MHz, so this was quite a challenge.

Kirk had developed simple but fast C libraries during his PhD which worked on memory-mapped "framestores" for video processing. Kirk and Nikos looked at HIPS for inspiration but found pipes too inefficient. So VIPS was based on their experience with that as well as early Unix image processing software they developed. Early VIPS code used memory-mapped files for input (back then an exciting novelty which was faster than file I/O) and wrote data a scanline at a time. At the National Gallery, John Cupitt wrote a GUI called "vf" in SunView, Sun's graphical environment. The first version just displayed an image on the workstation screen and let you pan and zoom. The next version added a simple expression language and let you type in things like "a + 12" to brighten an image. It was renamed "ip", for image processing.

VASARI ended in 1993 but a follow-on European project called MARC allowed for more development. This aimed to use the imaging techniques developed in VASARI to build a colorimetric camera and to use it to print an art catalogue. Nicos left and John took over the development of the VIPS library, the GUI and the camera software. Sun had just produced their first two-CPU workstation, so VIPS gained SMP support. A further aim was to reduce the time spent on disc IO, so at the same time the ability to "chain" operators together without the need for intermediate storage was added. ip was rewritten to use the Motif user-interface toolkit and gained fully editable history.

In 1997 Kirk Martinez moved to the University of Southampton so development and use continued in more projects (including Viseum,[13] ACOHIR[14] and Artiste[15]) and VIPS and ip developed in response to their needs. The software was moved from Sun to Linux in the late 90s and ip moved from Motif to GTK+, becoming nip. VIPS gained support for files larger than 2GB, and for up to 64 CPUs. nip was rewritten again for GTK+-2.0 and became the nip2 we know today.

In 2005, John Cupitt moved from the National Gallery to Imperial College to work on medical imaging and VIPS and nip2 are now maintained there. Recent additions have been support for Analyze, DICOM3, FITS, Matlab and Radiance images, run-time code generation, and the start of a move to a GObject foundation. It is John's ingenuity and programming skills which have made libVips so successful today.

Users[edit]

VIPS is currently used in MediaWiki and hence by Wikipedia itself in the VipsScaler extension. This speeds up and extends image handling compared to previously used software and hence saves processor time on the busy systems. For similar reasons it is used by Booking.com and Idealista. The popular Sharp Node.js module uses VIPS.

License[edit]

libvips is licensed under the LGPL and nip2 is licensed under the GPL. See http://www.gnu.org.

References[edit]

  1. ^ Martinez, K. and Cupitt, J. (2005) VIPS ― a highly tuned image processing software architecture. In Proceedings of IEEE International Conference on Image Processing 2, pp. 574-577, Genova
  2. ^ Cupitt, J. and Martinez, K. (1996) VIPS: An image processing system for large images, Proc. SPIE, vol. 2663, pp. 19--28 full paper
  3. ^ Cupitt, J. and Martinez, K. (1994) Image processing for Museums. In: pp. 133-147, John Wiley. ISBN 0-471-93941-2
  4. ^ http://www.vips.ecs.soton.ac.uk/index.php?title=Speed_and_Memory_Use
  5. ^ Cupitt, J., Boobis, A., Jones, H. (2007) Automating image analysis with VIPS, Poster presentation, Hounsfield Memorial Lectures on Medical Imaging
  6. ^ Debian VIPS package http://packages.qa.debian.org/v/vips.html
  7. ^ Ubuntu VIPS package http://packages.ubuntu.com/wily/libvips-tools
  8. ^ Fedora https://apps.fedoraproject.org/packages/nip2
  9. ^ Mint http://community.linuxmint.com/software/view/nip2
  10. ^ http://www.vips.ecs.soton.ac.uk/index.php?title=How_it_works
  11. ^ http://www.vips.ecs.soton.ac.uk/index.php?title=History
  12. ^ http://users.ecs.soton.ac.uk/km/projs/vasari/
  13. ^ http://cordis.europa.eu/infowin/acts/analysys/products/thematic/atm/ch4/viseum.html
  14. ^ http://www9.org/w9cdrom/122/122.html
  15. ^ http://www.cultivate-int.org/issue7/artiste/

External links[edit]