img.dim: Define a region of interest or preview area of an image...

Description Usage Arguments Details Author(s) References Examples

Description

The function defines a region of interest or preview area of an image object. This can be useful if images are large and processing of the images gets time consuming for fast previews. The functions preserves the raw image.

Usage

1
img.dim(img.raw, width = 25, hight = 25)

Arguments

img.raw

is the raw image that will used for the analysis

width

is the width of the image area

hight

is the hight of the image area

Details

This function determines a region of interest or preview area of an image object. The imgtoEBImage function is used to read in the images. It is to read in images via the micR package to save time during processing test runs. The img.dim function returns a list with the following objects: img.raw (raw image), img.reduced (size reduce image) and img.dim (pixel range used after reduction).

Author(s)

Stefan Roediger

References

T.B.D.

Examples

1
2
3
4
5
# Import an image via img.dim and assign it to the object img.red with 
# reduced size. Finally plot a histogram of the reduced image.
img.red <- img.dim(system.file('images/Well_Slide2_9_DAPI.png', 
                   package='micR'), width = 25, hight = 25)
hist(img.red[["img.reduced"]], main = "DAPI (nuclei)")

devSJR/micR documentation built on May 15, 2019, 5:06 a.m.