r"""Wrapper for imagery.h

Generated with:
./run.py --no-embed-preamble /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin25.5.0 --cpp /usr/bin/clang -E  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk  "-Drestrict=" "-D__attribute__(x)=" "-D_Nonnull="  "-Dint8_t=char" "-DCF_INLINE=" "-D_Null_unspecified="  "-D__DARWIN_OS_INLINE="      -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin25.5.0/include -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin25.5.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_imagery.8.5 /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin25.5.0/include/grass/imagery.h /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin25.5.0/include/grass/defs/imagery.h -o OBJ.aarch64-apple-darwin25.5.0/imagery.py

Do not modify this file.
"""

__docformat__ = "restructuredtext"

# Begin preamble for Python

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function

# End preamble

_libs = {}
_libdirs = []

# Begin loader

from .ctypes_loader import *

# End loader

add_library_search_dirs([])

# Begin libraries
_libs["grass_imagery.8.5"] = load_library("grass_imagery.8.5")

# 1 libraries
# End libraries

# No modules

__darwin_off_t = c_int64# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/sys/_types.h: 83

fpos_t = __darwin_off_t# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdio.h: 86

# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdio.h: 97
class struct___sbuf(Structure):
    pass

struct___sbuf.__slots__ = [
    '_base',
    '_size',
]
struct___sbuf._fields_ = [
    ('_base', POINTER(c_ubyte)),
    ('_size', c_int),
]

# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdio.h: 103
class struct___sFILEX(Structure):
    pass

# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdio.h: 162
class struct___sFILE(Structure):
    pass

struct___sFILE.__slots__ = [
    '_p',
    '_r',
    '_w',
    '_flags',
    '_file',
    '_bf',
    '_lbfsize',
    '_cookie',
    '_close',
    '_read',
    '_seek',
    '_write',
    '_ub',
    '_extra',
    '_ur',
    '_ubuf',
    '_nbuf',
    '_lb',
    '_blksize',
    '_offset',
]
struct___sFILE._fields_ = [
    ('_p', POINTER(c_ubyte)),
    ('_r', c_int),
    ('_w', c_int),
    ('_flags', c_short),
    ('_file', c_short),
    ('_bf', struct___sbuf),
    ('_lbfsize', c_int),
    ('_cookie', POINTER(None)),
    ('_close', CFUNCTYPE(UNCHECKED(c_int), POINTER(None))),
    ('_read', CFUNCTYPE(UNCHECKED(c_int), POINTER(None), String, c_int)),
    ('_seek', CFUNCTYPE(UNCHECKED(fpos_t), POINTER(None), fpos_t, c_int)),
    ('_write', CFUNCTYPE(UNCHECKED(c_int), POINTER(None), String, c_int)),
    ('_ub', struct___sbuf),
    ('_extra', POINTER(struct___sFILEX)),
    ('_ur', c_int),
    ('_ubuf', c_ubyte * int(3)),
    ('_nbuf', c_ubyte * int(1)),
    ('_lb', struct___sbuf),
    ('_blksize', c_int),
    ('_offset', fpos_t),
]

FILE = struct___sFILE# /Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/_stdio.h: 162

# include/grass/gis.h: 446
class struct_Cell_head(Structure):
    pass

struct_Cell_head.__slots__ = [
    'format',
    'compressed',
    'rows',
    'rows3',
    'cols',
    'cols3',
    'depths',
    'proj',
    'zone',
    'ew_res',
    'ew_res3',
    'ns_res',
    'ns_res3',
    'tb_res',
    'north',
    'south',
    'east',
    'west',
    'top',
    'bottom',
]
struct_Cell_head._fields_ = [
    ('format', c_int),
    ('compressed', c_int),
    ('rows', c_int),
    ('rows3', c_int),
    ('cols', c_int),
    ('cols3', c_int),
    ('depths', c_int),
    ('proj', c_int),
    ('zone', c_int),
    ('ew_res', c_double),
    ('ew_res3', c_double),
    ('ns_res', c_double),
    ('ns_res3', c_double),
    ('tb_res', c_double),
    ('north', c_double),
    ('south', c_double),
    ('east', c_double),
    ('west', c_double),
    ('top', c_double),
    ('bottom', c_double),
]

CELL = c_int# include/grass/gis.h: 634

# include/grass/imagery.h: 10
class struct_Ref_Color(Structure):
    pass

struct_Ref_Color.__slots__ = [
    'table',
    'index',
    'buf',
    'fd',
    'min',
    'max',
    'n',
]
struct_Ref_Color._fields_ = [
    ('table', POINTER(c_ubyte)),
    ('index', POINTER(c_ubyte)),
    ('buf', POINTER(c_ubyte)),
    ('fd', c_int),
    ('min', CELL),
    ('max', CELL),
    ('n', c_int),
]

# include/grass/imagery.h: 19
class struct_Ref_Files(Structure):
    pass

struct_Ref_Files.__slots__ = [
    'name',
    'mapset',
]
struct_Ref_Files._fields_ = [
    ('name', c_char * int(256)),
    ('mapset', c_char * int(256)),
]

# include/grass/imagery.h: 24
class struct_Ref(Structure):
    pass

struct_Ref.__slots__ = [
    'nfiles',
    'file',
    'red',
    'grn',
    'blu',
]
struct_Ref._fields_ = [
    ('nfiles', c_int),
    ('file', POINTER(struct_Ref_Files)),
    ('red', struct_Ref_Color),
    ('grn', struct_Ref_Color),
    ('blu', struct_Ref_Color),
]

# include/grass/imagery.h: 30
class struct_Tape_Info(Structure):
    pass

struct_Tape_Info.__slots__ = [
    'title',
    'id',
    'desc',
]
struct_Tape_Info._fields_ = [
    ('title', c_char * int(75)),
    ('id', (c_char * int(75)) * int(2)),
    ('desc', (c_char * int(75)) * int(5)),
]

# include/grass/imagery.h: 36
class struct_Control_Points(Structure):
    pass

struct_Control_Points.__slots__ = [
    'count',
    'e1',
    'n1',
    'z1',
    'e2',
    'n2',
    'z2',
    'status',
]
struct_Control_Points._fields_ = [
    ('count', c_int),
    ('e1', POINTER(c_double)),
    ('n1', POINTER(c_double)),
    ('z1', POINTER(c_double)),
    ('e2', POINTER(c_double)),
    ('n2', POINTER(c_double)),
    ('z2', POINTER(c_double)),
    ('status', POINTER(c_int)),
]

# include/grass/imagery.h: 47
class struct_One_Sig(Structure):
    pass

struct_One_Sig.__slots__ = [
    'desc',
    'npoints',
    'mean',
    'var',
    'status',
    'r',
    'g',
    'b',
    'have_color',
    'oclass',
]
struct_One_Sig._fields_ = [
    ('desc', c_char * int(256)),
    ('npoints', c_int),
    ('mean', POINTER(c_double)),
    ('var', POINTER(POINTER(c_double))),
    ('status', c_int),
    ('r', c_float),
    ('g', c_float),
    ('b', c_float),
    ('have_color', c_int),
    ('oclass', c_int),
]

# include/grass/imagery.h: 58
class struct_Signature(Structure):
    pass

struct_Signature.__slots__ = [
    'nbands',
    'semantic_labels',
    'nsigs',
    'have_oclass',
    'title',
    'sig',
]
struct_Signature._fields_ = [
    ('nbands', c_int),
    ('semantic_labels', POINTER(POINTER(c_char))),
    ('nsigs', c_int),
    ('have_oclass', c_int),
    ('title', c_char * int(100)),
    ('sig', POINTER(struct_One_Sig)),
]

# include/grass/imagery.h: 67
class struct_SubSig(Structure):
    pass

struct_SubSig.__slots__ = [
    'N',
    'pi',
    'means',
    'R',
    'Rinv',
    'cnst',
    'used',
]
struct_SubSig._fields_ = [
    ('N', c_double),
    ('pi', c_double),
    ('means', POINTER(c_double)),
    ('R', POINTER(POINTER(c_double))),
    ('Rinv', POINTER(POINTER(c_double))),
    ('cnst', c_double),
    ('used', c_int),
]

