Public Methods | |
void | Acquire (char *path_in, char *path_in_class, char *path_out, int dimx_tmp, int dimy_tmp, int ofx_tmp, int ofy_tmp, int Dy_tmp, int subx_tmp, int suby_tmp) |
Reading input files output file names and allocating memory. | |
void | Create () |
Calculating and writing onthe disk the Gaussian Mixture parameters attached to the classification. | |
Private Methods | |
void | Acquire_path (char *path_in, char *path_in_class, char *path_out) |
acquire the input data paths. | |
void | Acquire_parameters_allocateImage (int dimx, int dimy, int ofx, int ofy, int Dy, int subx, int suby) |
Allocation of memory for storing the data and reading theinput data. | |
void | Allocate_OutMeanCov () |
Allocation of memory for the classification attribute variable. | |
void | Calculate () |
Calculation of the classification attribute variable. | |
void | Write_OutMeanCov () |
Writing the attribute file on the standard output. | |
Private Attributes | |
Image< PIX > | data |
image data. | |
Image< PIX > | CurrentIm |
as we are dealing with a single multidimensionnal image, this is the same attribute as the attribute "data" ( thus one of these two has to be suppress). | |
Image< unsigned char > | classfile |
image classfile. | |
Image< float > | OutMeanCov |
image where the Gaussian mixture attributes are stored. | |
char * | PathOutPut |
output paths. | |
char *** | PathInPut |
input image path (a simple pointer would be sufficiengt here!!). | |
char *** | PathInPutClass |
input classfile path (a simple pointer would be sufficient here!!). | |
unsigned long int * | effectifSave |
array storing the population of each class. |
The mean vectors, the covariances matrices and the class weights are calculated according to the input classfile and the multidimensionnal data.
Definition at line 38 of file MakeClusterAtt.cpp.