View source: R/par.ObjectiveFunction.R
par.Objective.Function | R Documentation |
The Objective Function by ESPINDOLA et al. (2006) finds optimal scale parameters by the comparision of the sum of the normalized local variance and the normalized Moran's I of different segmented images.
par.Objective.Function(Tool, Scale.Input.Grid, Scale.Input.Grid.Cell.Size = prod(raster::res(raster::raster(slp.tif.path))), Scale.Statistic.Min.Size = "0", Objective.Function.save = FALSE, Objective.Function.save.path = NULL, Count = "1", Min = "0", Max = "0", Range = "0", Sum = "0", Mean = "1", Var = "1", Stddev = "0", Objective.Function.save.name = "", Objective.Function.Mean.Segmentation.Grid = paste0(tmp.path, "Objective.Function.Mean.Segmentation.Grid.sgrd"), Objective.Function.Count.Grid = paste0(tmp.path, "Objective.Function.Count.Grid.sgrd"), Objective.Function.MoransI = paste0(tmp.path, "Objective.Function.MoransI.txt"), Quantile = 0, Scales, Grass.Objective.Function.Method = "Threshold", Segments.Poly, Segments.Grid, Grass.Segmentation.Minsize = NA, Grass.Segmentation.Threshold = NA, Seed.Method = "", env = RSAGA::rsaga.env(), show.output.on.console = FALSE, quiet = TRUE, ncores = 1, ...)
Tool |
open-source software to compute segmentation analysis. GRASS or SAGA |
Scale.Input.Grid |
input grid for computing segmentation scale parameters |
Scale.Input.Grid.Cell.Size |
cell size of input grid. Default: prod(raster::res(raster::raster(slp.tif.path))) |
Scale.Statistic.Min.Size |
min size of area/polygon which is included in statistics (usefull for SAGA GIS segmentations). Default: "0" |
Objective.Function.save |
save estimations of function. Default: FALSE |
Objective.Function.save.path |
path where estimations are stored. Default: input path of segment.poly |
Count |
amount of cells (Grid Statistics). Default:"1" |
Min |
minimum value (Grid Statistics). Default:"0" |
Max |
maximum value (Grid Statistics). Default:"0" |
Range |
range of values (Grid Statistics). Default:"0" |
Sum |
sum of values (Grid Statistics). Default:"0" |
Mean |
mean of values (Grid Statistics). Default:"1" |
Var |
variance of values (Grid Statistics). Default:"1" |
Stddev |
standard deviation (Grid Statistics). Default:"0" |
Objective.Function.save.name |
name for file. Default: "" |
Objective.Function.Mean.Segmentation.Grid |
- output grid with mean values for segments. Default: temp |
Objective.Function.Count.Grid |
output grid with amount of cells in segments. Default: temp |
Objective.Function.MoransI |
output text file with Morans'I. Default: temp |
Quantile |
qunatile (Grid Statistics). Default:"0" |
Scales |
containing scale parameters for loop-segmentation |
Grass.Objective.Function.Method |
determining on what parameter the objective function (~loop) is performed. Default: "Threshold" |
Segments.Poly |
... |
Grass.Segmentation.Minsize |
= NA, |
Grass.Segmentation.Threshold |
= NA |
Seed.Method |
"" |
env |
... |
other... |
see |
ESPINDOLA, G.M., CAMARA, G., REIS, I.A., BINS, L.S. & A.M. MONTEIRO (2006): Parameter selection for region-growing image segmentation algorithms using spatial autocorrelation. - International Journal of Remote Sensing 27, 14, 3035-3040.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.