issues with saveimage..

[Old posts from the commercial version of ArrayFire] Discussion of ArrayFire using CUDA or OpenCL.

Moderator: pavanky

issues with saveimage..

Postby GBenito » Wed Dec 04, 2013 6:52 pm

Hi,

I'm trying to save a 2D array as image (grayscale so it has only one mxn matrix) but when i use the command:

af::saveimage("~/Avg.jpg", Avg);

and run the program, it throws this error:

Debug Error!

Program:
C:\xxxxxxxxxxxxx.exe

R6010
- abort() has been called


I know it's due to saveimage, as i comment this instruction and the program runs normally.

Avg is an f32 array

I'll add that i'm runing this on Visual Studio 2010 SP1 on Windows 7 64bit....

Is there any other practical way to save Avg (such as txt or so) as I don't really need it to be an image, just want the elements for post processing....
GBenito
 
Posts: 32
Joined: Sun Nov 10, 2013 3:58 pm

Re: issues with saveimage..

Postby shehzan » Wed Dec 04, 2013 7:25 pm

Hi

Can you replace ~/Avg with the full path or just the Avg (don't use ~/).
----
Shehzan
Developer
AccelerEyes
User avatar
shehzan
 
Posts: 121
Joined: Tue Feb 12, 2013 7:20 pm

Re: issues with saveimage..

Postby GBenito » Sat Dec 07, 2013 4:17 pm

Hi,

That was just the case! Thanks for your help!
GBenito
 
Posts: 32
Joined: Sun Nov 10, 2013 3:58 pm


Return to [archive-commercial] Programming & Development with ArrayFire

cron