# include/grass/imagery.h: 77
class struct_ClassData(Structure):
    pass

struct_ClassData.__slots__ = [
    'npixels',
    'count',
    'x',
    'p',
]
struct_ClassData._fields_ = [
    ('npixels', c_int),
    ('count', c_int),
    ('x', POINTER(POINTER(c_double))),
    ('p', POINTER(POINTER(c_double))),
]

# include/grass/imagery.h: 84
class struct_ClassSig(Structure):
    pass

struct_ClassSig.__slots__ = [
    'classnum',
    'title',
    'used',
    'type',
    'nsubclasses',
    'SubSig',
    'ClassData',
]
struct_ClassSig._fields_ = [
    ('classnum', c_long),
    ('title', String),
    ('used', c_int),
    ('type', c_int),
    ('nsubclasses', c_int),
    ('SubSig', POINTER(struct_SubSig)),
    ('ClassData', struct_ClassData),
]

# include/grass/imagery.h: 94
class struct_SigSet(Structure):
    pass

struct_SigSet.__slots__ = [
    'nbands',
    'semantic_labels',
    'nclasses',
    'title',
    'ClassSig',
]
struct_SigSet._fields_ = [
    ('nbands', c_int),
    ('semantic_labels', POINTER(POINTER(c_char))),
    ('nclasses', c_int),
    ('title', String),
    ('ClassSig', POINTER(struct_ClassSig)),
]

# include/grass/imagery.h: 132
class struct_anon_9(Structure):
    pass

struct_anon_9.__slots__ = [
    'cat',
    'name',
    'color',
    'nbands',
    'ncells',
    'band_min',
    'band_max',
    'band_sum',
    'band_mean',
    'band_stddev',
    'band_product',
    'band_histo',
    'band_range_min',
    'band_range_max',
    'nstd',
]
struct_anon_9._fields_ = [
    ('cat', c_int),
    ('name', String),
    ('color', String),
    ('nbands', c_int),
    ('ncells', c_int),
    ('band_min', POINTER(c_int)),
    ('band_max', POINTER(c_int)),
    ('band_sum', POINTER(c_float)),
    ('band_mean', POINTER(c_float)),
    ('band_stddev', POINTER(c_float)),
    ('band_product', POINTER(POINTER(c_float))),
    ('band_histo', POINTER(POINTER(c_int))),
    ('band_range_min', POINTER(c_int)),
    ('band_range_max', POINTER(c_int)),
    ('nstd', c_float),
]

IClass_statistics = struct_anon_9# include/grass/imagery.h: 132

# include/grass/imagery.h: 164
class struct_scScatts(Structure):
    pass

# include/grass/imagery.h: 143
class struct_scCats(Structure):
    pass

struct_scCats.__slots__ = [
    'type',
    'n_cats',
    'n_bands',
    'n_scatts',
    'n_a_cats',
    'cats_ids',
    'cats_idxs',
    'cats_arr',
]
struct_scCats._fields_ = [
    ('type', c_int),
    ('n_cats', c_int),
    ('n_bands', c_int),
    ('n_scatts', c_int),
    ('n_a_cats', c_int),
    ('cats_ids', POINTER(c_int)),
    ('cats_idxs', POINTER(c_int)),
    ('cats_arr', POINTER(POINTER(struct_scScatts))),
]

# include/grass/imagery.h: 178
class struct_scdScattData(Structure):
    pass

struct_scScatts.__slots__ = [
    'n_a_scatts',
    'scatts_bands',
    'scatt_idxs',
    'scatts_arr',
]
struct_scScatts._fields_ = [
    ('n_a_scatts', c_int),
    ('scatts_bands', POINTER(c_int)),
    ('scatt_idxs', POINTER(c_int)),
    ('scatts_arr', POINTER(POINTER(struct_scdScattData))),
]

struct_scdScattData.__slots__ = [
    'n_vals',
    'b_conds_arr',
    'scatt_vals_arr',
]
struct_scdScattData._fields_ = [
    ('n_vals', c_int),
    ('b_conds_arr', POINTER(c_ubyte)),
    ('scatt_vals_arr', POINTER(c_uint)),
]

enum_anon_10 = c_int# include/grass/imagery.h: 197

I_SIGFILE_TYPE_SIG = 0# include/grass/imagery.h: 197

I_SIGFILE_TYPE_SIGSET = (I_SIGFILE_TYPE_SIG + 1)# include/grass/imagery.h: 197

I_SIGFILE_TYPE_LIBSVM = (I_SIGFILE_TYPE_SIGSET + 1)# include/grass/imagery.h: 197

I_SIGFILE_TYPE = enum_anon_10# include/grass/imagery.h: 197

# include/grass/defs/imagery.h: 5
if _libs["grass_imagery.8.5"].has("I_malloc", "cdecl"):
    I_malloc = _libs["grass_imagery.8.5"].get("I_malloc", "cdecl")
    I_malloc.argtypes = [c_size_t]
    I_malloc.restype = POINTER(c_ubyte)
    I_malloc.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/imagery.h: 6
if _libs["grass_imagery.8.5"].has("I_realloc", "cdecl"):
    I_realloc = _libs["grass_imagery.8.5"].get("I_realloc", "cdecl")
    I_realloc.argtypes = [POINTER(None), c_size_t]
    I_realloc.restype = POINTER(c_ubyte)
    I_realloc.errcheck = lambda v,*a : cast(v, c_void_p)

# include/grass/defs/imagery.h: 7
if _libs["grass_imagery.8.5"].has("I_free", "cdecl"):
    I_free = _libs["grass_imagery.8.5"].get("I_free", "cdecl")
    I_free.argtypes = [POINTER(None)]
    I_free.restype = c_int

# include/grass/defs/imagery.h: 8
if _libs["grass_imagery.8.5"].has("I_alloc_double2", "cdecl"):
    I_alloc_double2 = _libs["grass_imagery.8.5"].get("I_alloc_double2", "cdecl")
    I_alloc_double2.argtypes = [c_int, c_int]
    I_alloc_double2.restype = POINTER(POINTER(c_double))

# include/grass/defs/imagery.h: 9
if _libs["grass_imagery.8.5"].has("I_alloc_int", "cdecl"):
    I_alloc_int = _libs["grass_imagery.8.5"].get("I_alloc_int", "cdecl")
    I_alloc_int.argtypes = [c_int]
    I_alloc_int.restype = POINTER(c_int)

# include/grass/defs/imagery.h: 10
if _libs["grass_imagery.8.5"].has("I_alloc_int2", "cdecl"):
    I_alloc_int2 = _libs["grass_imagery.8.5"].get("I_alloc_int2", "cdecl")
    I_alloc_int2.argtypes = [c_int, c_int]
    I_alloc_int2.restype = POINTER(POINTER(c_int))

# include/grass/defs/imagery.h: 11
if _libs["grass_imagery.8.5"].has("I_free_int2", "cdecl"):
    I_free_int2 = _libs["grass_imagery.8.5"].get("I_free_int2", "cdecl")
    I_free_int2.argtypes = [POINTER(POINTER(c_int))]
    I_free_int2.restype = c_int

# include/grass/defs/imagery.h: 12
if _libs["grass_imagery.8.5"].has("I_free_double2", "cdecl"):
    I_free_double2 = _libs["grass_imagery.8.5"].get("I_free_double2", "cdecl")
    I_free_double2.argtypes = [POINTER(POINTER(c_double))]
    I_free_double2.restype = c_int

# include/grass/defs/imagery.h: 13
if _libs["grass_imagery.8.5"].has("I_alloc_double3", "cdecl"):
    I_alloc_double3 = _libs["grass_imagery.8.5"].get("I_alloc_double3", "cdecl")
    I_alloc_double3.argtypes = [c_int, c_int, c_int]
    I_alloc_double3.restype = POINTER(POINTER(POINTER(c_double)))

# include/grass/defs/imagery.h: 14
if _libs["grass_imagery.8.5"].has("I_free_double3", "cdecl"):
    I_free_double3 = _libs["grass_imagery.8.5"].get("I_free_double3", "cdecl")
    I_free_double3.argtypes = [POINTER(POINTER(POINTER(c_double)))]
    I_free_double3.restype = c_int

