convR2GSM: Conversion of raster layer to gray-scale image

View source: R/convR2GSM.R

convR2GSMR Documentation

Conversion of raster layer to gray-scale image

Description

This function convert a RasterLayer input to a gray-scale image, so that it can be used within EBImage functions.

Usage

convR2GSM(r, NA.val.in = 0)

Arguments

r

RasterLayer to be converted either to an image or a matrix

NA.val.in

replace value for no data (NA) in r. Default: 0

Value

data.table containing object-based textural features

Note

  • r is stretched to gray-scale (0-255) during process by linear normalization


ggRaver/Lslide documentation built on April 8, 2022, 7:14 a.m.