DSPRelated.com
Forums

[Ask] Image Interpolation in C6713

Started by Fariza Dion Prasetyo November 5, 2007
Hi all,
I need to implement RGB interpolation from a raw bayer image from CMOS camera module.
It is more comfortable for me to store the raw data into a multidimensional-array, like image[x][y] with x and y are the image pixel coordinates, as it is applicable with C++ or C#. But is it also the right solution in dsp platform? Because i am thinking of limited memory allocation in dsp whether it could store for example 5 mega pixels image. i am using C6713 DSK with DSK-eye daughtercard.

Thank you,

Fariza Dion Prasetyo
Ferdinand Bolstraat 58,
7545CH Enschede, The Netherlands
p : +31 (0) 619804039
e : f...@yahoo.com
w : http://farizadp.hartonoda.net

__________________________________________________
Hello Dion,

On 11/6/07, Fariza Dion Prasetyo wrote:
> Sorry, i think i didn't explain clearly what my problem is,
> i would like to declare a multidimensional array to represent a bayer raw image data.
> what i did is :
>
> #pragma DATA_SECTION(PicPixels,".ext_sdram");
> unsigned char PicPixels[1280][960];
>
> after compiling i got error :
> >> error: can't allocate .ext_sdram (sz: 0012c600 page: 0) in SDRAM (avail:
> 000c1cec)

It looks like that you ran out of memory. What you have is a math problem.

> >> error: errors in input - ./Debug/dsk6713_webview.out not built
>
> i defined the heap size for .ext_sdram to F00000h

Your heap is defined as 15,728,640. How did you determine the size??
How much memory is on your board?? 16M?? you will need to know this.
You will need to look at your memory map and determine the how much
SDRAM is being used by your code. Your 'heap size' can be no larger
than 'SDRAM_size' - 'SDRAM_memory_used_by_code_including_stack'.

mikedunn
>
> i notice that this error is caused by limited memory.
> please if anyone could help me to solve this problem
>
> Thank you very much
>
> -dion-
>
> ----- Forwarded Message ----
> From: Fariza Dion Prasetyo
> To: c...
> Sent: Monday, November 5, 2007 5:27:44 PM
> Subject: [c6x] [Ask] Image Interpolation in C6713
>
> Hi all,
> I need to implement RGB interpolation from a raw bayer image from CMOS camera module.
> It is more comfortable for me to store the raw data into a multidimensional- array, like image[x][y] with x and y are the image pixel coordinates, as it is applicable with C++ or C#. But is it also the right solution in dsp platform? Because i am thinking of limited memory allocation in dsp whether it could store for example 5 mega pixels image. i am using C6713 DSK with DSK-eye daughtercard.
>
> Thank you,
>
> Fariza Dion Prasetyo
> Ferdinand Bolstraat 58,
> 7545CH Enschede, The Netherlands
> p : +31 (0) 619804039
> e : farizadp@yahoo. com
> w : http://farizadp. hartonoda. net
>
> ____________ _________ _________ _________ _________ __
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php