# include/grass/defs/imagery.h: 17
if _libs["grass_imagery.8.5"].has("I_get_to_eol", "cdecl"):
    I_get_to_eol = _libs["grass_imagery.8.5"].get("I_get_to_eol", "cdecl")
    I_get_to_eol.argtypes = [String, c_int, POINTER(FILE)]
    I_get_to_eol.restype = c_int

# include/grass/defs/imagery.h: 20
if _libs["grass_imagery.8.5"].has("I_find_group", "cdecl"):
    I_find_group = _libs["grass_imagery.8.5"].get("I_find_group", "cdecl")
    I_find_group.argtypes = [String]
    I_find_group.restype = c_int

# include/grass/defs/imagery.h: 21
if _libs["grass_imagery.8.5"].has("I_find_group2", "cdecl"):
    I_find_group2 = _libs["grass_imagery.8.5"].get("I_find_group2", "cdecl")
    I_find_group2.argtypes = [String, String]
    I_find_group2.restype = c_int

# include/grass/defs/imagery.h: 22
if _libs["grass_imagery.8.5"].has("I_find_group_file", "cdecl"):
    I_find_group_file = _libs["grass_imagery.8.5"].get("I_find_group_file", "cdecl")
    I_find_group_file.argtypes = [String, String]
    I_find_group_file.restype = c_int

# include/grass/defs/imagery.h: 23
if _libs["grass_imagery.8.5"].has("I_find_group_file2", "cdecl"):
    I_find_group_file2 = _libs["grass_imagery.8.5"].get("I_find_group_file2", "cdecl")
    I_find_group_file2.argtypes = [String, String, String]
    I_find_group_file2.restype = c_int

# include/grass/defs/imagery.h: 24
if _libs["grass_imagery.8.5"].has("I_find_subgroup", "cdecl"):
    I_find_subgroup = _libs["grass_imagery.8.5"].get("I_find_subgroup", "cdecl")
    I_find_subgroup.argtypes = [String, String]
    I_find_subgroup.restype = c_int

# include/grass/defs/imagery.h: 25
if _libs["grass_imagery.8.5"].has("I_find_subgroup2", "cdecl"):
    I_find_subgroup2 = _libs["grass_imagery.8.5"].get("I_find_subgroup2", "cdecl")
    I_find_subgroup2.argtypes = [String, String, String]
    I_find_subgroup2.restype = c_int

# include/grass/defs/imagery.h: 26
if _libs["grass_imagery.8.5"].has("I_find_subgroup_file", "cdecl"):
    I_find_subgroup_file = _libs["grass_imagery.8.5"].get("I_find_subgroup_file", "cdecl")
    I_find_subgroup_file.argtypes = [String, String, String]
    I_find_subgroup_file.restype = c_int

# include/grass/defs/imagery.h: 27
if _libs["grass_imagery.8.5"].has("I_find_subgroup_file2", "cdecl"):
    I_find_subgroup_file2 = _libs["grass_imagery.8.5"].get("I_find_subgroup_file2", "cdecl")
    I_find_subgroup_file2.argtypes = [String, String, String, String]
    I_find_subgroup_file2.restype = c_int

# include/grass/defs/imagery.h: 29
if _libs["grass_imagery.8.5"].has("I_find_signature", "cdecl"):
    I_find_signature = _libs["grass_imagery.8.5"].get("I_find_signature", "cdecl")
    I_find_signature.argtypes = [I_SIGFILE_TYPE, String, String]
    I_find_signature.restype = c_char_p

# include/grass/defs/imagery.h: 30
if _libs["grass_imagery.8.5"].has("I_find_signature2", "cdecl"):
    I_find_signature2 = _libs["grass_imagery.8.5"].get("I_find_signature2", "cdecl")
    I_find_signature2.argtypes = [I_SIGFILE_TYPE, String, String]
    I_find_signature2.restype = c_char_p

# include/grass/defs/imagery.h: 33
if _libs["grass_imagery.8.5"].has("I_fopen_group_file_new", "cdecl"):
    I_fopen_group_file_new = _libs["grass_imagery.8.5"].get("I_fopen_group_file_new", "cdecl")
    I_fopen_group_file_new.argtypes = [String, String]
    I_fopen_group_file_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 34
if _libs["grass_imagery.8.5"].has("I_fopen_group_file_append", "cdecl"):
    I_fopen_group_file_append = _libs["grass_imagery.8.5"].get("I_fopen_group_file_append", "cdecl")
    I_fopen_group_file_append.argtypes = [String, String]
    I_fopen_group_file_append.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 35
if _libs["grass_imagery.8.5"].has("I_fopen_group_file_old", "cdecl"):
    I_fopen_group_file_old = _libs["grass_imagery.8.5"].get("I_fopen_group_file_old", "cdecl")
    I_fopen_group_file_old.argtypes = [String, String]
    I_fopen_group_file_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 36
if _libs["grass_imagery.8.5"].has("I_fopen_group_file_old2", "cdecl"):
    I_fopen_group_file_old2 = _libs["grass_imagery.8.5"].get("I_fopen_group_file_old2", "cdecl")
    I_fopen_group_file_old2.argtypes = [String, String, String]
    I_fopen_group_file_old2.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 37
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_file_new", "cdecl"):
    I_fopen_subgroup_file_new = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_file_new", "cdecl")
    I_fopen_subgroup_file_new.argtypes = [String, String, String]
    I_fopen_subgroup_file_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 38
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_file_append", "cdecl"):
    I_fopen_subgroup_file_append = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_file_append", "cdecl")
    I_fopen_subgroup_file_append.argtypes = [String, String, String]
    I_fopen_subgroup_file_append.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 39
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_file_old", "cdecl"):
    I_fopen_subgroup_file_old = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_file_old", "cdecl")
    I_fopen_subgroup_file_old.argtypes = [String, String, String]
    I_fopen_subgroup_file_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 40
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_file_old2", "cdecl"):
    I_fopen_subgroup_file_old2 = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_file_old2", "cdecl")
    I_fopen_subgroup_file_old2.argtypes = [String, String, String, String]
    I_fopen_subgroup_file_old2.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 44
if _libs["grass_imagery.8.5"].has("I_compute_georef_equations", "cdecl"):
    I_compute_georef_equations = _libs["grass_imagery.8.5"].get("I_compute_georef_equations", "cdecl")
    I_compute_georef_equations.argtypes = [POINTER(struct_Control_Points), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), c_int]
    I_compute_georef_equations.restype = c_int

# include/grass/defs/imagery.h: 46
if _libs["grass_imagery.8.5"].has("I_georef", "cdecl"):
    I_georef = _libs["grass_imagery.8.5"].get("I_georef", "cdecl")
    I_georef.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), c_int]
    I_georef.restype = c_int

# include/grass/defs/imagery.h: 49
if _libs["grass_imagery.8.5"].has("I_compute_georef_equations_tps", "cdecl"):
    I_compute_georef_equations_tps = _libs["grass_imagery.8.5"].get("I_compute_georef_equations_tps", "cdecl")
    I_compute_georef_equations_tps.argtypes = [POINTER(struct_Control_Points), POINTER(POINTER(c_double)), POINTER(POINTER(c_double)), POINTER(POINTER(c_double)), POINTER(POINTER(c_double))]
    I_compute_georef_equations_tps.restype = c_int

# include/grass/defs/imagery.h: 51
if _libs["grass_imagery.8.5"].has("I_georef_tps", "cdecl"):
    I_georef_tps = _libs["grass_imagery.8.5"].get("I_georef_tps", "cdecl")
    I_georef_tps.argtypes = [c_double, c_double, POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(c_double), POINTER(struct_Control_Points), c_int]
    I_georef_tps.restype = c_int

# include/grass/defs/imagery.h: 55
if _libs["grass_imagery.8.5"].has("I_get_group", "cdecl"):
    I_get_group = _libs["grass_imagery.8.5"].get("I_get_group", "cdecl")
    I_get_group.argtypes = [String]
    I_get_group.restype = c_int

