Why thumbnail-creation is so slow, Issue 1967

This commit is contained in:
Ingo
2013-09-08 18:44:09 +02:00
parent a2252ee694
commit 0a6948cabe
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ public:
clip = flags;
}
LUT<T> & operator=(const LUT<T> &rhs) {
LUT<T> & operator=(LUT<T> &rhs) {
if (this != &rhs) {
if (rhs.size>this->size)
{

View File

@@ -746,7 +746,7 @@ IImage8* Thumbnail::processImage (const procparams::ProcParams& params, int rhei
for (int i=0; i<fh; i++)
for (int j=0; j<fw; j++){
hist16[CLIP((int)((labView->L[i][j])))]++;
hist16C=CLIP((int)sqrt(labView->a[i][j]*labView->a[i][j] + labView->b[i][j]*labView->b[i][j]));
hist16C[CLIP((int)sqrt(labView->a[i][j]*labView->a[i][j] + labView->b[i][j]*labView->b[i][j]))]++;
}
// luminance processing
// ipf.EPDToneMap(labView,0,6);