Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

DE2_TV searching XY coordinates of pixels

Hi @all,

I am currently working with the DE2 Dev.&Edu. Board with Cyclone II.

In my project I am supposed to do a simple blob detection. The blobs are represented by white dots on black background.

Since I am new I decided to start with the DE2_TV example to become familiar with the dataflow. If I did understand it correct the program does the manipulation of the data pixel-wise, which means that the information which pixel it is actually manipulating should be available.

But I am a little bit confused which register does hold the information.

I thought it should be the ports oCurrent_X and oCurrent_Y from the VGA_Ctrl module, but if thats the case why is the register 11 bit.

This would allow a resolution of 2048x2048 (I know this is not the correct relation, it's just a example).

But the output of the VGA has only a resolution of 640 x 480, so the coordinates of X and Y should be lay inbetween.

Can someone help me here?

Where can I get the X and Y coordinates for the pixels?

regards,

Alex

12 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hello guys,

    i just work on my final year project for my degree.but my knowledge is less about coding / c / c + + / vhdl..can anybody xplain more about the number in [ ] the right below.

    for ur information, this some codes is Taken from the tutorial in TRDB_LTM_UserGuide_v1.23.

    input iTOUCH_IRQ;

    input [11:0] iX_COORD; // X coordinate form touch panel

    input [11:0] iY_COORD; // Y coordinate form touch panel

    input iNEW_COORD; // new coordinates indicate

    output [2:0] oDISPLAY_MODE; // displaed photo number

    tq.