# include/grass/defs/imagery.h: 56
if _libs["grass_imagery.8.5"].has("I_put_group", "cdecl"):
    I_put_group = _libs["grass_imagery.8.5"].get("I_put_group", "cdecl")
    I_put_group.argtypes = [String]
    I_put_group.restype = c_int

# include/grass/defs/imagery.h: 57
if _libs["grass_imagery.8.5"].has("I_get_subgroup", "cdecl"):
    I_get_subgroup = _libs["grass_imagery.8.5"].get("I_get_subgroup", "cdecl")
    I_get_subgroup.argtypes = [String, String]
    I_get_subgroup.restype = c_int

# include/grass/defs/imagery.h: 58
if _libs["grass_imagery.8.5"].has("I_put_subgroup", "cdecl"):
    I_put_subgroup = _libs["grass_imagery.8.5"].get("I_put_subgroup", "cdecl")
    I_put_subgroup.argtypes = [String, String]
    I_put_subgroup.restype = c_int

# include/grass/defs/imagery.h: 59
if _libs["grass_imagery.8.5"].has("I_get_group_ref", "cdecl"):
    I_get_group_ref = _libs["grass_imagery.8.5"].get("I_get_group_ref", "cdecl")
    I_get_group_ref.argtypes = [String, POINTER(struct_Ref)]
    I_get_group_ref.restype = c_int

# include/grass/defs/imagery.h: 60
if _libs["grass_imagery.8.5"].has("I_get_group_ref2", "cdecl"):
    I_get_group_ref2 = _libs["grass_imagery.8.5"].get("I_get_group_ref2", "cdecl")
    I_get_group_ref2.argtypes = [String, String, POINTER(struct_Ref)]
    I_get_group_ref2.restype = c_int

# include/grass/defs/imagery.h: 61
if _libs["grass_imagery.8.5"].has("I_get_subgroup_ref", "cdecl"):
    I_get_subgroup_ref = _libs["grass_imagery.8.5"].get("I_get_subgroup_ref", "cdecl")
    I_get_subgroup_ref.argtypes = [String, String, POINTER(struct_Ref)]
    I_get_subgroup_ref.restype = c_int

# include/grass/defs/imagery.h: 62
if _libs["grass_imagery.8.5"].has("I_get_subgroup_ref2", "cdecl"):
    I_get_subgroup_ref2 = _libs["grass_imagery.8.5"].get("I_get_subgroup_ref2", "cdecl")
    I_get_subgroup_ref2.argtypes = [String, String, String, POINTER(struct_Ref)]
    I_get_subgroup_ref2.restype = c_int

# include/grass/defs/imagery.h: 63
if _libs["grass_imagery.8.5"].has("I_init_ref_color_nums", "cdecl"):
    I_init_ref_color_nums = _libs["grass_imagery.8.5"].get("I_init_ref_color_nums", "cdecl")
    I_init_ref_color_nums.argtypes = [POINTER(struct_Ref)]
    I_init_ref_color_nums.restype = c_int

# include/grass/defs/imagery.h: 64
if _libs["grass_imagery.8.5"].has("I_put_group_ref", "cdecl"):
    I_put_group_ref = _libs["grass_imagery.8.5"].get("I_put_group_ref", "cdecl")
    I_put_group_ref.argtypes = [String, POINTER(struct_Ref)]
    I_put_group_ref.restype = c_int

# include/grass/defs/imagery.h: 65
if _libs["grass_imagery.8.5"].has("I_put_subgroup_ref", "cdecl"):
    I_put_subgroup_ref = _libs["grass_imagery.8.5"].get("I_put_subgroup_ref", "cdecl")
    I_put_subgroup_ref.argtypes = [String, String, POINTER(struct_Ref)]
    I_put_subgroup_ref.restype = c_int

# include/grass/defs/imagery.h: 66
if _libs["grass_imagery.8.5"].has("I_add_file_to_group_ref", "cdecl"):
    I_add_file_to_group_ref = _libs["grass_imagery.8.5"].get("I_add_file_to_group_ref", "cdecl")
    I_add_file_to_group_ref.argtypes = [String, String, POINTER(struct_Ref)]
    I_add_file_to_group_ref.restype = c_int

# include/grass/defs/imagery.h: 67
if _libs["grass_imagery.8.5"].has("I_transfer_group_ref_file", "cdecl"):
    I_transfer_group_ref_file = _libs["grass_imagery.8.5"].get("I_transfer_group_ref_file", "cdecl")
    I_transfer_group_ref_file.argtypes = [POINTER(struct_Ref), c_int, POINTER(struct_Ref)]
    I_transfer_group_ref_file.restype = c_int

# include/grass/defs/imagery.h: 68
if _libs["grass_imagery.8.5"].has("I_init_group_ref", "cdecl"):
    I_init_group_ref = _libs["grass_imagery.8.5"].get("I_init_group_ref", "cdecl")
    I_init_group_ref.argtypes = [POINTER(struct_Ref)]
    I_init_group_ref.restype = c_int

# include/grass/defs/imagery.h: 69
if _libs["grass_imagery.8.5"].has("I_free_group_ref", "cdecl"):
    I_free_group_ref = _libs["grass_imagery.8.5"].get("I_free_group_ref", "cdecl")
    I_free_group_ref.argtypes = [POINTER(struct_Ref)]
    I_free_group_ref.restype = c_int

# include/grass/defs/imagery.h: 72
class struct_Map_info(Structure):
    pass

# include/grass/defs/imagery.h: 73
if _libs["grass_imagery.8.5"].has("I_iclass_analysis", "cdecl"):
    I_iclass_analysis = _libs["grass_imagery.8.5"].get("I_iclass_analysis", "cdecl")
    I_iclass_analysis.argtypes = [POINTER(IClass_statistics), POINTER(struct_Ref), POINTER(struct_Map_info), String, String, String]
    I_iclass_analysis.restype = c_int

# include/grass/defs/imagery.h: 75
if _libs["grass_imagery.8.5"].has("I_iclass_init_group", "cdecl"):
    I_iclass_init_group = _libs["grass_imagery.8.5"].get("I_iclass_init_group", "cdecl")
    I_iclass_init_group.argtypes = [String, String, POINTER(struct_Ref)]
    I_iclass_init_group.restype = c_int

# include/grass/defs/imagery.h: 76
if _libs["grass_imagery.8.5"].has("I_iclass_create_raster", "cdecl"):
    I_iclass_create_raster = _libs["grass_imagery.8.5"].get("I_iclass_create_raster", "cdecl")
    I_iclass_create_raster.argtypes = [POINTER(IClass_statistics), POINTER(struct_Ref), String]
    I_iclass_create_raster.restype = None

# include/grass/defs/imagery.h: 79
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_nbands", "cdecl"):
    I_iclass_statistics_get_nbands = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_nbands", "cdecl")
    I_iclass_statistics_get_nbands.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]
    I_iclass_statistics_get_nbands.restype = None

# include/grass/defs/imagery.h: 80
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_cat", "cdecl"):
    I_iclass_statistics_get_cat = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_cat", "cdecl")
    I_iclass_statistics_get_cat.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]
    I_iclass_statistics_get_cat.restype = None

# include/grass/defs/imagery.h: 81
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_name", "cdecl"):
    I_iclass_statistics_get_name = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_name", "cdecl")
    I_iclass_statistics_get_name.argtypes = [POINTER(IClass_statistics), POINTER(POINTER(c_char))]
    I_iclass_statistics_get_name.restype = None

# include/grass/defs/imagery.h: 82
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_color", "cdecl"):
    I_iclass_statistics_get_color = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_color", "cdecl")
    I_iclass_statistics_get_color.argtypes = [POINTER(IClass_statistics), POINTER(POINTER(c_char))]
    I_iclass_statistics_get_color.restype = None

# include/grass/defs/imagery.h: 83
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_ncells", "cdecl"):
    I_iclass_statistics_get_ncells = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_ncells", "cdecl")
    I_iclass_statistics_get_ncells.argtypes = [POINTER(IClass_statistics), POINTER(c_int)]
    I_iclass_statistics_get_ncells.restype = None

