Remove unused Image16::tofloat()

This commit is contained in:
heckflosse
2018-11-27 20:06:09 +01:00
parent d06e26356b
commit 7f1b14c50a
2 changed files with 0 additions and 15 deletions

View File

@@ -310,20 +310,6 @@ Image8* Image16::to8() const
return img8;
}
Imagefloat* Image16::tofloat() const
{
Imagefloat* imgfloat = new Imagefloat(width, height);
for (int h = 0; h < height; ++h) {
for (int w = 0; w < width; ++w) {
imgfloat->r(h, w) = r(h, w);
imgfloat->g(h, w) = g(h, w);
imgfloat->b(h, w) = b(h, w);
}
}
return imgfloat;
}
// Parallelized transformation; create transform with cmsFLAGS_NOCACHE!
void Image16::ExecCMSTransform(cmsHTRANSFORM hTransform)
{

View File

@@ -43,7 +43,6 @@ public:
Image16* copy() const;
Image8* to8() const;
Imagefloat* tofloat() const;
void getStdImage(const ColorTemp &ctemp, int tran, Imagefloat* image, PreviewProps pp) const override;