Don't do unecessary color profile conversion

This commit is contained in:
2022-12-17 09:47:38 +01:00
parent 71fc1f2bd1
commit 926647e1a7
+1 -1
View File
@@ -297,7 +297,7 @@ bool loadPCLImage(pcl::XISFReader &xisf, RawImage **image)
#ifdef COLOR_MANAGMENT #ifdef COLOR_MANAGMENT
pcl::ICCProfile iccProfile = xisf.ReadICCProfile(); pcl::ICCProfile iccProfile = xisf.ReadICCProfile();
if(iccProfile.IsProfile()) if(iccProfile.IsProfile() && iccProfile != sRgbIccProfile)
{ {
pcl::ICCProfileTransformation iccTran; pcl::ICCProfileTransformation iccTran;
iccTran.DisableParallelProcessing(); iccTran.DisableParallelProcessing();