Forum Discussion

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

how to count only adjacent(linked) 1's quantity in 7X7 matrix buffer using fpga?

hello.

i'm studying image processing using fpga.

i attached 7x7 matrix image.

yellow is 1 and white is 0.

normally i can count all 1's quantity in 7x7 matrix included un-linked 1, but i can't count only adjacent(linked) 1's quantity except un-linked 1.

would you let me know how to do?

if there are some solution like IP, where can i buy that one?

please help me.

thank you.

from korea.

12 Replies

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

    Your camera line rate might be running at a 10KHz line rate, but the pixel rate is actually 10.24Mhz which is what the camera will be running a.

    You shouldnt be passing whole lines around the system, that is innefficient - why not just process on a pixel bases? Processing on a line basis sounds like a software solution.. FPGA is NOT software.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Your camera line rate might be running at a 10KHz line rate, but the pixel rate is actually 10.24Mhz which is what the camera will be running a.

    You shouldnt be passing whole lines around the system, that is innefficient - why not just process on a pixel bases? Processing on a line basis sounds like a software solution.. FPGA is NOT software.

    --- Quote End ---

    you are right. camera line rate is about 10KHz and pixel rate about 10MHz.

    my purpose is counting how many pixel that have over threshold value in every scan(100us) within 5-scan data(5x5 matirx, and total matrix number is 1024 / 5 = 204).

    so i saved 5-scan data and line shift in every scan period.

    important thing is that i have to process as almost real time.

    i thought pc base is not suitable.

    in every scan period i'm trying to detect how many linked 1's(have over threshold value) pixel in each 204 matrix.

    please let me know fpga base is possible or not.

    if impossible then i have to give up.

    thank you.