PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
int 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 1241 of file rt_band.c.
References genraster::count, distance(), ES_NONE, FALSE, rt_band_t::hasnodata, rt_band_t::height, rt_band_t::isnodata, rt_pixel_t::nodata, rt_band_t::nodataval, rt_band_t::pixtype, 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_band_t::width, rt_pixel_t::x, and rt_pixel_t::y.
Referenced by RASTER_nearestValue(), RASTER_neighborhood(), rt_raster_iterator(), test_band_get_nearest_pixel(), and test_pixel_set_to_array().