View source: R/objectTextureHaralick.R
objectTextureHaralick | R Documentation |
This function calculates textural features for objects by considering the values inside of the objects.
The calculation is based on the computeFeatures.haralick
function
objectTextureHaralick(r.texture, r.seg, texture.haralick.nbins = 32, texture.haralick.scales = c(1, 2), NA.val.in = 0, quiet = TRUE)
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 |
data.table containing object-based textural features
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.