# include/grass/defs/imagery.h: 84
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_max", "cdecl"):
    I_iclass_statistics_get_max = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_max", "cdecl")
    I_iclass_statistics_get_max.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]
    I_iclass_statistics_get_max.restype = c_int

# include/grass/defs/imagery.h: 85
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_range_max", "cdecl"):
    I_iclass_statistics_get_range_max = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_range_max", "cdecl")
    I_iclass_statistics_get_range_max.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]
    I_iclass_statistics_get_range_max.restype = c_int

# include/grass/defs/imagery.h: 86
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_min", "cdecl"):
    I_iclass_statistics_get_min = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_min", "cdecl")
    I_iclass_statistics_get_min.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]
    I_iclass_statistics_get_min.restype = c_int

# include/grass/defs/imagery.h: 87
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_range_min", "cdecl"):
    I_iclass_statistics_get_range_min = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_range_min", "cdecl")
    I_iclass_statistics_get_range_min.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_int)]
    I_iclass_statistics_get_range_min.restype = c_int

# include/grass/defs/imagery.h: 88
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_sum", "cdecl"):
    I_iclass_statistics_get_sum = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_sum", "cdecl")
    I_iclass_statistics_get_sum.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]
    I_iclass_statistics_get_sum.restype = c_int

# include/grass/defs/imagery.h: 89
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_mean", "cdecl"):
    I_iclass_statistics_get_mean = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_mean", "cdecl")
    I_iclass_statistics_get_mean.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]
    I_iclass_statistics_get_mean.restype = c_int

# include/grass/defs/imagery.h: 90
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_stddev", "cdecl"):
    I_iclass_statistics_get_stddev = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_stddev", "cdecl")
    I_iclass_statistics_get_stddev.argtypes = [POINTER(IClass_statistics), c_int, POINTER(c_float)]
    I_iclass_statistics_get_stddev.restype = c_int

# include/grass/defs/imagery.h: 91
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_nstd", "cdecl"):
    I_iclass_statistics_get_nstd = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_nstd", "cdecl")
    I_iclass_statistics_get_nstd.argtypes = [POINTER(IClass_statistics), POINTER(c_float)]
    I_iclass_statistics_get_nstd.restype = None

# include/grass/defs/imagery.h: 92
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_set_nstd", "cdecl"):
    I_iclass_statistics_set_nstd = _libs["grass_imagery.8.5"].get("I_iclass_statistics_set_nstd", "cdecl")
    I_iclass_statistics_set_nstd.argtypes = [POINTER(IClass_statistics), c_float]
    I_iclass_statistics_set_nstd.restype = None

# include/grass/defs/imagery.h: 93
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_histo", "cdecl"):
    I_iclass_statistics_get_histo = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_histo", "cdecl")
    I_iclass_statistics_get_histo.argtypes = [POINTER(IClass_statistics), c_int, c_int, POINTER(c_int)]
    I_iclass_statistics_get_histo.restype = c_int

# include/grass/defs/imagery.h: 94
if _libs["grass_imagery.8.5"].has("I_iclass_statistics_get_product", "cdecl"):
    I_iclass_statistics_get_product = _libs["grass_imagery.8.5"].get("I_iclass_statistics_get_product", "cdecl")
    I_iclass_statistics_get_product.argtypes = [POINTER(IClass_statistics), c_int, c_int, POINTER(c_float)]
    I_iclass_statistics_get_product.restype = c_int

# include/grass/defs/imagery.h: 95
if _libs["grass_imagery.8.5"].has("I_iclass_init_statistics", "cdecl"):
    I_iclass_init_statistics = _libs["grass_imagery.8.5"].get("I_iclass_init_statistics", "cdecl")
    I_iclass_init_statistics.argtypes = [POINTER(IClass_statistics), c_int, String, String, c_float]
    I_iclass_init_statistics.restype = None

# include/grass/defs/imagery.h: 97
if _libs["grass_imagery.8.5"].has("I_iclass_free_statistics", "cdecl"):
    I_iclass_free_statistics = _libs["grass_imagery.8.5"].get("I_iclass_free_statistics", "cdecl")
    I_iclass_free_statistics.argtypes = [POINTER(IClass_statistics)]
    I_iclass_free_statistics.restype = None

# include/grass/defs/imagery.h: 100
if _libs["grass_imagery.8.5"].has("I_iclass_init_signatures", "cdecl"):
    I_iclass_init_signatures = _libs["grass_imagery.8.5"].get("I_iclass_init_signatures", "cdecl")
    I_iclass_init_signatures.argtypes = [POINTER(struct_Signature), POINTER(struct_Ref)]
    I_iclass_init_signatures.restype = c_int

# include/grass/defs/imagery.h: 101
if _libs["grass_imagery.8.5"].has("I_iclass_add_signature", "cdecl"):
    I_iclass_add_signature = _libs["grass_imagery.8.5"].get("I_iclass_add_signature", "cdecl")
    I_iclass_add_signature.argtypes = [POINTER(struct_Signature), POINTER(IClass_statistics)]
    I_iclass_add_signature.restype = None

# include/grass/defs/imagery.h: 102
if _libs["grass_imagery.8.5"].has("I_iclass_write_signatures", "cdecl"):
    I_iclass_write_signatures = _libs["grass_imagery.8.5"].get("I_iclass_write_signatures", "cdecl")
    I_iclass_write_signatures.argtypes = [POINTER(struct_Signature), String]
    I_iclass_write_signatures.restype = c_int

# include/grass/defs/imagery.h: 105
if _libs["grass_imagery.8.5"].has("I_list_group", "cdecl"):
    I_list_group = _libs["grass_imagery.8.5"].get("I_list_group", "cdecl")
    I_list_group.argtypes = [String, POINTER(struct_Ref), POINTER(FILE)]
    I_list_group.restype = c_int

# include/grass/defs/imagery.h: 106
if _libs["grass_imagery.8.5"].has("I_list_group_simple", "cdecl"):
    I_list_group_simple = _libs["grass_imagery.8.5"].get("I_list_group_simple", "cdecl")
    I_list_group_simple.argtypes = [POINTER(struct_Ref), POINTER(FILE)]
    I_list_group_simple.restype = c_int

# include/grass/defs/imagery.h: 107
if _libs["grass_imagery.8.5"].has("I__list_group_name_fit", "cdecl"):
    I__list_group_name_fit = _libs["grass_imagery.8.5"].get("I__list_group_name_fit", "cdecl")
    I__list_group_name_fit.argtypes = [String, String, String]
    I__list_group_name_fit.restype = None

# include/grass/defs/imagery.h: 110
if _libs["grass_imagery.8.5"].has("I_list_subgroups", "cdecl"):
    I_list_subgroups = _libs["grass_imagery.8.5"].get("I_list_subgroups", "cdecl")
    I_list_subgroups.argtypes = [String, POINTER(c_int)]
    I_list_subgroups.restype = POINTER(POINTER(c_char))

# include/grass/defs/imagery.h: 111
if _libs["grass_imagery.8.5"].has("I_list_subgroups2", "cdecl"):
    I_list_subgroups2 = _libs["grass_imagery.8.5"].get("I_list_subgroups2", "cdecl")
    I_list_subgroups2.argtypes = [String, String, POINTER(c_int)]
    I_list_subgroups2.restype = POINTER(POINTER(c_char))

# include/grass/defs/imagery.h: 112
if _libs["grass_imagery.8.5"].has("I_list_subgroup", "cdecl"):
    I_list_subgroup = _libs["grass_imagery.8.5"].get("I_list_subgroup", "cdecl")
    I_list_subgroup.argtypes = [String, String, POINTER(struct_Ref), POINTER(FILE)]
    I_list_subgroup.restype = c_int

# include/grass/defs/imagery.h: 113
if _libs["grass_imagery.8.5"].has("I_list_subgroup_simple", "cdecl"):
    I_list_subgroup_simple = _libs["grass_imagery.8.5"].get("I_list_subgroup_simple", "cdecl")
    I_list_subgroup_simple.argtypes = [POINTER(struct_Ref), POINTER(FILE)]
    I_list_subgroup_simple.restype = c_int

