objectTextureHaralick: Caclulation of object-based textural features

View source: R/objectTextureHaralick.R

objectTextureHaralickR Documentation

Caclulation of object-based textural features

Description

This function calculates textural features for objects by considering the values inside of the objects. The calculation is based on the computeFeatures.haralick function

Usage

objectTextureHaralick(r.texture, r.seg, texture.haralick.nbins = 32,
  texture.haralick.scales = c(1, 2), NA.val.in = 0, quiet = TRUE)

Arguments

r.texture

RasterLayer for which the textural features are calculated

r.seg

segments or objects in form of a RasterLayer (only 16 or 32 bit integer)

texture.haralick.nbins

size of gray level co-occurrence matrix. Default: 32

texture.haralick.scales

definition of scales on which the texture is measured. Default: c(1,2)

NA.val.in

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

quiet

no outputs in console. Default: TRUE

Value

data.table containing object-based textural features

Note

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

  • r.seg must consist either of 16 bit or of 32 bit integer values

  • the calculated Haralick features are rotation invariant (average over all four possible directions)

  • a smaller texture.haralick.nbins can give more accurate estimates of the correlation, because the number of events per bin is higher. While a higher value will give more sensitivity

  • see computeFeatures.haralick

  • see here for more details on Haralick textural features (last call: 13-04-2017)


raff-k/Lslide documentation built on March 29, 2022, 6:52 p.m.