Windows Phone 8 error

asked 2015-02-06 04:02:01 -0600

matdennoigi gravatar image

I am writing a Glare Removal with OpenCV on WP8 (I used OpenCV in this Github Repo). I tried to port source code of this post to OpenCV like this:

//Binarize input image
cv::Mat grayscale;
cv::cvtColor(input, grayscale, CV_RGB2GRAY);
cv::Mat saturated;
cv::threshold(grayscale, saturated, threshold * 255, 255, CV_THRESH_BINARY);

int radius = 20;
cv::Mat diskmatrix = cv::getStructuringElement(cv::MORPH_ELLIPSE, cv::Size(2 * radius + 1, 2 * radius + 1),     cv::Point(radius, radius));

//Dilation
cv::Mat dilated;
cv::dilate(saturated, dilated, diskmatrix);

...

But when I ran it, app was be hang at dilation block and can't go to next section. It's not crash but throw an message on console:

'TaskHost.exe' (Win32): Loaded    '\Device\HarddiskVolume42\Windows\System32\System.Runtime.WindowsRuntime.ni.dll'. 
'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume42\Windows\System32\System.Runtime.ni.dll'. 
'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume42\Windows\System32\BCRYPT.DLL'. Cannot find or open the PDB file.
First-chance exception at 0x770A35D7 in TaskHost.exe: Microsoft C++ exception: HRException at memory location 0x00EFDE08.
First-chance exception at 0x770A35D7 in TaskHost.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
First-chance exception at 0x770A35D7 in TaskHost.exe: Microsoft C++ exception: HRException at memory location 0x00EFDE08.
'TaskHost.exe' (Win32): Loaded  '\Device\HarddiskVolume42\Windows\System32\RSAENH.DLL'. Cannot find or open the PDB file.
'TaskHost.exe' (Win32): Loaded  '\Device\HarddiskVolume42\Windows\System32\ProcThreadExtHost.dll'. Cannot find or open the PDB file.
'TaskHost.exe' (Win32): Loaded '\Device\HarddiskVolume42\Windows\System32\System.Runtime.Serialization.ni.dll'. 
The thread 0x1098 has exited with code 0 (0x0).
'TaskHost.exe' (Win32): Unloaded   '\Device\HarddiskVolume42\Windows\System32\qcvidum8960.dll'
'TaskHost.exe' (Win32): Unloaded  '\Device\HarddiskVolume42\Windows\System32\qcdx9um8960.dll'
'TaskHost.exe' (Win32): Unloaded  '\Device\HarddiskVolume42\Windows\System32\D3D10LEVEL9.DLL'
The program '[4372] TaskHost.exe' has exited with code 0 (0x0).

I got something like that when I used "subtract" function. How can I fix it???

edit retag flag offensive close merge delete