HOW TO DETERMINE THE BOUNDARY OF AN IMAGE USING VERILOG

Status
Not open for further replies.

pritin

Newbie level 3
Joined
Feb 15, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,307
TELL ME HOW TO DETERMINE THE BOUNDARY OF A PICTURE.
IN MY VERILOG CODE I DECLARED ALL THE PIXEL VALUES (16X16 TOTALLY 256) IN AN ARRAY.I NEED TO CHECK THE CONDITION,IS THEER ANY VALUES ABOOVE THE CURRENT PIXEL OR ANY VALUE LEFT TO IT AND ANY VALUES RIGHT TO IT.IF I DECLARED ALL THE PIXEL VALUES IN AN ARRAY HOW COULD I CHECK TOP,LEFT AND BOTTOM VALUES TO DETERMINE THE BOUNDARY.
 

Try to use two dimensional array, where all the rows are accessed through one arrray and all the cloumns through second array.
example
reg [19:0] array [20:0]

where 19:0 are cloumns and 20:0 are rows.

You can also use single dimensional array but it makes the computing of left, right top and down bit complex
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…