Forum Discussion
Altera_Forum
Honored Contributor
10 years agohow 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
Honored Contributor
Have a look at the Lutz Algorithm - Ive seen it implemented in an FPGA before:
http://comjnl.oxfordjournals.org/content/23/3/262.full.pdf - Altera_Forum
Honored Contributor
You are perhaps just considering vertical and horizontal neighbors pixels. The first thing that comes to mind is recommend you to change the scan operator that you're currently using, in order to also consider diagonal pixels as connected.