Skip to content
Snippets Groups Projects
Commit 72e23af2 authored by ariotte's avatar ariotte
Browse files

fixed LloydMax quantization algorithm

parent ec2bf90f
No related branches found
No related tags found
No related merge requests found
......@@ -226,9 +226,8 @@ Quantification Quantification::lloydMaxQuant(int size, const Image* image, unsig
diff[i] = abs(diff[i] - quant._threshold[i]);
}
//calcul de la condition d'arret (moyenne des écarts < 1 )
for(int i = 0; i<size-1 ; i++){
diff_mean += diff[i];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment