Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top