Documentation ¶
Index ¶
- Constants
- func ComputeMedianCutPCT(red, green, blue RasterBand, colors int, ct ColorTable, progress ProgressFunc, ...) int
- func DitherRGB2PCT(red, green, blue, target RasterBand, ct ColorTable, progress ProgressFunc, ...) int
- func GridCreate(algorithm GridAlgorithm, options interface{}, x, y, z []float64, ...) ([]float64, error)
- type GridAlgorithm
- type GridDataMetricsOptions
- type GridInverseDistanceToAPowerNearestNeighborOptions
- type GridInverseDistanceToAPowerOptions
- type GridLinearOptions
- type GridMovingAverageOptions
- type GridNearestNeighborOptions
Constants ¶
const ( GA_InverseDistancetoAPower = GridAlgorithm(C.GGA_InverseDistanceToAPower) GA_MovingAverage = GridAlgorithm(C.GGA_MovingAverage) GA_NearestNeighbor = GridAlgorithm(C.GGA_NearestNeighbor) GA_MetricMinimum = GridAlgorithm(C.GGA_MetricMinimum) GA_MetricMaximum = GridAlgorithm(C.GGA_MetricMaximum) GA_MetricRange = GridAlgorithm(C.GGA_MetricRange) GA_MetricCount = GridAlgorithm(C.GGA_MetricCount) GA_MetricAverageDistance = GridAlgorithm(C.GGA_MetricAverageDistance) GA_MetricAverageDistancePts = GridAlgorithm(C.GGA_MetricAverageDistancePts) GA_Linear = GridAlgorithm(C.GGA_Linear) GA_InverseDistanceToAPowerNearestNeighbor = GridAlgorithm(C.GGA_InverseDistanceToAPowerNearestNeighbor) )
Variables ¶
This section is empty.
Functions ¶
func ComputeMedianCutPCT ¶
func ComputeMedianCutPCT( red, green, blue RasterBand, colors int, ct ColorTable, progress ProgressFunc, data interface{}, ) int
Compute optimal PCT for RGB image
func DitherRGB2PCT ¶
func DitherRGB2PCT( red, green, blue, target RasterBand, ct ColorTable, progress ProgressFunc, data interface{}, ) int
24bit to 8bit conversion with dithering
func GridCreate ¶
func GridCreate( algorithm GridAlgorithm, options interface{}, x, y, z []float64, xMin, xMax, yMin, yMax float64, nX, nY uint, progress ProgressFunc, data interface{}, ) ([]float64, error)
GridCreate: Create regular grid from the scattered data. This function takes the arrays of X and Y coordinates and corresponding Z values as input and computes regular grid (or call it a raster) from these scattered data. You should supply geometry and extent of the output grid.
Types ¶
type GridDataMetricsOptions ¶
type GridDataMetricsOptions struct { // Radius1: The first radius (X axis if rotation angle is 0) of search ellipse. Radius1 float64 // Radius2: The second radius (Y axis if rotation angle is 0) of search ellipse. Radius2 float64 // Angle: Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. Angle float64 // MinPoints: Minimum number of data points to use. // If less amount of points found the grid node considered empty and will be filled with NODATA marker. MinPoints uint32 // NoDataValue: No data marker to fill empty points. NoDataValue float64 }
GridDataMetricsOptions: Data metrics method control options
type GridInverseDistanceToAPowerNearestNeighborOptions ¶
type GridInverseDistanceToAPowerNearestNeighborOptions struct { // Power: Weighting power Power float64 // Radius: The radius of search circle Radius float64 // Smoothing: Smoothing parameter Smoothing float64 // MaxPoints: Maximum number of data points to use. // Do not search for more points than this number. If less amount of points found the grid node // considered empty and will be filled with NODATA marker. MaxPoints uint32 // MinPoints: Minimum number of data points to use. // If less amount of points found the grid node considered empty and will be filled with NODATA marker. MinPoints uint32 // NoDataValue: No data marker to fill empty points. NoDataValue float64 }
GridInverseDistanceToAPowerNearestNeighborOptions: Inverse distance to a power, with nearest neighbour search, control options
type GridInverseDistanceToAPowerOptions ¶
type GridInverseDistanceToAPowerOptions struct { // Power: Weighting power Power float64 // Smoothing: Smoothing parameter Smoothing float64 // AnisotropyRatio: Reserved for future use AnisotropyRatio float64 // AnisotropyAngle: Reserved for future use AnisotropyAngle float64 // Radius1: The first radius (X axis if rotation angle is 0) of search ellipse. Radius1 float64 // Radius2: The second radius (Y axis if rotation angle is 0) of search ellipse. Radius2 float64 // Angle: Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. Angle float64 // MaxPoints: Maximum number of data points to use. // Do not search for more points than this number. If less amount of points found the grid node // considered empty and will be filled with NODATA marker. MaxPoints uint32 // MinPoints: Minimum number of data points to use. // If less amount of points found the grid node considered empty and will be filled with NODATA marker. MinPoints uint32 // NoDataValue: No data marker to fill empty points. NoDataValue float64 }
GridInverseDistanceToAPowerOptions: Inverse distance to a power method control options.
type GridLinearOptions ¶
type GridLinearOptions struct { // Radius: in case the point to be interpolated does not fit into a triangle of the Delaunay triangulation, // use that maximum distance to search a nearest neighbour, or use nodata otherwise. If set to -1, the search // distance is infinite. If set to 0, nodata value will be always used. Radius float64 // NoDataValue: no data marker to fill empty points. NoDataValue float64 }
GridLinearOptions: Linear method control options.
type GridMovingAverageOptions ¶
type GridMovingAverageOptions struct { // Radius1: The first radius (X axis if rotation angle is 0) of search ellipse. Radius1 float64 // Radius2: The second radius (Y axis if rotation angle is 0) of search ellipse. Radius2 float64 // Angle: Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. Angle float64 // MinPoints: Minimum number of data points to use. // If less amount of points found the grid node considered empty and will be filled with NODATA marker. MinPoints uint32 // NoDataValue: No data marker to fill empty points. NoDataValue float64 }
GridMovingAverageOptions: Moving average method control options
type GridNearestNeighborOptions ¶
type GridNearestNeighborOptions struct { // Radius1: The first radius (X axis if rotation angle is 0) of search ellipse. Radius1 float64 // Radius2: The second radius (Y axis if rotation angle is 0) of search ellipse. Radius2 float64 // Angle: Angle of ellipse rotation in degrees. Ellipse rotated counter clockwise. Angle float64 // NoDataValue: No data marker to fill empty points. NoDataValue float64 }
GridNearestNeighborOptions: Nearest neighbor method control options.