Re: [hugin-ptx] Mac Build

2016-05-02 Thread Niklas Mischkulnig
Hi Thomas, 

no change: 

iccProfile size: 2672
CorrectImage
inputICC: farbverdreht
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
iccProfile size: 2672
CorrectImage
inputICC: farbverdreht
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
InputICC size: 2672
TexManager
inputICC:
monitorProfile:
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192


>From time to time this happens:
iccProfile size: 2672
CorrectImage
inputICC: farbverdreht
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
iccProfile size: 2672
CorrectImage
inputICC: farbverdreht
outputICC: sRGB built-in
TYPE_RGB8: 262169
INTENT_PERCEPTUAL: 0
cmsFLAGS_BLACKPOINTCOMPENSATION: 8192
InputICC size: 2672
TexManager
atos[46128]: [fatal] 'pid_for_task' failed: (os/kern) failure (5)
then Hugin hangs/doesn't respond.


Niklas



Am Montag, 2. Mai 2016 18:55:29 UTC+2 schrieb T. Modes:
>
>
> Hi Niklas,
>
> Am Sonntag, 1. Mai 2016 20:13:30 UTC+2 schrieb Niklas Mischkulnig:
>>
>>
>> Here you go:
>>
>> iccProfile size: 2672
>>
>
> new try. I changed the creating of the input icc profile.
> All debug message are still in.
>
> 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 hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/5b33c6be-524a-4e12-8628-09a3ecae64bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [hugin-ptx] Mac Build

2016-05-02 Thread T. Modes

Hi Niklas,

Am Sonntag, 1. Mai 2016 20:13:30 UTC+2 schrieb Niklas Mischkulnig:
>
>
> Here you go:
>
> iccProfile size: 2672
>

new try. I changed the creating of the input icc profile.
All debug message are still in.

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 hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/c0a32af4-4266-4895-a940-dfd88a663a7c%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 
 #include "hugin_utils/utils.h"
 #endif
+#include "hugin_utils/utils.h"
 
 namespace HuginBase
 {
@@ -129,6 +130,7 @@
 if (!iccProfile.empty())
 {
 inputICC = cmsOpenProfileFromMem(iccProfile.data(), iccProfile.size());
+std::cout << "iccProfile size: " << iccProfile.size() << std::endl;
 };
 // check type of input profile
 if (inputICC != NULL)
@@ -145,6 +147,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
@@ -867,7 +867,9 @@
 cmsHPROFILE inputICC = NULL;
 if (!entry->iccProfile->empty())
 {
-inputICC = cmsOpenProfileFromMem(entry->iccProfile->data(), entry->iccProfile->size());
+const vigra::ImageImportInfo::ICCProfile iccProfile(*(entry->iccProfile));
+inputICC = cmsOpenProfileFromMem(iccProfile.data(), iccProfile.size());
+std::cout << "InputICC size: " << iccProfile.size() << std::endl;
 };
 cmsHTRANSFORM transform = NULL;
 // do color correction only if input image has icc profile or if we found a monitor profile
@@ -880,17 +882,26 @@
 {
 cmsCloseProfile(inputICC);
 inputICC = NULL;
+std::cout << "No RGB profile" << std::endl;
 };
 };
 // if there is no icc profile in file fall back to sRGB
 if (inputICC == NULL)
 {
 inputICC = cmsCreate_sRGBProfile();
+std::cout << "Created generic profile" << std::endl;
 };
+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)


Re: [hugin-ptx] Mac Build

2016-05-02 Thread Donald Johnston
Yes, that was the problem. I “usually” keep all that in a Hugin subdirectory 
under Applications but there was one in the Applications folder itself.  So it 
wasn’t deleted when I cleaned the old stuff out!

Thanks.


> On May 1, 2016, at 11:18 PM, Niklas Mischkulnig  wrote:
> 
> Do you have two instances of PTBatcherGui.app on your computer? Hugin might 
> try to start the one from the build before.
> 
> Am 02.05.2016 05:31 schrieb "Donald Johnston"  >:
> When I try to stitch a pano from Hugin I get the following error message:
> PTBatcherGUI cannot be opened because of a problem.
> 
> The error shown in the Terminal is:
> PTBatcherGui check returned  value 
> /Applications/PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI
> 
> dyld: Library not loaded: @executable_path/../Frameworks/libpano13.3.dylib
>   Referenced from: /Applications/PTBatcherGUI.app/Contents/MacOS/PTBatcherGUI
>   Reason: image not found
> 
> However if I start PTBatcherGUI and load the pto file in it does the 
> stitching properly.
> 
> 
> 
> -- 
> A list of frequently asked questions is available at: 
> http://wiki.panotools.org/Hugin_FAQ 
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "hugin and other free panoramic software" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/hugin-ptx/Rz-LY9isDIs/unsubscribe 
> .
> To unsubscribe from this group and all its topics, send an email to 
> hugin-ptx+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/hugin-ptx/124EE48F-C33C-4457-BBB7-6A040118A71A%40accesscomm.ca
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 
> -- 
> 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 hugin-ptx+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/hugin-ptx/CACd%3DvwAu9ck9fzYu7KsToi_%2BXH%2BWTR5pymNfW%3D1NVTZEpqstDQ%40mail.gmail.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/A3E9E278-5EA5-4D98-AF2C-5FE8A7A8%40accesscomm.ca.
For more options, visit https://groups.google.com/d/optout.