From 926647e1a71a47e2f393a722f401e72c9f08ac83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Sat, 17 Dec 2022 09:47:38 +0100 Subject: [PATCH] Don't do unecessary color profile conversion --- loadrunable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadrunable.cpp b/loadrunable.cpp index 2fdeebd..def3e58 100644 --- a/loadrunable.cpp +++ b/loadrunable.cpp @@ -297,7 +297,7 @@ bool loadPCLImage(pcl::XISFReader &xisf, RawImage **image) #ifdef COLOR_MANAGMENT pcl::ICCProfile iccProfile = xisf.ReadICCProfile(); - if(iccProfile.IsProfile()) + if(iccProfile.IsProfile() && iccProfile != sRgbIccProfile) { pcl::ICCProfileTransformation iccTran; iccTran.DisableParallelProcessing();