33 this->setValid(
false);
37 Pixel(vector<int> nChannels,
int aChannels){
45 amount_channels = aChannels;
70 amount_channels = aChannels;
78 int* array = (
int*)malloc(
sizeof(
int)*(2+amount_channels));
85 array[1]=amount_channels;
86 for (
int i = 0; i < amount_channels; i++)
88 array[2+i]=channels[i];
98 return amount_channels;
107 for(
int x=0;x<amount_channels;x++){
108 local_max+=channels[x];
110 return (
int)(local_max/amount_channels);
118 return size*amount_channels;
121 void setSize(
double nsize){
void setChannels(vector< int > nChannels)
Clase que representa un tipo de dato que serĂ¡ paquetizado.
Pixel(vector< int > nChannels, int aChannels)
vector< int > getChannels()
void setAmountChannels(int aChannels)
Clase que representa un Pixel de una imagen.