Hi Niklas,
Am Sonntag, 1. Mai 2016 11:58:35 UTC+2 schrieb Niklas Mischkulnig:
>
> still crashes.
>
That's strange.
Could you please apply the attached patch. It will print some more
information to stdout like:
CorrectImage
inputICC: farbverdreht
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
TexManager
inputICC: farbverdreht
monitorProfile:
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
It should (hopefully) not crash, but will not take the icc profile in the
fast preview window into account.
And we are testing all parameters which goes to cmsCreateTransform, which
is the function I assume is crashing.
Thomas
--
A list of frequently asked questions is available at:
http://wiki.panotools.org/Hugin_FAQ
---
You received this message because you are subscribed to the Google Groups
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/hugin-ptx/f0d72d83-184c-44e7-bb47-52be7498eecf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/hugin1/base_wx/wxcms.cpp b/src/hugin1/base_wx/wxcms.cpp
--- a/src/hugin1/base_wx/wxcms.cpp
+++ b/src/hugin1/base_wx/wxcms.cpp
@@ -28,6 +28,7 @@
#include <X11/Xlib.h>
#include "hugin_utils/utils.h"
#endif
+#include "hugin_utils/utils.h"
namespace HuginBase
{
@@ -145,6 +146,13 @@
inputICC = cmsCreate_sRGBProfile();
};
// now build transform
+ std::cout << "CorrectImage" << std::endl
+ << "inputICC: " << hugin_utils::GetICCDesc(inputICC) << std::endl
+ << "outputICC: " << hugin_utils::GetICCDesc(monitorProfile) << std::endl
+ << "TYPE_RGB8: " << TYPE_RGB_8 << std::endl
+ << "INTENT_PERCEPTUAL: " << INTENT_PERCEPTUAL << std::endl
+ << "cmsFLAGS_BLACKPOINTCOMPENSATION: " << cmsFLAGS_BLACKPOINTCOMPENSATION << std::endl;
+
cmsHTRANSFORM transform = cmsCreateTransform(inputICC, TYPE_RGB_8,
monitorProfile, TYPE_RGB_8,
INTENT_PERCEPTUAL, cmsFLAGS_BLACKPOINTCOMPENSATION);
diff --git a/src/hugin1/hugin/TextureManager.cpp b/src/hugin1/hugin/TextureManager.cpp
--- a/src/hugin1/hugin/TextureManager.cpp
+++ b/src/hugin1/hugin/TextureManager.cpp
@@ -887,10 +887,17 @@
{
inputICC = cmsCreate_sRGBProfile();
};
+ std::cout << "TexManager" << std::endl
+ << "inputICC: " << hugin_utils::GetICCDesc(inputICC) << std::endl
+ << "monitorProfile: " << huginApp::Get()->GetMonitorProfileName().c_str() << std::endl
+ << "outputICC: " << hugin_utils::GetICCDesc(huginApp::Get()->GetMonitorProfile()) << std::endl
+ << "TYPE_RGB8: " << TYPE_RGB_8 << std::endl
+ << "INTENT_PERCEPTUAL: " << INTENT_PERCEPTUAL << std::endl
+ << "cmsFLAGS_BLACKPOINTCOMPENSATION: " << cmsFLAGS_BLACKPOINTCOMPENSATION << std::endl;
// now build transform
- transform = cmsCreateTransform(inputICC, TYPE_RGB_8,
+ /* transform = cmsCreateTransform(inputICC, TYPE_RGB_8,
huginApp::Get()->GetMonitorProfile(), TYPE_RGB_8,
- INTENT_PERCEPTUAL, cmsFLAGS_BLACKPOINTCOMPENSATION);
+ INTENT_PERCEPTUAL, cmsFLAGS_BLACKPOINTCOMPENSATION);*/
};
// now perform photometric correction
if (photometric_correct)