R: A tiff reader for R.

rtiff-package {rtiff} | R Documentation

## A tiff reader for R.

### Description

This package will read TIFF format images and return them as a pixmap object. Because the resulting object can be very large for even modestly sized TIFF images, images can be reduced as they are read for improved performance. This package is a wrapper around libtiff (www.libtiff.org), on which it depends. By using libtiff's highlevel TIFFReadRGBAImage function, this package inherently support a wide range of image formats and compression schemes. This package also provides an implementation of the Ridler Autothresholding algorithm for easy generation of binary masks.

### Details

Package: | rtiff
Type: | Package
Version: | 1.0
Date: | 2005-12-20
License: | GPL

A tiff image can be loaded using readTiff, and then plotted, or processed. Regardless of the colorspace of the original image, this function returns an RGB pixmap. The image rasters can be accessed through the red, green, and blue slots of the pixmap object returned. These rasters may be further processed using any of the widely described image analysis algorithms. As a first step, and autoThreshold function is provided by this package to create binary masks of pixmap channels of interest.

### Author(s)

Eric Kort <eric.kort@vai.org> Maintainer: Eric Kort <eric.kort@vai.org>

### References

www.libtiff.org

### Examples

    library(rtiff)
    tif <- readTiff(system.file("tiff", "jello.tif", package="rtiff"))
    plot(tif)

    plot(tif@blue)

    plot(tif@blue > autoThreshold(tif@blue)[3])

[Package rtiff version 1.4.6 Index]