static bpy::dict py_get_bands_as_uchar(gdalwrap::gdal& self) { bpy::dict retval; for (size_t idx = 0; idx < self.bands.size(); idx++) retval[ self.names[idx] ] = std_vector_to_py_list( gdalwrap::raster2bytes( self.bands[idx] ) ); return retval; }
list VISPConverter::convertToBoost(const vpHomogeneousMatrix &cMo) { vpHomogeneousMatrix mine(cMo); std::vector<double> v; mine.convert(v); return std_vector_to_py_list(v); }
static bpy::list py_weight_map_get_weight_band_uchar(gladys::weight_map& self) { return std_vector_to_py_list( self.get_weight_band_uchar() ); }
static bpy::list py_get_band_as_uchar(gdalwrap::gdal& self, const std::string& name) { return std_vector_to_py_list(gdalwrap::raster2bytes(self.get_band(name))); }
static bpy::list py_get_band(gdalwrap::gdal& self, const std::string& name) { return std_vector_to_py_list(self.get_band(name)); }