ST_Min4ma — 計算鄰域內最小像素值的柵格處理函數。
float8 ST_Min4ma(
float8[][] matrix, text nodatamode, text[] VARIADIC args)
;
double precision ST_Min4ma(
double precision[][][] value, integer[][] pos, text[] VARIADIC userargs)
;
計算像素鄰域內的最小像素值。
對於變體 2,可以通過將該值傳遞給 userargs 來指定 NODATA 像素的替換值。
![]() |
|
變體 1 是一個專用的回呼函式,用作 ST_MapAlgebraFctNgb 的回呼參數。 |
![]() |
|
變體 2 是一個專用的回呼函式,用作 ST_MapAlgebra (回呼函式版本) 的回呼參數。 |
![]() |
|
由於 ST_MapAlgebraFctNgb 自 2.1.0 版本起已被棄用,因此不建議使用變體 1。 |
可用性:2.0.0
增強功能:2.1.0 新增變體 2
SELECT rid, st_value( st_mapalgebrafctngb(rast, 1, NULL, 1, 1, 'st_min4ma(float[][],text,text[])'::regprocedure, 'ignore', NULL), 2, 2 ) FROM dummy_rast WHERE rid = 2; rid | st_value -----+---------- 2 | 250 (1 row)