otbcli_MeanShiftSmoothing: Calculates a mean shift filtering (required for object based...

Description Usage Arguments Note Author(s) Examples

Description

Calculates a mean shift filtering

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## S4 method for signature 'RasterBrick'
otbcli_MeanShiftSmoothing(x, path_temp = NULL,
  return_raster = TRUE, spatialr = 5, ranger = 15, thres = 0.1,
  maxiter = 100, rangeramp = 0, verbose = FALSE, ram = "8192")

## S4 method for signature 'RasterLayer'
otbcli_MeanShiftSmoothing(x, path_temp = NULL,
  return_raster = TRUE, spatialr = 5, ranger = 15, thres = 0.1,
  maxiter = 100, rangeramp = 0, verbose = FALSE, ram = "8192")

## S4 method for signature 'RasterStack'
otbcli_MeanShiftSmoothing(x, path_temp = NULL,
  return_raster = TRUE, spatialr = 5, ranger = 15, thres = 0.1,
  maxiter = 100, rangeramp = 0, verbose = FALSE, ram = "8192")

## S4 method for signature 'character'
otbcli_MeanShiftSmoothing(x, outfile_filter = NULL,
  outfile_spatial = NULL, return_raster = FALSE, spatialr = 5,
  ranger = 15, thres = 0.1, maxiter = 100, rangeramp = 0,
  verbose = FALSE, ram = "8192")

Arguments

x

A Raster* object or a gdall raster containing 1 or more gray value bands

path_temp

Path of temporary output files

return_raster

boolean if TRUE a raster stack is returned

spatialr

Computational radius in euclidian distance (m)

ranger

ranger in multi-spectral space to be grouped into one

thres

Mode convergence threshold

maxiter

Maximum number of iterations

rangeramp

Spectral ranger coefficient

verbose

switch for system messages default is FALSE

ram

reserved memory in MB

outfile_filter

The filtered output file

outfile_spatial

The spatial output file

Note

the otb is used for the calculation of the statistics.

Author(s)

Thomas Nauss

Examples

1
2
3
4
5
6
7
## Not run: 
url<-"http://www.ldbv.bayern.de/file/zip/5619/DOP%2040_CIR.zip"
res <- curl::curl_download(url, "testdata.zip")
unzip(res,junkpaths = TRUE,overwrite = TRUE)
otbcli_MeanShiftSmoothing(input=paste0(getwd(),"4490600_5321400.tif"),spatialr=5)

## End(Not run)

environmentalinformatics-marburg/satelliteTools documentation built on May 16, 2019, 8:16 a.m.