PostGIS
3.0.6dev-r@@SVN_REVISION@@
|
uint32_t rt_band_get_nearest_pixel | ( | rt_band | band, |
int | x, | ||
int | y, | ||
uint16_t | distancex, | ||
uint16_t | distancey, | ||
int | exclude_nodata_value, | ||
rt_pixel * | npixels | ||
) |
Get nearest pixel(s) with value (not NODATA) to specified pixel.
band | : the band to get nearest pixel(s) from |
x | : pixel column (0-based) |
y | : pixel row (0-based) |
distancex | : the number of pixels around the specified pixel along the X axis |
distancey | : the number of pixels around the specified pixel along the Y axis |
exclude_nodata_value | : if non-zero, ignore nodata values to check for pixels with value |
npixels | : return set of rt_pixel object or NULL |
band | : the band to get nearest pixel(s) from |
x | : the column of the pixel (0-based) |
y | : the line of the pixel (0-based) |
distancex | : the number of pixels around the specified pixel along the X axis |
distancey | : the number of pixels around the specified pixel along the Y axis |
exclude_nodata_value | : if non-zero, ignore nodata values to check for pixels with value |
npixels | : return set of rt_pixel object or NULL |
Definition at line 1374 of file rt_band.c.
References ovdump::band, genraster::count, distance(), ES_NONE, FALSE, rt_pixel_t::nodata, pixval::pixval, RASTER_DEBUG, RASTER_DEBUGF, rt_band_get_pixel(), rt_pixtype_get_min_value(), rt_pixtype_name(), rtalloc(), rtdealloc(), rterror(), rtrealloc(), rt_pixel_t::value, rt_pixel_t::x, pixval::x, rt_pixel_t::y, and pixval::y.
Referenced by RASTER_nearestValue(), RASTER_neighborhood(), rt_raster_iterator(), test_band_get_nearest_pixel(), and test_pixel_set_to_array().