#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "volume.h"
#include <curses.h>
#include "M_coocur.h"
Go to the source code of this file.
M_coocur | ||||||||||
operateur : \ Type entree : imau1 \ Type sortie : imau1
| ||||||||||
GlcmAttribute | attributes [total_attributes] | |||||||||
void | updateContrast (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeContrast (GlcmData *glcmData) | |||||||||
void | updateCorrelation (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeCorrelation (GlcmData *glcmData) | |||||||||
void | updateDirectivity (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeDirectivity (GlcmData *glcmData) | |||||||||
void | updateEntropy (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeEntropy (GlcmData *glcmData) | |||||||||
void | updateHomogeneity (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeHomogeneity (GlcmData *glcmData) | |||||||||
void | updateLocalHomogeneity (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeLocalHomogeneity (GlcmData *glcmData) | |||||||||
void | updateSumAverage (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeSumAverage (GlcmData *glcmData) | |||||||||
void | updateSumEntropy (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeSumEntropy (GlcmData *glcmData) | |||||||||
void | updateUniformity (int row, int col, int oldValue, int newValue, GlcmData *glcmData) | |||||||||
double | finalizeUniformity (GlcmData *glcmData) | |||||||||
void | initGlcmData (GlcmData *glcmData) | |||||||||
void | valueUpdateGlcmData (int row, int col, int oldValue, int newValue, GlcmData *glcmData, Mcoocur_t *des) | |||||||||
void | pixelUpdateGlcmData (int x, int y, int z, int increment, GlcmData *glcmData, ima3Du1 *im0, Mcoocur_t *des) | |||||||||
Functions | ||||||||||
median3d_init | ||||||||||
XX = u1 | etc : initialisation de l'operateur M_coocur.\ allocation image resultat, calcul des coeff du masque
| ||||||||||
int | Mcoocur_init (Mcoocur_t *des, ima3Du1 *im0, ima3Dd *imres[]) | |||||||||
lecture des parametres de l'operateur M_coocur. \
| ||||||||||
param * | Mcoocur_lect (Mcoocur_t *des, param *ptp, char *debq) | |||||||||
Mcoocur_calc | ||||||||||
XX = u1 | etc : calcul de l'operateur M_coocur.\ Calcul du resultat de l'operateur M_coocur\
| ||||||||||
int | Mcoocur_calc (Mcoocur_t *des, ima3Du1 *im0, ima3Dd *imres[]) |
double finalizeContrast | ( | GlcmData * | glcmData | ) |
double finalizeCorrelation | ( | GlcmData * | glcmData | ) |
Definition at line 75 of file lM_coocur.c.
double finalizeDirectivity | ( | GlcmData * | glcmData | ) |
Definition at line 85 of file lM_coocur.c.
References GlcmData::directivity, and GlcmData::nonZeros.
double finalizeEntropy | ( | GlcmData * | glcmData | ) |
Definition at line 102 of file lM_coocur.c.
References GlcmData::m_log_m, GlcmData::nonZeros, and GlcmData::sum.
double finalizeHomogeneity | ( | GlcmData * | glcmData | ) |
Definition at line 112 of file lM_coocur.c.
References GlcmData::homogeneity, and GlcmData::nonZeros.
double finalizeLocalHomogeneity | ( | GlcmData * | glcmData | ) |
Definition at line 122 of file lM_coocur.c.
References GlcmData::localHomogeneity, and GlcmData::nonZeros.
double finalizeSumAverage | ( | GlcmData * | glcmData | ) |
Definition at line 132 of file lM_coocur.c.
References GlcmData::nonZeros, and GlcmData::sumAverage.
double finalizeSumEntropy | ( | GlcmData * | glcmData | ) |
Definition at line 142 of file lM_coocur.c.
References GlcmData::anti_diagonals_sums, and GlcmData::nonZeros.
double finalizeUniformity | ( | GlcmData * | glcmData | ) |
Definition at line 158 of file lM_coocur.c.
References GlcmData::nonZeros, and GlcmData::uniformity.
void initGlcmData | ( | GlcmData * | glcmData | ) |
Definition at line 176 of file lM_coocur.c.
References GlcmData::anti_diagonals_sums, GlcmData::contrast, GlcmData::directivity, GlcmData::homogeneity, GlcmData::localHomogeneity, GlcmData::m_log_m, GlcmData::Matcoocur, GlcmData::nonZeros, GlcmData::sum, GlcmData::sumAverage, and GlcmData::uniformity.
Referenced by Mcoocur_calc().
param* Mcoocur_lect | ( | Mcoocur_t * | des, | |
param * | ptp, | |||
char * | debq | |||
) |
void pixelUpdateGlcmData | ( | int | x, | |
int | y, | |||
int | z, | |||
int | increment, | |||
GlcmData * | glcmData, | |||
ima3Du1 * | im0, | |||
Mcoocur_t * | des | |||
) |
Definition at line 208 of file lM_coocur.c.
References ima3Du1::data, Mcoocur_t::dx, Mcoocur_t::dy, Mcoocur_t::dz, GlcmData::Matcoocur, and valueUpdateGlcmData().
Referenced by Mcoocur_calc().
void updateContrast | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateCorrelation | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
Definition at line 70 of file lM_coocur.c.
void updateDirectivity | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateEntropy | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateHomogeneity | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateLocalHomogeneity | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateSumAverage | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateSumEntropy | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void updateUniformity | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData | |||
) |
void valueUpdateGlcmData | ( | int | row, | |
int | col, | |||
int | oldValue, | |||
int | newValue, | |||
GlcmData * | glcmData, | |||
Mcoocur_t * | des | |||
) |
Definition at line 195 of file lM_coocur.c.
References Mcoocur_t::do_output, GlcmData::nonZeros, total_attributes, and GlcmAttribute::update.
Referenced by Mcoocur_calc(), and pixelUpdateGlcmData().
GlcmAttribute attributes[total_attributes] |
Initial value:
{ { .name = "Constrast", .short_name = "Con", .update = updateContrast, .finalize = finalizeContrast}, { .name = "Correlation", .short_name = "Cor", .update = updateCorrelation, .finalize = finalizeCorrelation}, { .name = "Directivity", .short_name = "Dir", .update = updateDirectivity, .finalize = finalizeDirectivity}, { .name = "Entropy", .short_name = "Ent", .update = updateEntropy, .finalize = finalizeEntropy}, { .name = "Homogeneity", .short_name = "Hom", .update = updateHomogeneity, .finalize = finalizeHomogeneity}, { .name = "Local Homogeneity", .short_name = "LHo", .update = updateLocalHomogeneity, .finalize = finalizeLocalHomogeneity}, { .name = "Sum average", .short_name = "SAv", .update = updateSumAverage, .finalize = finalizeSumAverage}, { .name = "Sum entropy", .short_name = "SEn", .update = updateSumEntropy, .finalize = finalizeSumEntropy}, { .name = "Uniformity", .short_name = "Uni", .update = updateUniformity, .finalize = finalizeUniformity}, }
Definition at line 163 of file lM_coocur.c.