Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Learner991
Beginner
41 Views

Migrating from UIC 6.1 to UIC 7.0

I have recently switched my development platform from XP SP3, VS2005, IPP 6.1 to Win7, VS2010, IPP 7.0. I was hoping my old UIC code would just work. But, of course, llife is not so simple...

I'm getting a divide by 0 error when I attempt the following line:
[bash]if(!IsOk(image_out.Buffer().ReAlloc(dataOrder1, geometry)))[/bash]
It used to work, and the paramters I was passing in seemed fine. I was hoping that someone might be able to help:

1) How do I compile a debug version of UIC to step into this a bit further?
2) any suggestions of how to explore this?

Thanks
0 Kudos
2 Replies
Learner991
Beginner
41 Views

After assembling a VS2010 solution and dealing with all the compilation issues, I found the problem. It appears that some genius upgraded the UIC libraries without doing any testing. The problem is in the ImageSamplingGeometry::Period() function. The minsample should not be initialized to 0, but rather to some large number. I now have it working...

Sergey_K_Intel
Employee
41 Views

Thank you for notifying us. It definitely must be
[bash]    unsigned int minSampleW = IPP_MAX_32U;    
    unsigned int minSampleH = IPP_MAX_32U;[/bash]
We fixed that a couple monthes ago, but this fix didn't get to 7.0.5 samples update.
Regards,
Sergey
Reply