14#ifndef NEARBLACK_LIB_H
15#define NEARBLACK_LIB_H
19#include "cpl_progress.h"
25typedef std::vector<int> Color;
26typedef std::vector<Color> Colors;
31 std::string osFormat{};
34 GDALProgressFunc pfnProgress = GDALDummyProgress;
37 void *pProgressData =
nullptr;
41 bool bNearWhite =
false;
42 bool bSetAlpha =
false;
43 bool bSetMask =
false;
45 bool bFloodFill =
false;
49 CPLStringList aosCreationOptions{};
56 int nDstBands,
bool bSetMask,
57 const Colors &oColors);
62 int nDstBands,
bool bSetMask,
63 const Colors &oColors);
Various convenience functions for working with strings and string lists.
void * GDALDatasetH
Opaque type used for the C bindings of the C++ GDALDataset class.
Definition gdal_fwd.h:42
void * GDALRasterBandH
Opaque type used for the C bindings of the C++ GDALRasterBand class.
Definition gdal_fwd.h:45
struct GDALNearblackOptions GDALNearblackOptions
Definition gdal_utils.h:136