# include/grass/defs/imagery.h: 116
if _libs["grass_imagery.8.5"].has("I_location_info", "cdecl"):
    I_location_info = _libs["grass_imagery.8.5"].get("I_location_info", "cdecl")
    I_location_info.argtypes = [String]
    if sizeof(c_int) == sizeof(c_void_p):
        I_location_info.restype = ReturnString
    else:
        I_location_info.restype = String
        I_location_info.errcheck = ReturnString

# include/grass/defs/imagery.h: 119
if _libs["grass_imagery.8.5"].has("I_new_control_point", "cdecl"):
    I_new_control_point = _libs["grass_imagery.8.5"].get("I_new_control_point", "cdecl")
    I_new_control_point.argtypes = [POINTER(struct_Control_Points), c_double, c_double, c_double, c_double, c_int]
    I_new_control_point.restype = c_int

# include/grass/defs/imagery.h: 121
if _libs["grass_imagery.8.5"].has("I_get_control_points", "cdecl"):
    I_get_control_points = _libs["grass_imagery.8.5"].get("I_get_control_points", "cdecl")
    I_get_control_points.argtypes = [String, POINTER(struct_Control_Points)]
    I_get_control_points.restype = c_int

# include/grass/defs/imagery.h: 122
if _libs["grass_imagery.8.5"].has("I_put_control_points", "cdecl"):
    I_put_control_points = _libs["grass_imagery.8.5"].get("I_put_control_points", "cdecl")
    I_put_control_points.argtypes = [String, POINTER(struct_Control_Points)]
    I_put_control_points.restype = c_int

# include/grass/defs/imagery.h: 125
if _libs["grass_imagery.8.5"].has("I_fopen_group_ref_new", "cdecl"):
    I_fopen_group_ref_new = _libs["grass_imagery.8.5"].get("I_fopen_group_ref_new", "cdecl")
    I_fopen_group_ref_new.argtypes = [String]
    I_fopen_group_ref_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 126
if _libs["grass_imagery.8.5"].has("I_fopen_group_ref_old", "cdecl"):
    I_fopen_group_ref_old = _libs["grass_imagery.8.5"].get("I_fopen_group_ref_old", "cdecl")
    I_fopen_group_ref_old.argtypes = [String]
    I_fopen_group_ref_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 127
if _libs["grass_imagery.8.5"].has("I_fopen_group_ref_old2", "cdecl"):
    I_fopen_group_ref_old2 = _libs["grass_imagery.8.5"].get("I_fopen_group_ref_old2", "cdecl")
    I_fopen_group_ref_old2.argtypes = [String, String]
    I_fopen_group_ref_old2.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 128
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_ref_new", "cdecl"):
    I_fopen_subgroup_ref_new = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_ref_new", "cdecl")
    I_fopen_subgroup_ref_new.argtypes = [String, String]
    I_fopen_subgroup_ref_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 129
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_ref_old", "cdecl"):
    I_fopen_subgroup_ref_old = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_ref_old", "cdecl")
    I_fopen_subgroup_ref_old.argtypes = [String, String]
    I_fopen_subgroup_ref_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 130
if _libs["grass_imagery.8.5"].has("I_fopen_subgroup_ref_old2", "cdecl"):
    I_fopen_subgroup_ref_old2 = _libs["grass_imagery.8.5"].get("I_fopen_subgroup_ref_old2", "cdecl")
    I_fopen_subgroup_ref_old2.argtypes = [String, String, String]
    I_fopen_subgroup_ref_old2.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 133
if _libs["grass_imagery.8.5"].has("I_sc_init_cats", "cdecl"):
    I_sc_init_cats = _libs["grass_imagery.8.5"].get("I_sc_init_cats", "cdecl")
    I_sc_init_cats.argtypes = [POINTER(struct_scCats), c_int, c_int]
    I_sc_init_cats.restype = None

# include/grass/defs/imagery.h: 134
if _libs["grass_imagery.8.5"].has("I_sc_free_cats", "cdecl"):
    I_sc_free_cats = _libs["grass_imagery.8.5"].get("I_sc_free_cats", "cdecl")
    I_sc_free_cats.argtypes = [POINTER(struct_scCats)]
    I_sc_free_cats.restype = None

# include/grass/defs/imagery.h: 135
if _libs["grass_imagery.8.5"].has("I_sc_add_cat", "cdecl"):
    I_sc_add_cat = _libs["grass_imagery.8.5"].get("I_sc_add_cat", "cdecl")
    I_sc_add_cat.argtypes = [POINTER(struct_scCats)]
    I_sc_add_cat.restype = c_int

# include/grass/defs/imagery.h: 136
if _libs["grass_imagery.8.5"].has("I_sc_insert_scatt_data", "cdecl"):
    I_sc_insert_scatt_data = _libs["grass_imagery.8.5"].get("I_sc_insert_scatt_data", "cdecl")
    I_sc_insert_scatt_data.argtypes = [POINTER(struct_scCats), POINTER(struct_scdScattData), c_int, c_int]
    I_sc_insert_scatt_data.restype = c_int

# include/grass/defs/imagery.h: 138
if _libs["grass_imagery.8.5"].has("I_scd_init_scatt_data", "cdecl"):
    I_scd_init_scatt_data = _libs["grass_imagery.8.5"].get("I_scd_init_scatt_data", "cdecl")
    I_scd_init_scatt_data.argtypes = [POINTER(struct_scdScattData), c_int, c_int, POINTER(None)]
    I_scd_init_scatt_data.restype = None

# include/grass/defs/imagery.h: 141
if _libs["grass_imagery.8.5"].has("I_compute_scatts", "cdecl"):
    I_compute_scatts = _libs["grass_imagery.8.5"].get("I_compute_scatts", "cdecl")
    I_compute_scatts.argtypes = [POINTER(struct_Cell_head), POINTER(struct_scCats), POINTER(POINTER(c_char)), POINTER(POINTER(c_char)), c_int, POINTER(struct_scCats), POINTER(POINTER(c_char))]
    I_compute_scatts.restype = c_int

# include/grass/defs/imagery.h: 144
if _libs["grass_imagery.8.5"].has("I_create_cat_rast", "cdecl"):
    I_create_cat_rast = _libs["grass_imagery.8.5"].get("I_create_cat_rast", "cdecl")
    I_create_cat_rast.argtypes = [POINTER(struct_Cell_head), String]
    I_create_cat_rast.restype = c_int

# include/grass/defs/imagery.h: 145
if _libs["grass_imagery.8.5"].has("I_insert_patch_to_cat_rast", "cdecl"):
    I_insert_patch_to_cat_rast = _libs["grass_imagery.8.5"].get("I_insert_patch_to_cat_rast", "cdecl")
    I_insert_patch_to_cat_rast.argtypes = [String, POINTER(struct_Cell_head), String]
    I_insert_patch_to_cat_rast.restype = c_int

# include/grass/defs/imagery.h: 147
if _libs["grass_imagery.8.5"].has("I_id_scatt_to_bands", "cdecl"):
    I_id_scatt_to_bands = _libs["grass_imagery.8.5"].get("I_id_scatt_to_bands", "cdecl")
    I_id_scatt_to_bands.argtypes = [c_int, c_int, POINTER(c_int), POINTER(c_int)]
    I_id_scatt_to_bands.restype = c_int

# include/grass/defs/imagery.h: 148
if _libs["grass_imagery.8.5"].has("I_bands_to_id_scatt", "cdecl"):
    I_bands_to_id_scatt = _libs["grass_imagery.8.5"].get("I_bands_to_id_scatt", "cdecl")
    I_bands_to_id_scatt.argtypes = [c_int, c_int, c_int, POINTER(c_int)]
    I_bands_to_id_scatt.restype = c_int

# include/grass/defs/imagery.h: 150
if _libs["grass_imagery.8.5"].has("I_merge_arrays", "cdecl"):
    I_merge_arrays = _libs["grass_imagery.8.5"].get("I_merge_arrays", "cdecl")
    I_merge_arrays.argtypes = [POINTER(c_ubyte), POINTER(c_ubyte), c_uint, c_uint, c_double]
    I_merge_arrays.restype = c_int

