299 double search0[1] = {0};
300 double search1[1] = {1};
301 double search2[2] = {3, 5};
304 CU_ASSERT(
rast != NULL);
307 CU_ASSERT(
band != NULL);
309 for (
x = 0;
x < maxX;
x++) {
310 for (
y = 0;
y < maxY;
y++) {
339 CU_ASSERT_EQUAL(rtn, 83);
349 CU_ASSERT_EQUAL(rtn, 17);
363 CU_ASSERT_EQUAL(rtn, 3);
int rt_band_get_pixel_of_value(rt_band band, int exclude_nodata_value, double *searchset, int searchcount, rt_pixel *pixels)
Search band for pixel(s) with search values.
rt_raster rt_raster_new(uint32_t width, uint32_t height)
Construct a raster with given dimensions.
rt_errorstate rt_band_set_pixel(rt_band band, int x, int y, double val, int *converted)
Set single pixel's value.
void rtdealloc(void *mem)
rt_band cu_add_band(rt_raster raster, rt_pixtype pixtype, int hasnodata, double nodataval)
void cu_free_raster(rt_raster raster)