SAGA 9.4.2 | Tool Library Documentation

Histogram Matching


Description

This tool alters the values of a grid so that its value distribution (its histogram), matches that of a reference grid. The first method simply uses arithmetic mean and standard deviation for adjustment, which usually is sufficient for normal distributed values. The second method performs a more precise adjustment based on the grids' histograms.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridgrid, inputGRID--
Reference Gridgrid, inputREFERENCE--
OutputAdjusted Gridgrid, output, optionalMATCHED--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Grid systemgrid systemREFERENCE_GRIDSYSTEM--
MethodchoiceMETHOD-Available Choices: [0] standard deviation [1] histogram Default: 1
Histogramm Classesinteger numberNCLASSESNumber of histogram classes for internal use.Minimum: 100 Default: 10
Maximum Sample Sizeinteger numberMAXSAMPLESIf set to zero all data will be used to build the histograms.Minimum: 0 Default: 1000000

Command Line


Usage: saga_cmd grid_calculus 21 [-GRID ] [-MATCHED ] [-REFERENCE ] [-METHOD ] [-NCLASSES ] [-MAXSAMPLES ]
  -GRID:      	Grid
	grid, input
  -MATCHED:   	Adjusted Grid
	grid, output, optional
  -REFERENCE: 	Reference Grid
	grid, input
  -METHOD:    	Method
	choice
	Available Choices:
	[0] standard deviation
	[1] histogram
	Default: 1
  -NCLASSES:  	Histogramm Classes
	integer number
	Minimum: 100
	Default: 10
  -MAXSAMPLES:	Maximum Sample Size
	integer number
	Minimum: 0
	Default: 1000000