# include/grass/defs/imagery.h: 152
if _libs["grass_imagery.8.5"].has("I_apply_colormap", "cdecl"):
    I_apply_colormap = _libs["grass_imagery.8.5"].get("I_apply_colormap", "cdecl")
    I_apply_colormap.argtypes = [POINTER(c_ubyte), POINTER(c_ubyte), c_uint, POINTER(c_ubyte), POINTER(c_ubyte)]
    I_apply_colormap.restype = c_int

# include/grass/defs/imagery.h: 154
if _libs["grass_imagery.8.5"].has("I_rasterize", "cdecl"):
    I_rasterize = _libs["grass_imagery.8.5"].get("I_rasterize", "cdecl")
    I_rasterize.argtypes = [POINTER(c_double), c_int, c_ubyte, POINTER(struct_Cell_head), POINTER(c_ubyte)]
    I_rasterize.restype = c_int

# include/grass/defs/imagery.h: 158
if _libs["grass_imagery.8.5"].has("I_get_signatures_dir", "cdecl"):
    I_get_signatures_dir = _libs["grass_imagery.8.5"].get("I_get_signatures_dir", "cdecl")
    I_get_signatures_dir.argtypes = [String, I_SIGFILE_TYPE]
    I_get_signatures_dir.restype = None

# include/grass/defs/imagery.h: 159
if _libs["grass_imagery.8.5"].has("I_make_signatures_dir", "cdecl"):
    I_make_signatures_dir = _libs["grass_imagery.8.5"].get("I_make_signatures_dir", "cdecl")
    I_make_signatures_dir.argtypes = [I_SIGFILE_TYPE]
    I_make_signatures_dir.restype = None

# include/grass/defs/imagery.h: 160
if _libs["grass_imagery.8.5"].has("I_signatures_remove", "cdecl"):
    I_signatures_remove = _libs["grass_imagery.8.5"].get("I_signatures_remove", "cdecl")
    I_signatures_remove.argtypes = [I_SIGFILE_TYPE, String]
    I_signatures_remove.restype = c_int

# include/grass/defs/imagery.h: 161
if _libs["grass_imagery.8.5"].has("I_signatures_copy", "cdecl"):
    I_signatures_copy = _libs["grass_imagery.8.5"].get("I_signatures_copy", "cdecl")
    I_signatures_copy.argtypes = [I_SIGFILE_TYPE, String, String, String]
    I_signatures_copy.restype = c_int

# include/grass/defs/imagery.h: 162
if _libs["grass_imagery.8.5"].has("I_signatures_rename", "cdecl"):
    I_signatures_rename = _libs["grass_imagery.8.5"].get("I_signatures_rename", "cdecl")
    I_signatures_rename.argtypes = [I_SIGFILE_TYPE, String, String]
    I_signatures_rename.restype = c_int

# include/grass/defs/imagery.h: 163
if _libs["grass_imagery.8.5"].has("I_signatures_list_by_type", "cdecl"):
    I_signatures_list_by_type = _libs["grass_imagery.8.5"].get("I_signatures_list_by_type", "cdecl")
    I_signatures_list_by_type.argtypes = [I_SIGFILE_TYPE, String, POINTER(POINTER(POINTER(c_char)))]
    I_signatures_list_by_type.restype = c_int

# include/grass/defs/imagery.h: 164
if _libs["grass_imagery.8.5"].has("I_free_signatures_list", "cdecl"):
    I_free_signatures_list = _libs["grass_imagery.8.5"].get("I_free_signatures_list", "cdecl")
    I_free_signatures_list.argtypes = [c_int, POINTER(POINTER(POINTER(c_char)))]
    I_free_signatures_list.restype = None

# include/grass/defs/imagery.h: 167
if _libs["grass_imagery.8.5"].has("I_init_signatures", "cdecl"):
    I_init_signatures = _libs["grass_imagery.8.5"].get("I_init_signatures", "cdecl")
    I_init_signatures.argtypes = [POINTER(struct_Signature), c_int]
    I_init_signatures.restype = c_int

# include/grass/defs/imagery.h: 168
if _libs["grass_imagery.8.5"].has("I_new_signature", "cdecl"):
    I_new_signature = _libs["grass_imagery.8.5"].get("I_new_signature", "cdecl")
    I_new_signature.argtypes = [POINTER(struct_Signature)]
    I_new_signature.restype = c_int

# include/grass/defs/imagery.h: 169
if _libs["grass_imagery.8.5"].has("I_free_signatures", "cdecl"):
    I_free_signatures = _libs["grass_imagery.8.5"].get("I_free_signatures", "cdecl")
    I_free_signatures.argtypes = [POINTER(struct_Signature)]
    I_free_signatures.restype = c_int

# include/grass/defs/imagery.h: 170
if _libs["grass_imagery.8.5"].has("I_read_one_signature", "cdecl"):
    I_read_one_signature = _libs["grass_imagery.8.5"].get("I_read_one_signature", "cdecl")
    I_read_one_signature.argtypes = [POINTER(FILE), POINTER(struct_Signature)]
    I_read_one_signature.restype = c_int

# include/grass/defs/imagery.h: 171
if _libs["grass_imagery.8.5"].has("I_read_signatures", "cdecl"):
    I_read_signatures = _libs["grass_imagery.8.5"].get("I_read_signatures", "cdecl")
    I_read_signatures.argtypes = [POINTER(FILE), POINTER(struct_Signature)]
    I_read_signatures.restype = c_int

# include/grass/defs/imagery.h: 172
if _libs["grass_imagery.8.5"].has("I_write_signatures", "cdecl"):
    I_write_signatures = _libs["grass_imagery.8.5"].get("I_write_signatures", "cdecl")
    I_write_signatures.argtypes = [POINTER(FILE), POINTER(struct_Signature)]
    I_write_signatures.restype = c_int

# include/grass/defs/imagery.h: 173
if _libs["grass_imagery.8.5"].has("I_sort_signatures_by_semantic_label", "cdecl"):
    I_sort_signatures_by_semantic_label = _libs["grass_imagery.8.5"].get("I_sort_signatures_by_semantic_label", "cdecl")
    I_sort_signatures_by_semantic_label.argtypes = [POINTER(struct_Signature), POINTER(struct_Ref)]
    I_sort_signatures_by_semantic_label.restype = POINTER(POINTER(c_char))

# include/grass/defs/imagery.h: 177
if _libs["grass_imagery.8.5"].has("I_fopen_signature_file_new", "cdecl"):
    I_fopen_signature_file_new = _libs["grass_imagery.8.5"].get("I_fopen_signature_file_new", "cdecl")
    I_fopen_signature_file_new.argtypes = [String]
    I_fopen_signature_file_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 178
if _libs["grass_imagery.8.5"].has("I_fopen_signature_file_old", "cdecl"):
    I_fopen_signature_file_old = _libs["grass_imagery.8.5"].get("I_fopen_signature_file_old", "cdecl")
    I_fopen_signature_file_old.argtypes = [String]
    I_fopen_signature_file_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 181
if _libs["grass_imagery.8.5"].has("I_SigSetNClasses", "cdecl"):
    I_SigSetNClasses = _libs["grass_imagery.8.5"].get("I_SigSetNClasses", "cdecl")
    I_SigSetNClasses.argtypes = [POINTER(struct_SigSet)]
    I_SigSetNClasses.restype = c_int

# include/grass/defs/imagery.h: 182
if _libs["grass_imagery.8.5"].has("I_AllocClassData", "cdecl"):
    I_AllocClassData = _libs["grass_imagery.8.5"].get("I_AllocClassData", "cdecl")
    I_AllocClassData.argtypes = [POINTER(struct_SigSet), POINTER(struct_ClassSig), c_int]
    I_AllocClassData.restype = POINTER(struct_ClassData)

# include/grass/defs/imagery.h: 183
if _libs["grass_imagery.8.5"].has("I_InitSigSet", "cdecl"):
    I_InitSigSet = _libs["grass_imagery.8.5"].get("I_InitSigSet", "cdecl")
    I_InitSigSet.argtypes = [POINTER(struct_SigSet), c_int]
    I_InitSigSet.restype = c_int

