Sign in

username:

password:



Not a member?

Search c6x



Search tips

Subscribe to c6x



c6x by Keywords

AD535 | BIOS | Booting | Bootloader | C621 | C6211 | C6415 | C671 | C6711 | C6711DSK | C6713 | CCS | Chassaing | COFF | DAT | DM64 | DM642 | DMA | DSK671 | DSK6711 | EDM | EDMA | EMIF | Emulator | EVM | EVM620 | FFT | FIR | GPIO | Halting | HPI | HWI | IDK | JTAG | LDB | LDH | LDW | Linker | LMS | LOG_printf | Matlab | McBSP | MEM_alloc | MIPS | PCI | PCM3003 | Pipeline | Profiling | QDM | Reset | ROM | RTDX | Sampling | SDRAM | Stack | TEB | THS1206 | TMS320C621 | TMS320C6416 | TMS320C6711 | TMS320C6713 | UART | Vector Table | XBUS | XDS560

Sponsor

Industry's highest performing at the lowest power DSPs now as low as $5.00*
Start development today!
*volume pricing for 10ku

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C6x | help on TMS320C6711 DSP Imaging Developer’s Kit (IDK)

Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).

  

Post a new Thread

help on TMS320C6711 DSP Imaging Developer’s Kit (IDK) - jayaroop g - Dec 5 23:06:00 2002

Hello,
We implemented a image segementation algorithm
using TMS320C6711 DSP Imaging DeveloperÂ’s Kit (IDK) on
real time video.
The problem is: due to the complexity
(computations involved) of the algorithm, there is a
delay in the video,i.e., i am missing some frames.
I wanted to know how many frames i am missing. Can
anyone suggest me how to caluculate the number of
frames being missed.
Secondly, i am using some math functions like
sin and cos in my code as follows:

for(row=0; row<240; row++)
for(col=0; col<320; col++)
if (sobel[row][col] > 200)
for(k=0; k<360; k+=20)
{
arg= (3.142*k)/(180.0);
x = (int)roundf(row + R*cos(arg));
y = (int)roundf(col + R*sin(arg));
if ((x>=0) && (x<240))
if ((y>=0) && (y<320))
circle_acc[x][y] +=1;
}

it is taking time to do the above computation which is
one of the reasons for losing the frames, may be
because i am using cos and sin functions. Can anyone
suggest me how i can optimize it or is there any way
to perform cos and sin functions using assembly
coding.

Thank you,
Jay =====
Gullapalli Jayaroop (SHAPE of VICTORY)
Mailing Address
700, Woodland Avenue, A308
Lexington,
kentucky-40508,
USA.
Home Phone: 859-323-9711



______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )

Re: help on TMS320C6711 DSP Imaging Developer’s Kit (IDK) - Andrew Elder - Dec 6 14:01:00 2002


Precompute the 18 sin(arg) and cos(arg) values and store them in an array.

There are probably many other things that can be done as well.

Andrew

At 03:06 PM 12/5/2002 -0800, jayaroop g wrote:
>Hello,
> We implemented a image segementation algorithm
>using TMS320C6711 DSP Imaging DeveloperÂ’s Kit (IDK) on
>real time video.
> The problem is: due to the complexity
>(computations involved) of the algorithm, there is a
>delay in the video,i.e., i am missing some frames.
>I wanted to know how many frames i am missing. Can
>anyone suggest me how to caluculate the number of
>frames being missed.
> Secondly, i am using some math functions like
>sin and cos in my code as follows:
>
>for(row=0; row<240; row++)
> for(col=0; col<320; col++)
> if (sobel[row][col] > 200)
> for(k=0; k<360; k+=20)
> {
> arg= (3.142*k)/(180.0);
> x = (int)roundf(row + R*cos(arg));
> y = (int)roundf(col + R*sin(arg));
> if ((x>=0) && (x<240))
> if ((y>=0) && (y<320))
> circle_acc[x][y] +=1;
> }
>
>it is taking time to do the above computation which is
>one of the reasons for losing the frames, may be
>because i am using cos and sin functions. Can anyone
>suggest me how i can optimize it or is there any way
>to perform cos and sin functions using assembly
>coding.
>
>Thank you,
>Jay >=====
>Gullapalli Jayaroop (SHAPE of VICTORY)
>Mailing Address
>700, Woodland Avenue, A308
>Lexington,
>kentucky-40508,
>USA.
>Home Phone: 859-323-9711


______________________________
New Code Sharing Section now Live on DSPRelated.com. Learn about the Reward Program for Contributors here.



(You need to be a member of c6x -- send a blank email to c6x-subscribe@yahoogroups.com )