1 #ifndef GRASS_IMAGEDEFS_H
2 #define GRASS_IMAGEDEFS_H
45 double *,
double *,
int);
46 int I_georef(
double,
double,
double *,
double *,
double *,
double *,
int);
50 double **,
double **,
double **);
51 int I_georef_tps(
double,
double,
double *,
double *,
double *,
double *,
74 const char *,
const char *,
const char *);
142 const char **,
int,
struct scCats *,
const char **);
150 int I_merge_arrays(
unsigned char *,
unsigned char *,
unsigned,
unsigned,
153 unsigned char *,
unsigned char *);
200 int I_put_target(
const char *,
const char *,
const char *);
208 double I_stddev(
double,
double,
int);
FILE * I_fopen_subgroup_ref_old2(const char *, const char *, const char *)
int I_find_group_file2(const char *, const char *, const char *)
Searches for a group file in the specified mapset.
char ** I_SortSigSetBySemanticLabel(struct SigSet *, const struct Ref *)
Reorder struct SigSet to match imagery group member order.
int I_get_subgroup_ref2(const char *, const char *, const char *, struct Ref *)
read subgroup REF file
int I_sc_insert_scatt_data(struct scCats *, struct scdScattData *, int, int)
Insert scatter plot data . Inserted scatt_data struct must have same type as cats struct (SC_SCATT_DA...
int I_init_group_ref(struct Ref *)
initialize Ref structure
int I_SetClassTitle(struct ClassSig *, const char *)
int I_list_subgroup(const char *, const char *, const struct Ref *, FILE *)
Prints maps in a subgroup (fancy version)
FILE * I_fopen_group_file_new(const char *, const char *)
void I_make_signatures_dir(I_SIGFILE_TYPE)
Make signature dir.
void I_iclass_free_statistics(IClass_statistics *)
Free space allocated for statistics attributes.
int I_apply_colormap(unsigned char *, unsigned char *, unsigned, unsigned char *, unsigned char *)
Apply colromap to the raster.
struct ClassData * I_AllocClassData(struct SigSet *, struct ClassSig *, int)
int I_get_control_points(const char *, struct Control_Points *)
read group control points
int I_put_group_ref(const char *, const struct Ref *)
write group REF file
int I_georef_tps(double, double, double *, double *, double *, double *, struct Control_Points *, int)
struct SubSig * I_NewSubSig(struct SigSet *, struct ClassSig *)
FILE * I_fopen_sigset_file_new(const char *)
Create new sigset file.
int I_iclass_analysis(IClass_statistics *, struct Ref *, struct Map_info *, const char *, const char *, const char *)
Calculates statistical values for one class and multiple bands based on training areas.
int I_put_group_title(const char *, const char *)
char ** I_list_subgroups2(const char *, const char *, int *)
Get list of subgroups which a group contatins.
int I_iclass_statistics_get_range_max(IClass_statistics *, int, int *)
Get maximum cell value based on mean and standard deviation for band.
int I_compute_georef_equations_tps(struct Control_Points *, double **, double **, double **, double **)
void I_get_signatures_dir(char *, I_SIGFILE_TYPE)
Get signature directory.
int I_get_group_title(const char *, char *, int)
int I_free_double2(double **)
int I_signatures_remove(I_SIGFILE_TYPE, const char *)
Remove a signature file.
int I_find_subgroup2(const char *, const char *, const char *)
Searches for a subgroup in specified mapset or any mapset if mapset is not set.
int I_find_group_file(const char *, const char *)
Searches for a group file in the current mapset.
int I_get_subgroup(const char *, char *)
int I_write_signatures(FILE *, struct Signature *)
Write signatures to file.
void * I_realloc(void *, size_t)
FILE * I_fopen_subgroup_file_new(const char *, const char *, const char *)
char ** I_list_subgroups(const char *, int *)
Get list of subgroups which a group contatins.
int I_list_group_simple(const struct Ref *, FILE *)
Prints maps in a group (simple version)
FILE * I_fopen_subgroup_file_old(const char *, const char *, const char *)
int I_list_subgroup_simple(const struct Ref *, FILE *)
Prints maps in a subgroup (simple version)
const char * I_find_signature(I_SIGFILE_TYPE, char *, const char *)
Find mapset containing signature file.
int I_signatures_list_by_type(I_SIGFILE_TYPE, const char *, char ***)
Get list of existing signatures by type.
FILE * I_fopen_subgroup_ref_old(const char *, const char *)
int I_put_subgroup_ref(const char *, const char *, const struct Ref *)
write subgroup REF file
void I_iclass_init_statistics(IClass_statistics *, int, const char *, const char *, float)
Initialize statistics.
struct ClassSig * I_NewClassSig(struct SigSet *)
void I_iclass_statistics_get_cat(IClass_statistics *, int *)
Get category (class).
int I_rasterize(double *, int, unsigned char, struct Cell_head *, unsigned char *)
Wrapper for using of iclass perimeter rasterization by scatter plot. Warning: calls Rast_set_window.
int I_new_signature(struct Signature *)
void I_iclass_statistics_get_ncells(IClass_statistics *, int *)
Get number of cells in training areas.
double *** I_alloc_double3(int, int, int)
FILE * I_fopen_subgroup_ref_new(const char *, const char *)
int I_iclass_statistics_get_max(IClass_statistics *, int, int *)
Get maximum value in band.
int I_iclass_statistics_get_sum(IClass_statistics *, int, float *)
Get sum of values in band.
int I_compute_georef_equations(struct Control_Points *, double *, double *, double *, double *, int)
int I_iclass_statistics_get_range_min(IClass_statistics *, int, int *)
Get minimum cell value based on mean and standard deviation for band.
FILE * I_fopen_group_file_old(const char *, const char *)
Open group file for reading.
int I_ReadSigSet(FILE *, struct SigSet *) WARN_UNUSED_RESULT
Read sigset signatures from file.
int I_add_file_to_group_ref(const char *, const char *, struct Ref *)
add file name to Ref structure
double I_stddev(double, double, int)
void I_scd_init_scatt_data(struct scdScattData *, int, int, void *)
Insert scatter plot data.
char ** I_sort_signatures_by_semantic_label(struct Signature *, const struct Ref *)
Reorder struct Signature to match imagery group member order.
const char * I_find_signature2(I_SIGFILE_TYPE, const char *, const char *)
Find mapset containing signature (look but don't touch)
void I_free_signatures_list(int, char ***)
Free memory allocated by I_signatures_list_by_type.
int I_read_one_signature(FILE *, struct Signature *)
Internal function for I_read_signatures.
void I_iclass_statistics_get_color(IClass_statistics *, const char **)
Get category (class) color.
int I_iclass_init_group(const char *, const char *, struct Ref *)
Read files for the specified group subgroup into the Ref structure.
int I_init_signatures(struct Signature *, int)
Initialize struct Signature before use.
int I_iclass_statistics_get_product(IClass_statistics *, int, int, float *)
Get product value.
int I_id_scatt_to_bands(const int, const int, int *, int *)
Compute band ids from scatter plot id.
int I_iclass_init_signatures(struct Signature *, struct Ref *)
Initialize signatures.
int I_SigSetNClasses(struct SigSet *)
int I_iclass_statistics_get_stddev(IClass_statistics *, int, float *)
Get standard deviation of cell category values in band.
void I__list_group_name_fit(char *, const char *, const char *)
Formats map name to fit in a 80 column layout.
FILE * I_fopen_sigset_file_old(const char *)
Open existing sigset signature file.
int I_merge_arrays(unsigned char *, unsigned char *, unsigned, unsigned, double)
Merge arrays according to opacity. Every pixel in array must be represented by 4 values (RGBA).
int I_free_double3(double ***)
void I_sc_free_cats(struct scCats *)
Free data of struct scCats, the structure itself remains allocated.
FILE * I_fopen_signature_file_old(const char *)
Open existing signature file.
FILE * I_fopen_subgroup_file_append(const char *, const char *, const char *)
int I_get_group_ref(const char *, struct Ref *)
read group REF file
void I_iclass_statistics_get_name(IClass_statistics *, const char **)
Get category (class) name.
void I_sc_init_cats(struct scCats *, int, int)
Initialize structure for storing scatter plots data.
int I_free_group_ref(struct Ref *)
free Ref structure
void I_iclass_statistics_set_nstd(IClass_statistics *, float)
Set the multiplier of standard deviation.
int I_find_subgroup_file(const char *, const char *, const char *)
Searches for a subgroup file in the current mapset.
FILE * I_fopen_group_ref_new(const char *)
int I_find_subgroup_file2(const char *, const char *, const char *, const char *)
Searches for a subgroup file in the specified mapset.
int I_put_target(const char *, const char *, const char *)
write target information
int I_get_subgroup_ref(const char *, const char *, struct Ref *)
read subgroup REF file
int I_find_group(const char *)
does group exist?
int I_SetSigTitle(struct SigSet *, const char *)
int I_bands_to_id_scatt(const int, const int, const int, int *)
Compute scatter plot id from band ids.
int I_InitSigSet(struct SigSet *, int)
Initialize struct SigSet before use.
const char * I_GetSigTitle(const struct SigSet *)
int I_read_signatures(FILE *, struct Signature *)
Read signatures from file.
int I_signatures_rename(I_SIGFILE_TYPE, const char *, const char *)
Rename a signature file.
int I_get_target(const char *, char *, char *)
read target information
int I_insert_patch_to_cat_rast(const char *, struct Cell_head *, const char *)
Insert raster map patch into pgm file.
int I_find_group2(const char *, const char *)
Does the group exists?
void I_iclass_add_signature(struct Signature *, IClass_statistics *)
Add one signature.
FILE * I_fopen_signature_file_new(const char *)
Create signature file.
int I_init_ref_color_nums(struct Ref *)
void I_iclass_create_raster(IClass_statistics *, struct Ref *, const char *)
Create raster map based on statistics.
int I_put_control_points(const char *, const struct Control_Points *)
write group control points
int I_create_cat_rast(struct Cell_head *, const char *)
Create category raster conditions file. The file is used for holding selected areas from mapwindow....
void I_iclass_statistics_get_nbands(IClass_statistics *, int *)
Get number of bands.
int I_compute_scatts(struct Cell_head *, struct scCats *, const char **, const char **, int, struct scCats *, const char **)
Compute scatter plots data.
FILE * I_fopen_group_file_append(const char *, const char *)
int I_georef(double, double, double *, double *, double *, double *, int)
int I_iclass_write_signatures(struct Signature *, const char *)
Write signtures to signature file.
int I_new_control_point(struct Control_Points *, double, double, double, double, int)
add new control point
int I_find_subgroup(const char *, const char *)
Searches for a subgroup in the current mapset.
int I_sc_add_cat(struct scCats *)
Add category.
int I_get_to_eol(char *, int, FILE *)
FILE * I_fopen_group_ref_old(const char *)
FILE * I_fopen_group_file_old2(const char *, const char *, const char *)
Open group file for reading.
int I_free_signatures(struct Signature *)
Free memory allocated for struct Signature.
FILE * I_fopen_group_ref_old2(const char *, const char *)
int I_iclass_statistics_get_min(IClass_statistics *, int, int *)
Get minimum value in band.
int I_WriteSigSet(FILE *, const struct SigSet *)
int I_put_group(const char *)
double I_variance(double, double, int)
int I_iclass_statistics_get_histo(IClass_statistics *, int, int, int *)
Get histogram value in band.
FILE * I_fopen_subgroup_file_old2(const char *, const char *, const char *, const char *)
int I_list_group(const char *, const struct Ref *, FILE *)
Prints maps in a group (fancy version)
int I_iclass_statistics_get_mean(IClass_statistics *, int, float *)
Get mean of cell category values in band.
int I_put_subgroup(const char *, const char *)
void I_iclass_statistics_get_nstd(IClass_statistics *, float *)
Get the multiplier of standard deviation.
char * I_location_info(const char *)
int I_transfer_group_ref_file(const struct Ref *, int, struct Ref *)
copy Ref lists
double ** I_alloc_double2(int, int)
int ** I_alloc_int2(int, int)
const char * I_GetClassTitle(const struct ClassSig *)
int I_get_group_ref2(const char *, const char *, struct Ref *)
read group REF file
int I_signatures_copy(I_SIGFILE_TYPE, const char *, const char *, const char *)
Copy a signature file.
#define WARN_UNUSED_RESULT
Generate warning if function return value is unused.
2D/3D raster map header (used also for region)