# include/grass/defs/imagery.h: 184
if _libs["grass_imagery.8.5"].has("I_NewClassSig", "cdecl"):
    I_NewClassSig = _libs["grass_imagery.8.5"].get("I_NewClassSig", "cdecl")
    I_NewClassSig.argtypes = [POINTER(struct_SigSet)]
    I_NewClassSig.restype = POINTER(struct_ClassSig)

# include/grass/defs/imagery.h: 185
if _libs["grass_imagery.8.5"].has("I_NewSubSig", "cdecl"):
    I_NewSubSig = _libs["grass_imagery.8.5"].get("I_NewSubSig", "cdecl")
    I_NewSubSig.argtypes = [POINTER(struct_SigSet), POINTER(struct_ClassSig)]
    I_NewSubSig.restype = POINTER(struct_SubSig)

# include/grass/defs/imagery.h: 186
if _libs["grass_imagery.8.5"].has("I_ReadSigSet", "cdecl"):
    I_ReadSigSet = _libs["grass_imagery.8.5"].get("I_ReadSigSet", "cdecl")
    I_ReadSigSet.argtypes = [POINTER(FILE), POINTER(struct_SigSet)]
    I_ReadSigSet.restype = c_int

# include/grass/defs/imagery.h: 187
if _libs["grass_imagery.8.5"].has("I_SetSigTitle", "cdecl"):
    I_SetSigTitle = _libs["grass_imagery.8.5"].get("I_SetSigTitle", "cdecl")
    I_SetSigTitle.argtypes = [POINTER(struct_SigSet), String]
    I_SetSigTitle.restype = c_int

# include/grass/defs/imagery.h: 188
if _libs["grass_imagery.8.5"].has("I_GetSigTitle", "cdecl"):
    I_GetSigTitle = _libs["grass_imagery.8.5"].get("I_GetSigTitle", "cdecl")
    I_GetSigTitle.argtypes = [POINTER(struct_SigSet)]
    I_GetSigTitle.restype = c_char_p

# include/grass/defs/imagery.h: 189
if _libs["grass_imagery.8.5"].has("I_SetClassTitle", "cdecl"):
    I_SetClassTitle = _libs["grass_imagery.8.5"].get("I_SetClassTitle", "cdecl")
    I_SetClassTitle.argtypes = [POINTER(struct_ClassSig), String]
    I_SetClassTitle.restype = c_int

# include/grass/defs/imagery.h: 190
if _libs["grass_imagery.8.5"].has("I_GetClassTitle", "cdecl"):
    I_GetClassTitle = _libs["grass_imagery.8.5"].get("I_GetClassTitle", "cdecl")
    I_GetClassTitle.argtypes = [POINTER(struct_ClassSig)]
    I_GetClassTitle.restype = c_char_p

# include/grass/defs/imagery.h: 191
if _libs["grass_imagery.8.5"].has("I_WriteSigSet", "cdecl"):
    I_WriteSigSet = _libs["grass_imagery.8.5"].get("I_WriteSigSet", "cdecl")
    I_WriteSigSet.argtypes = [POINTER(FILE), POINTER(struct_SigSet)]
    I_WriteSigSet.restype = c_int

# include/grass/defs/imagery.h: 192
if _libs["grass_imagery.8.5"].has("I_SortSigSetBySemanticLabel", "cdecl"):
    I_SortSigSetBySemanticLabel = _libs["grass_imagery.8.5"].get("I_SortSigSetBySemanticLabel", "cdecl")
    I_SortSigSetBySemanticLabel.argtypes = [POINTER(struct_SigSet), POINTER(struct_Ref)]
    I_SortSigSetBySemanticLabel.restype = POINTER(POINTER(c_char))

# include/grass/defs/imagery.h: 195
if _libs["grass_imagery.8.5"].has("I_fopen_sigset_file_new", "cdecl"):
    I_fopen_sigset_file_new = _libs["grass_imagery.8.5"].get("I_fopen_sigset_file_new", "cdecl")
    I_fopen_sigset_file_new.argtypes = [String]
    I_fopen_sigset_file_new.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 196
if _libs["grass_imagery.8.5"].has("I_fopen_sigset_file_old", "cdecl"):
    I_fopen_sigset_file_old = _libs["grass_imagery.8.5"].get("I_fopen_sigset_file_old", "cdecl")
    I_fopen_sigset_file_old.argtypes = [String]
    I_fopen_sigset_file_old.restype = POINTER(FILE)

# include/grass/defs/imagery.h: 199
if _libs["grass_imagery.8.5"].has("I_get_target", "cdecl"):
    I_get_target = _libs["grass_imagery.8.5"].get("I_get_target", "cdecl")
    I_get_target.argtypes = [String, String, String]
    I_get_target.restype = c_int

# include/grass/defs/imagery.h: 200
if _libs["grass_imagery.8.5"].has("I_put_target", "cdecl"):
    I_put_target = _libs["grass_imagery.8.5"].get("I_put_target", "cdecl")
    I_put_target.argtypes = [String, String, String]
    I_put_target.restype = c_int

# include/grass/defs/imagery.h: 203
if _libs["grass_imagery.8.5"].has("I_get_group_title", "cdecl"):
    I_get_group_title = _libs["grass_imagery.8.5"].get("I_get_group_title", "cdecl")
    I_get_group_title.argtypes = [String, String, c_int]
    I_get_group_title.restype = c_int

# include/grass/defs/imagery.h: 204
if _libs["grass_imagery.8.5"].has("I_put_group_title", "cdecl"):
    I_put_group_title = _libs["grass_imagery.8.5"].get("I_put_group_title", "cdecl")
    I_put_group_title.argtypes = [String, String]
    I_put_group_title.restype = c_int

# include/grass/defs/imagery.h: 207
if _libs["grass_imagery.8.5"].has("I_variance", "cdecl"):
    I_variance = _libs["grass_imagery.8.5"].get("I_variance", "cdecl")
    I_variance.argtypes = [c_double, c_double, c_int]
    I_variance.restype = c_double

# include/grass/defs/imagery.h: 208
if _libs["grass_imagery.8.5"].has("I_stddev", "cdecl"):
    I_stddev = _libs["grass_imagery.8.5"].get("I_stddev", "cdecl")
    I_stddev.argtypes = [c_double, c_double, c_int]
    I_stddev.restype = c_double

# include/grass/gis.h: 196
try:
    GNAME_MAX = 256
except:
    pass

# include/grass/imagery.h: 8
try:
    INAME_LEN = GNAME_MAX
except:
    pass

# include/grass/imagery.h: 136
try:
    SC_SCATT_DATA = 0
except:
    pass

# include/grass/imagery.h: 137
try:
    SC_SCATT_CONDITIONS = 1
except:
    pass

# include/grass/imagery.h: 199
try:
    SIGNATURE_TYPE_MIXED = 1
except:
    pass

# include/grass/imagery.h: 200
try:
    I_SIGFILE_TYPE_COUNT = 3
except:
    pass

# include/grass/imagery.h: 203
try:
    GROUPFILE = 'CURGROUP'
except:
    pass

# include/grass/imagery.h: 204
try:
    SUBGROUPFILE = 'CURSUBGROUP'
except:
    pass

Ref_Color = struct_Ref_Color# include/grass/imagery.h: 10

Ref_Files = struct_Ref_Files# include/grass/imagery.h: 19

Ref = struct_Ref# include/grass/imagery.h: 24

Tape_Info = struct_Tape_Info# include/grass/imagery.h: 30

Control_Points = struct_Control_Points# include/grass/imagery.h: 36

One_Sig = struct_One_Sig# include/grass/imagery.h: 47

Signature = struct_Signature# include/grass/imagery.h: 58

SubSig = struct_SubSig# include/grass/imagery.h: 67

ClassData = struct_ClassData# include/grass/imagery.h: 77

ClassSig = struct_ClassSig# include/grass/imagery.h: 84

SigSet = struct_SigSet# include/grass/imagery.h: 94

scScatts = struct_scScatts# include/grass/imagery.h: 164

scCats = struct_scCats# include/grass/imagery.h: 143

scdScattData = struct_scdScattData# include/grass/imagery.h: 178

Map_info = struct_Map_info# include/grass/defs/imagery.h: 72

# No inserted files

# No prefix-stripping

